Function at 0x49b470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5ecef1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x150]
push edi
mov dword [esp + 0x24], esi
call fcn.00491ab0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x134]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, esi
call fcn.004b6dd0
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x158]
xor ebx, ebx
cmp eax, ebx
jne 0x49b4dc
lea edx, [esp + 0x134]
mov dword [esp + 0x158], edx
mov eax, dword [esp + 0x15c]
cmp eax, ebx
je 0x49b4fb
mov eax, dword [eax]
push eax
push ebx
call fcn.00501cf0
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
jmp 0x49b50a
push 1
mov ecx, esi
call fcn.004b5bd0
mov dword [esp + 0x10], eax
mov ebp, eax
push ebx
mov ecx, esi
call fcn.004b5bd0
imul eax, dword [0x6754c8]
mov edi, 0x16
mov ecx, 0x675360
sub edi, eax
call fcn.00504db0
mov ecx, dword [0x6754c8]
mov edx, dword [0x675b1c]
add edi, eax
push edx
add ecx, edi
push 0xb
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x88], ecx
call fcn.00501cf0
mov ecx, dword [0x6754d4]
add esp, 8
lea edx, [eax + ecx*2 + 1]
mov eax, dword [esi + 0x3c]
cmp eax, 6
mov dword [esp + 0x98], edx
je 0x49cb3d
cmp eax, 7
je 0x49cb3d
cmp eax, 8
je 0x49cb3d
cmp eax, 3
jne 0x49b7f1
mov ecx, esi
call fcn.004cccb0
mov ecx, dword [esi + 0x44]
mov edi, eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x84], edi
push eax
call fcn.004f4190
cmp ebp, edi
mov dword [esp + 0x94], eax
mov dword [esp + 0x18], ebx
jge 0x49ce55
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x44]
push ecx
lea eax, [esp + 0xf4]
push edx
push eax
mov ecx, esi
call fcn.0049d780
mov eax, 0xa
lea ecx, [esp + 0xf0]
mov edx, 5
mov edi, dword [ecx]
add ecx, 4
add eax, edi
dec edx
jne 0x49b5e7
cmp ebp, ebx
jne 0x49b604
mov ecx, dword [0x6754cc]
lea edx, [ecx + ecx]
mov dword [esp + 0x14], edx
jmp 0x49b625
jle 0x49b625
mov ecx, dword [esi + 0x44]
lea eax, [ebp - 1]
push eax
call fcn.004f3f90
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x49b625
mov dword [esp + 0x18], ebx
jmp 0x49b625
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x49b643
mov edx, dword [esp + 0x158]
cmp ecx, dword [edx + 0xc]
setg al
jmp 0x49b64e
mov edi, dword [eax]
xor edx, edx
cmp ebp, edi
setg dl
mov eax, edx
test eax, eax
jne 0x49ce55
mov eax, dword [esp + 0x98]
add eax, ecx
test ebp, ebp
mov dword [esp + 0x1c], eax
jle 0x49b697
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x94]
cmp edi, ebx
jge 0x49b68c
mov ecx, dword [esi + 0x44]
push edi
mov edx, dword [ecx]
call dword [edx + 0x1c]
test eax, eax
je 0x49b68c
inc edi
cmp edi, ebx
mov dword [esp + 0x18], edi
jl 0x49b676
lea eax, [ebx - 1]
cmp eax, edi
jge 0x49b697
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x160]
test eax, eax
jne 0x49b6b6
mov ecx, dword [esp + 0x158]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 4]
jl 0x49b7cc
mov edx, dword [esp + 0x80]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x10], edx
test ebp, ebp
sete al
mov dword [esp + 0xa4], eax
mov esi, dword [esp + ebx*4 + 0xf0]
mov ecx, dword [esp + 0x10]
add esi, 2
xor eax, eax
imul esi, dword [0x675b18]
add esi, ecx
mov ecx, 0x10
lea edi, [esp + 0x40]
test ebp, ebp
rep stosd dword es:[edi], eax
jne 0x49b706
mov ecx, dword [0x6754cc]
lea edx, [ecx + ecx]
mov dword [esp + 0x5c], edx
test ebx, ebx
jne 0x49b714
mov dword [esp + 0x40], 0x16f
jmp 0x49b743
cmp ebx, 1
jne 0x49b723
mov dword [esp + 0x40], 0x170
jmp 0x49b743
cmp ebx, 2
jne 0x49b732
mov dword [esp + 0x40], 0x171
jmp 0x49b743
xor eax, eax
cmp ebx, 3
sete al
add eax, 0x172
mov dword [esp + 0x40], eax
test ebp, ebp
jle 0x49b760
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x6c], eax
mov ecx, dword [ecx + 0x44]
call fcn.004f4160
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x44]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x60], ebp
cmp ebp, eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], ecx
jne 0x49b79f
dec ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x154]
push 0x40
push edx
mov dword [esp + 0x5c], esi
call fcn.00492170
inc ebx
mov dword [esp + 0x10], esi
cmp ebx, 5
jl 0x49b6d1
test ebp, ebp
jle 0x49b7d4
inc dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
cmp ebp, eax
jl 0x49b621
jmp 0x49ce55
cmp eax, 1
je 0x49bc2a
xor edi, edi
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esi + 0x3c]
cmp eax, 2
mov eax, edi
jne 0x49b841
mov ecx, dword [esp + 0x28]
inc edi
inc ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x40]
push eax
call fcn.004f48d0
test eax, eax
je 0x49ce55
mov edx, dword [esp + 0x20]
test byte [edx + 8], 2
jne 0x49b804
jmp 0x49b872
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x48]
inc edi
inc edx
mov dword [esp + 0x28], edx
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x8c], edi
call fcn.004f48d0
test eax, eax
je 0x49ce55
mov edx, dword [esp + 0x20]
test byte [edx + 8], 4
jne 0x49b804
mov ecx, dword [esi + 0x3c]
lea eax, [edx + 0xc]
cmp ecx, 2
je 0x49b880
lea eax, [edx + 0x10]
mov eax, dword [eax + 4]
inc eax
cmp ecx, 4
jne 0x49b88e
add eax, 6
jmp 0x49b891
add eax, 2
cmp ebp, eax
mov dword [esp + 0x34], eax
jge 0x49bc00
push ecx
lea eax, [esp + 0xf4]
push edx
push eax
mov ecx, esi
call fcn.0049d780
mov eax, 0xa
lea ecx, [esp + 0xf0]
mov edx, 5
mov esi, dword [ecx]
add ecx, 4
add eax, esi
dec edx
jne 0x49b8bf
imul eax, dword [0x675b18]
mov ecx, dword [esp + 0x80]
add eax, ecx
cmp ebp, ebx
mov dword [esp + 0x3c], eax
jne 0x49b8f2
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6754cc]
lea eax, [ecx + edx*2]
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x160]
test ecx, ecx
jne 0x49b913
mov edx, dword [esp + 0x158]
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, dword [edx + 0xc]
jmp 0x49b920
mov eax, dword [esp + 0x18]
mov esi, dword [ecx]
lea edx, [ebx + eax]
xor eax, eax
cmp edx, esi
setg al
test eax, eax
jne 0x49ce55
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x14]
add eax, edx
test ecx, ecx
mov dword [esp + 0x1c], eax
jne 0x49b950
mov ecx, dword [esp + 0x158]
cmp eax, dword [ecx + 4]
jl 0x49bbe1
mov edx, dword [esp + 0x80]
xor esi, esi
mov dword [esp + 0x10], edx
mov ebp, dword [esp + esi*4 + 0xf0]
mov ecx, dword [esp + 0x10]
add ebp, 2
imul ebp, dword [0x675b18]
add ebp, ecx
cmp ebx, 1
jg 0x49b99b
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp dword [ecx + 0x3c], 4
sete al
add eax, 2
cmp esi, eax
jne 0x49b993
mov ebp, dword [esp + 0x3c]
jmp 0x49b9bb
jg 0x49bbe1
jmp 0x49b9bb
cmp ebx, 2
jl 0x49b9bb
cmp ebx, 5
jg 0x49b9bb
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x3c], 4
jne 0x49b9bb
mov ebp, dword [esp + 0x3c]
test esi, esi
jg 0x49bbe1
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x40]
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x49b9da
mov eax, dword [0x6754cc]
lea ecx, [eax + eax]
mov dword [esp + 0x5c], ecx
jmp 0x49b9e7
cmp ebx, 2
mov dword [esp + 0x44], 0
jne 0x49b9ef
mov dword [esp + 0x44], 1
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x3c]
sub eax, 2
je 0x49baed
sub eax, 2
jne 0x49bb87
cmp ebx, 5
jle 0x49ba65
test esi, esi
jne 0x49ba1b
mov dword [esp + 0x40], 0xce
jmp 0x49ba4a
cmp esi, 1
jne 0x49ba2a
mov dword [esp + 0x40], 0xcf
jmp 0x49ba4a
cmp esi, 2
jne 0x49ba39
mov dword [esp + 0x40], 0xd0
jmp 0x49ba4a
xor eax, eax
cmp esi, 3
setne al
add eax, 0xd1
mov dword [esp + 0x40], eax
cmp ebx, 7
jl 0x49bac1
mov ecx, dword [esp + 0x20]
lea eax, [ebx - 7]
push eax
add ecx, 0x10
mov dword [esp + 0x6c], eax
call fcn.004f4160
jmp 0x49babd
cmp ebx, 1
jg 0x49ba98
test esi, esi
jne 0x49ba78
mov dword [esp + 0x40], 0x33
jmp 0x49baac
cmp esi, 1
jne 0x49ba87
mov dword [esp + 0x40], 0x34
jmp 0x49baac
xor edx, edx
cmp esi, 2
sete dl
add edx, 0x35
mov dword [esp + 0x40], edx
jmp 0x49baac
xor eax, eax
cmp ebx, 3
setg al
dec eax
and al, 0xcd
add eax, 0x9b
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [edx + 0x48]
call fcn.004f4910
mov dword [esp + 0x48], eax
test ebx, ebx
je 0x49bae0
cmp ebx, 2
je 0x49bae0
cmp ebx, 4
je 0x49bae0
cmp ebx, 6
mov dword [esp + 0x44], 0
jne 0x49bb7f
mov dword [esp + 0x44], 1
jmp 0x49bb7f
cmp ebx, 1
jg 0x49bb24
test esi, esi
jne 0x49bb00
mov dword [esp + 0x40], 0x105
jmp 0x49bb11
mov ecx, esi
dec ecx
neg ecx
sbb ecx, ecx
add ecx, 0x107
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push edx
mov ecx, dword [eax + 0x40]
call fcn.004f4910
jmp 0x49bb7b
test esi, esi
jne 0x49bb32
mov dword [esp + 0x40], 0x139
jmp 0x49bb62
cmp esi, 1
jne 0x49bb41
mov dword [esp + 0x40], 0x13a
jmp 0x49bb62
cmp esi, 2
jne 0x49bb50
mov dword [esp + 0x40], 0x13d
jmp 0x49bb62
xor ecx, ecx
cmp esi, 3
setne cl
add ecx, 0x13b
mov dword [esp + 0x40], ecx
cmp ebx, 3
jl 0x49bb7f
mov edx, dword [esp + 0x20]
lea eax, [ebx - 3]
push eax
mov dword [esp + 0x6c], eax
lea ecx, [edx + 0xc]
call fcn.004f4160
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx + ecx]
mov ecx, dword [esp + 0x34]
dec ecx
mov dword [esp + 0x60], edx
cmp ebx, ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x58], eax
jne 0x49bbb4
dec eax
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x40]
push 0x40
push eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ebp
call fcn.00492170
inc esi
mov dword [esp + 0x10], ebp
cmp esi, 5
jl 0x49b95d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x14], ecx
cmp ebx, eax
jl 0x49b8f6
mov dword [esp + 0x10], 0
jmp 0x49bc06
sub ebp, eax
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x18], eax
xor ebx, ebx
jmp 0x49b804
cmp dword [esi + 0x58], ebx
jne 0x49be84
mov ecx, dword [esi + 0x54]
call fcn.004f0470
cmp ebp, eax
mov dword [esp + 0x38], eax
jge 0x49be6c
mov ecx, dword [esi + 0x54]
lea eax, [esp + 0xf0]
push eax
call fcn.004b7f10
mov eax, 6
lea ecx, [esp + 0xf0]
mov edx, 4
mov esi, dword [ecx]
add ecx, 4
add eax, esi
dec edx
jne 0x49bc68
cmp ebp, ebx
jne 0x49bc80
mov ecx, dword [0x6754cc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x88], ebx
mov eax, dword [esp + 0x160]
test eax, eax
jne 0x49bca4
mov edx, dword [esp + 0x158]
mov esi, dword [esp + 0x14]
xor ecx, ecx
cmp esi, dword [edx + 0xc]
jmp 0x49bcaa
mov edx, dword [eax]
xor ecx, ecx
cmp ebp, edx
setg cl
test ecx, ecx
jne 0x49ce55
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x14]
add ecx, edx
test eax, eax
mov dword [esp + 0x1c], ecx
jne 0x49bcda
mov eax, dword [esp + 0x158]
cmp ecx, dword [eax + 4]
jl 0x49be4d
mov ecx, dword [esp + 0x80]
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + ebx*4 + 0xf0]
mov ecx, dword [esp + 0x10]
add esi, 2
xor eax, eax
imul esi, dword [0x675b18]
add esi, ecx
mov ecx, 0x10
lea edi, [esp + 0x40]
test ebp, ebp
rep stosd dword es:[edi], eax
jne 0x49bd1b
mov edx, dword [0x6754cc]
mov dword [esp + 0x5c], edx
jmp 0x49bd20
cmp ebp, 1
jg 0x49bd86
test ebx, ebx
jne 0x49bd2e
mov dword [esp + 0x40], 0x244
jmp 0x49bd51
cmp ebx, 1
jne 0x49bd3d
mov dword [esp + 0x40], 0x246
jmp 0x49bd51
mov eax, ebx
sub eax, 2
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0x247
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x49bd79
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x54]
push ecx
mov ecx, dword [eax + 0x5c]
add ecx, 0x280
call fcn.004f4880
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x88]
mov dword [esp + 0x48], edx
jmp 0x49bdd4
test ebx, ebx
jne 0x49bd94
mov dword [esp + 0x40], 0x278
jmp 0x49bdb4
cmp ebx, 1
jne 0x49bda3
mov dword [esp + 0x40], 0x279
jmp 0x49bdb4
xor eax, eax
cmp ebx, 2
setne al
add eax, 0x27a
mov dword [esp + 0x40], eax
cmp ebp, 3
jl 0x49bdd4
mov ecx, dword [esp + 0x24]
lea eax, [ebp - 3]
push eax
mov dword [esp + 0x6c], eax
mov ecx, dword [ecx + 0x54]
add ecx, 0xc
call fcn.004f4160
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x24]
test ebp, ebp
mov eax, dword [edx + 0x54]
mov dword [esp + 0x6c], eax
je 0x49bdf0
cmp ebp, 2
mov dword [esp + 0x44], 0
jne 0x49bdf8
mov dword [esp + 0x44], 1
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [edx - 1]
mov dword [esp + 0x60], ebp
cmp ebp, eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x58], ecx
jne 0x49be20
dec ecx
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push 0x40
push ecx
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], esi
call fcn.00492170
inc ebx
mov dword [esp + 0x10], esi
cmp ebx, 3
jle 0x49bce7
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x14], edx
cmp ebp, eax
jl 0x49bc87
mov dword [esp + 0x10], 0
jmp 0x49be72
sub ebp, eax
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], eax
xor ebx, ebx
mov esi, dword [esi + 0x54]
mov edi, dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
shr edi, 2
cmp eax, ebx
mov dword [esp + 0xa0], edi
jne 0x49bea4
mov dword [esp + 0xec], ebx
jmp 0x49beae
mov ecx, dword [esi + 0x34]
mov dword [esp + 0xec], ecx
lea ecx, [esp + 0x108]
call fcn.005bb64a
lea ecx, [esp + 0xac]
mov dword [esp + 0x14c], ebx
call fcn.004918b0
mov esi, 0x5f7a80
mov dword [esp + 0xac], esi
lea ecx, [esp + 0xc4]
mov byte [esp + 0x14c], 1
call fcn.004918b0
mov dword [esp + 0xc4], esi
lea ecx, [esp + 0xd8]
mov byte [esp + 0x14c], 2
call fcn.004918b0
mov dword [esp + 0xd8], esi
push 5
push ebx
lea ecx, [esp + 0x110]
mov byte [esp + 0x154], 3
call fcn.005bb6aa
mov edx, dword [0x6707bc]
mov dword [esp + 0x90], edx
cmp edi, ebx
mov byte [esp + 0x14c], 4
mov dword [esp + 0x84], ebx
jle 0x49cab7
jmp 0x49bf50
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x2c]
push 0
mov eax, dword [eax + ecx*4]
push edx
mov dword [esp + 0x9c], eax
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x5c]
add ecx, 0x264
call fcn.004f4970
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [ecx + 0x10]
shr eax, 4
and eax, 1
mov dword [esp + 0x34], eax
je 0x49bfab
mov eax, 2
mov dword [esp + 0x28], eax
jmp 0x49bfb8
call fcn.004ef490
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
cmp ebp, eax
jge 0x49c23b
lea edx, [esp + 0xf0]
push edx
call fcn.004ef4a0
mov eax, 0xa
lea ecx, [esp + 0xf0]
mov edx, 6
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec edx
jne 0x49bfde
add eax, 2
mov ecx, dword [esp + 0x80]
imul eax, dword [0x675b18]
add eax, ecx
test ebp, ebp
mov dword [esp + 0x3c], eax
jne 0x49c014
mov eax, dword [esp + 0x14]
mov ecx, dword [0x6754cc]
lea edx, [eax + ecx*2]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x160]
test ecx, ecx
jne 0x49c035
mov edx, dword [esp + 0x158]
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, dword [edx + 0xc]
jmp 0x49c042
mov eax, dword [esp + 0x18]
mov esi, dword [ecx]
lea edx, [ebx + eax]
xor eax, eax
cmp edx, esi
setg al
test eax, eax
jne 0x49cab7
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x14]
add eax, edx
test ecx, ecx
mov dword [esp + 0x1c], eax
jne 0x49c072
mov ecx, dword [esp + 0x158]
cmp eax, dword [ecx + 4]
jl 0x49c21a
mov edx, dword [esp + 0x80]
xor esi, esi
mov dword [esp + 0x10], edx
mov ebp, dword [esp + esi*4 + 0xf0]
mov ecx, dword [esp + 0x10]
add ebp, 2
imul ebp, dword [0x675b18]
add ebp, ecx
cmp ebx, 1
jg 0x49c0ac
cmp esi, 4
jne 0x49c0a6
mov ebp, dword [esp + 0x3c]
jmp 0x49c0ac
jg 0x49c21a
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x40]
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x49c0cb
mov eax, dword [0x6754cc]
lea ecx, [eax + eax]
mov dword [esp + 0x5c], ecx
jmp 0x49c0d0
cmp ebx, 1
jg 0x49c135
test esi, esi
jne 0x49c0e8
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], 0x2ae
jmp 0x49c19b
cmp esi, 1
jne 0x49c101
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], 0x2af
jmp 0x49c19b
cmp esi, 2
jne 0x49c11a
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], 0x2b2
jmp 0x49c19b
mov eax, dword [esp + 0x94]
xor edx, edx
cmp esi, 3
setne dl
add edx, 0x2b0
mov dword [esp + 0x40], edx
jmp 0x49c19b
test esi, esi
jne 0x49c143
mov dword [esp + 0x40], 0x2e4
jmp 0x49c182
cmp esi, 1
jne 0x49c152
mov dword [esp + 0x40], 0x2e5
jmp 0x49c182
cmp esi, 2
jne 0x49c161
mov dword [esp + 0x40], 0x2e6
jmp 0x49c182
cmp esi, 3
jne 0x49c170
mov dword [esp + 0x40], 0x2e7
jmp 0x49c182
xor ecx, ecx
cmp esi, 4
setne cl
add ecx, 0x2e8
mov dword [esp + 0x40], ecx
cmp ebx, 3
jl 0x49c19f
mov edx, dword [esp + 0x2c]
lea eax, [ebx - 3]
push eax
mov dword [esp + 0x6c], eax
lea ecx, [edx + 0x38]
call fcn.004f4160
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
test ebx, ebx
mov dword [esp + 0x6c], eax
je 0x49c1b8
cmp ebx, 2
mov dword [esp + 0x44], 0
jne 0x49c1c0
mov dword [esp + 0x44], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx + ecx]
mov ecx, dword [esp + 0x28]
dec ecx
mov dword [esp + 0x60], edx
cmp ebx, ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x58], eax
jne 0x49c1ed
dec eax
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x40]
push 0x40
push eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ebp
call fcn.00492170
inc esi
mov dword [esp + 0x10], ebp
cmp esi, 5
jle 0x49c07f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x14], ecx
cmp ebx, eax
jl 0x49c018
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x49c243
sub ebp, eax
mov dword [esp + 0x10], ebp
mov ebx, ebp
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
add esi, edx
test eax, eax
mov dword [esp + 0x18], esi
je 0x49c25d
xor eax, eax
jmp 0x49c260
mov eax, dword [ecx + 0x1c]
test eax, eax
jle 0x49c45c
inc eax
cmp ebx, eax
mov dword [esp + 0x38], eax
jge 0x49c444
lea eax, [esp + 0xf0]
push eax
call fcn.004ef870
mov eax, 8
lea ecx, [esp + 0xf0]
mov edx, 5
mov ebp, dword [ecx]
add ecx, 4
add eax, ebp
dec edx
jne 0x49c293
test ebx, ebx
jne 0x49c2b1
mov ecx, dword [0x6754cc]
mov eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x160]
test ecx, ecx
jne 0x49c2ce
mov esi, dword [esp + 0x158]
mov edx, dword [esp + 0x14]
xor eax, eax
cmp edx, dword [esi + 0xc]
jmp 0x49c2db
mov eax, dword [esp + 0x18]
mov esi, dword [ecx]
lea edx, [ebx + eax]
xor eax, eax
cmp edx, esi
setg al
test eax, eax
jne 0x49cab7
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x14]
add eax, edx
test ecx, ecx
mov dword [esp + 0x1c], eax
jne 0x49c30b
mov ecx, dword [esp + 0x158]
cmp eax, dword [ecx + 4]
jl 0x49c421
mov edx, dword [esp + 0x80]
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x10], edx
test ebx, ebx
sete al
mov dword [esp + 0x8c], eax
mov esi, dword [esp + ebp*4 + 0xf0]
mov ecx, dword [esp + 0x10]
add esi, 2
xor eax, eax
imul esi, dword [0x675b18]
add esi, ecx
mov ecx, 0x10
lea edi, [esp + 0x40]
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x49c358
mov ecx, dword [0x6754cc]
mov dword [esp + 0x5c], ecx
test ebp, ebp
jne 0x49c366
mov dword [esp + 0x40], 0x31c
jmp 0x49c396
cmp ebp, 1
jne 0x49c375
mov dword [esp + 0x40], 0x31d
jmp 0x49c396
cmp ebp, 2
jne 0x49c384
mov dword [esp + 0x40], 0x31e
jmp 0x49c396
xor edx, edx
cmp ebp, 3
setne dl
add edx, 0x31f
mov dword [esp + 0x40], edx
cmp ebx, 1
jl 0x49c3b3
lea eax, [ebx - 1]
mov dword [esp + 0x68], eax
push eax
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0x18]
call fcn.004f4160
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x14]
add eax, ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [edx - 1]
cmp ebx, eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x58], ecx
jne 0x49c3f4
dec ecx
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push 0x40
push ecx
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], esi
call fcn.00492170
inc ebp
mov dword [esp + 0x10], esi
cmp ebp, 4
jle 0x49c326
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x14], edx
cmp ebx, eax
jl 0x49c2b1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
jmp 0x49c44a
sub ebx, eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x34]
xor edx, edx
cmp eax, edx
je 0x49c46a
xor eax, eax
jmp 0x49c470
mov eax, dword [ecx + 0x68]
shr eax, 2
cmp ebx, eax
mov dword [esp + 0x34], eax
jge 0x49ca76
cmp dword [ecx + 0xcc], edx
jne 0x49c48d
mov dword [esp + 0x9c], edx
jmp 0x49c49a
mov eax, dword [ecx + 0xc4]
mov dword [esp + 0x9c], eax
cmp dword [ecx + 0x68], edx
jne 0x49c4a5
mov dword [esp + 0x28], edx
jmp 0x49c4ac
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x28], eax
cmp ebx, edx
mov dword [esp + 0x38], ebx
jle 0x49c4ef
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edi, ebx
mov ebx, dword [esp + 0x9c]
lea esi, [edx + eax*4]
jmp 0x49c4ce
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
mov edx, ebx
add edx, eax
push edx
call fcn.004ee940
cmp eax, 1
je 0x49c4eb
dec edi
sub esi, 4
test edi, edi
mov dword [esp + 0x38], edi
jg 0x49c4ca
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebx*4]
push eax
call fcn.004ee040
lea ecx, [esp + 0x11c]
mov dword [esp + 0x1c], eax
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
cmp ebx, eax
mov dword [esp + 0x3c], edx
jge 0x49ca6c
mov eax, dword [esp + 0x160]
mov edi, dword [esp + 0x88]
jmp 0x49c544
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x160]
test eax, eax
je 0x49c559
mov ecx, dword [esp + 0x18]
lea edx, [ebx + ecx]
mov ecx, dword [eax]
cmp edx, ecx
jg 0x49cab7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x9c]
push 0
mov ebp, dword [eax + ebx*4]
lea esi, [ecx + ebp]
mov ecx, dword [esp + 0x30]
push esi
mov dword [esp + 0x94], esi
call fcn.004ee980
mov ecx, dword [esp + 0x2c]
push esi
mov dword [esp + 0xc4], eax
call fcn.004ee940
mov ecx, eax
cmp ecx, 1
mov dword [esp + 0x20], ecx
jne 0x49c688
cmp edi, 0xffffffff
je 0x49c5b1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0xac]
call fcn.00491ab0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x110]
call fcn.005bb6aa
lea ecx, [esp + 0xc4]
call fcn.00491ab0
lea ecx, [esp + 0xd8]
call fcn.00491ab0
lea edi, [esi + 1]
mov ecx, edi
call fcn.004eb430
test eax, eax
jne 0x49c5ff
mov ecx, dword [esp + 0x2c]
push edi
call fcn.004ee1f0
jmp 0x49c601
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xa8], eax
cmp ebx, ecx
je 0x49c684
test ebp, ebp
jle 0x49c61d
mov cl, byte [esi - 1]
mov byte [esp + 0x33], cl
jmp 0x49c621
mov cl, byte [esp + 0x33]
test eax, eax
je 0x49c64d
mov ax, word [eax + 0x14]
cmp ax, 1
je 0x49c656
cmp ax, 2
je 0x49c656
cmp ax, 4
je 0x49c656
cmp ax, 6
je 0x49c656
cmp ax, 8
je 0x49c656
cmp ax, 0xa
je 0x49c656
test ebp, ebp
jle 0x49c684
cmp cl, 0x6d
jne 0x49c65a
inc dword [esp + 0x1c]
test ebp, ebp
jle 0x49c684
cmp cl, 0x6d
jne 0x49c671
cmp ebp, 1
jle 0x49c684
mov dl, byte [esi - 2]
mov byte [esp + 0x33], dl
mov cl, dl
cmp cl, 0x72
je 0x49c680
cmp cl, 0x73
je 0x49c680
cmp cl, 0x74
jne 0x49c684
dec dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp ebx, dword [esp + 0x10]
jl 0x49c8e2
test ebx, ebx
jne 0x49c6a5
mov eax, dword [0x6754cc]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x3c], ecx
mov ebp, dword [esp + 0x1c]
mov edx, dword [0x6754c8]
imul ebp, edx
mov esi, dword [esp + 0x80]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x40]
add ebp, esi
mov esi, dword [esp + 0xbc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
shr esi, 2
cmp eax, 1
jne 0x49c739
mov eax, dword [esp + 0xa4]
push 0
mov esi, dword [esp + 0x20]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xa4]
push 0
lea edx, [esp + 0x144]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
push eax
push 0
push esi
push 0
inc ecx
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x64]
call fcn.004edea0
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0
jmp 0x49c7ce
lea eax, [esi + 1]
push 0
imul eax, edx
push 0
mov edi, dword [esp + 0x24]
push 0
push 0
push 0
lea ecx, [esp + 0xa4]
push 0
lea edx, [esp + 0x144]
add ebp, eax
mov eax, dword [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0x12c]
push eax
push esi
movsx eax, word [edx + esi*2 - 2]
push edi
push ecx
mov ecx, dword [esp + 0xe4]
push eax
mov eax, dword [esp + 0x5c]
mov edx, dword [ecx + esi*4 - 4]
mov ecx, dword [eax + edx*4]
mov edx, dword [esp + 0xd0]
lea eax, [ecx + edx + 1]
mov ecx, dword [esp + 0x60]
push eax
call fcn.004edea0
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x10c]
mov edx, dword [ecx + esi*4 - 4]
mov dword [esp + 0x70], edx
movsx ecx, word [eax + esi*2 - 2]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
mov eax, dword [esp + 0x12c]
mov esi, dword [esp + 0x3c]
mov ecx, ebp
add ebp, eax
mov eax, dword [esp + 0x130]
mov edx, esi
add eax, esi
mov dword [esp + 0x11c], ecx
test ebx, ebx
mov dword [esp + 0x120], edx
mov dword [esp + 0x124], ebp
mov dword [esp + 0x128], eax
mov dword [esp + 0x14], eax
jne 0x49c816
mov edi, dword [0x6754cc]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], eax
push 0x40
lea eax, [ebx + edx]
push ecx
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x48], 0x353
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x68], eax
call fcn.00492170
mov eax, dword [esp + 0x160]
test eax, eax
jne 0x49c882
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x14]
cmp eax, dword [edx + 0xc]
jg 0x49cab7
mov ecx, dword [esp + 0x128]
mov edi, dword [esp + 0x120]
mov eax, dword [esp + 0x20]
sub ecx, edi
add esi, ecx
cmp eax, 1
jne 0x49c8d7
mov edx, dword [esp + 0x34]
dec edx
cmp ebx, edx
jge 0x49c8d7
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x9c]
mov ecx, dword [eax + ebx*4 + 4]
add ecx, edi
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004ee940
cmp eax, 1
jne 0x49c8d7
mov eax, dword [0x6754cc]
mov ecx, dword [esp + 0x20]
add esi, eax
mov dword [esp + 0x3c], esi
jmp 0x49c8e7
mov ecx, dword [esp + 0x20]
add esi, 2
mov dword [esp + 0x3c], esi
cmp ecx, 1
jne 0x49c91c
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x49c91c
mov edx, eax
mov ax, word [edx + 0x14]
cmp ax, 5
je 0x49c910
cmp ax, 7
je 0x49c910
cmp ax, 9
je 0x49c910
cmp ax, 0xb
jne 0x49c91c
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xbc]
shr eax, 2
dec eax
test cl, 2
je 0x49c97e
mov edx, dword [esp + 0x10c]
mov si, word [edx + eax*2]
inc esi
test eax, eax
mov word [edx + eax*2], si
jl 0x49c97e
mov edx, dword [esp + 0xd4]
shr edx, 2
cmp eax, edx
jge 0x49c95f
mov edx, dword [esp + 0xcc]
mov esi, dword [esp + 0x120]
mov dword [edx + eax*4], esi
mov edx, dword [esp + 0xe8]
shr edx, 2
cmp eax, edx
jge 0x49c97e
mov edx, dword [esp + 0xe0]
mov esi, dword [esp + 0x128]
mov dword [edx + eax*4], esi
cmp ecx, 1
je 0x49ca14
cmp ecx, 3
jne 0x49c996
cmp dword [esp + 0xc0], 1
je 0x49ca14
mov esi, dword [esp + 0x8c]
push esi
call fcn.004eadc0
mov ebp, eax
add esp, 4
add ebp, esi
mov esi, dword [esp + 0xbc]
shr esi, 2
dec esi
js 0x49ca5f
lea edi, [esi*4]
mov al, byte [ebp]
inc ebp
cmp al, 1
jne 0x49ca5f
push 4
push edi
lea ecx, [esp + 0xb4]
call fcn.004922f0
push 1
push esi
lea ecx, [esp + 0x110]
call fcn.005bb7e6
push 4
push edi
lea ecx, [esp + 0xcc]
call fcn.004922f0
push 4
push edi
lea ecx, [esp + 0xe0]
call fcn.004922f0
dec esi
sub edi, 4
test esi, esi
jge 0x49c9c2
jmp 0x49ca5f
push ebx
lea ecx, [esp + 0xb0]
call fcn.00491be0
mov ecx, dword [esp + 0x110]
push 0
push ecx
lea ecx, [esp + 0x110]
call fcn.005bb7bd
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0xc4]
push edx
call fcn.00491be0
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0xd8]
push eax
call fcn.00491be0
mov eax, dword [esp + 0x34]
inc ebx
cmp ebx, eax
jl 0x49c536
mov dword [esp + 0x10], 0
jmp 0x49ca7c
sub ebx, eax
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x84]
add ebx, ecx
push 0
mov ecx, dword [eax + 0x54]
push edx
mov dword [esp + 0x20], ebx
call fcn.004f0310
mov ecx, dword [esp + 0xa0]
inc eax
cmp eax, ecx
mov dword [esp + 0x84], eax
jl 0x49bf4c
lea ecx, [esp + 0x90]
mov byte [esp + 0x14c], 3
call fcn.005bc421
mov esi, 0x5f7940
lea ecx, [esp + 0xd8]
mov byte [esp + 0x14c], 2
mov dword [esp + 0xd8], esi
call fcn.00491ab0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x14c], 1
mov dword [esp + 0xc4], esi
call fcn.00491ab0
lea ecx, [esp + 0xac]
mov byte [esp + 0x14c], 0
mov dword [esp + 0xac], esi
call fcn.00491ab0
lea ecx, [esp + 0x108]
mov dword [esp + 0x14c], 0xffffffff
call fcn.005bb67d
jmp 0x49ce55
mov ecx, esi
call fcn.004cccb0
lea ecx, [esp + 0xc0]
mov edi, eax
push ecx
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x98], edi
call fcn.004f4190
cmp ebp, edi
mov dword [esp + 0xa0], eax
mov dword [esp + 0x18], ebx
jge 0x49ce55
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x50]
push edx
lea ecx, [esp + 0xf4]
push eax
push ecx
mov ecx, esi
call fcn.0049d780
mov eax, 8
lea ecx, [esp + 0xf0]
mov edx, 4
mov edi, dword [ecx]
add ecx, 4
add eax, edi
dec edx
jne 0x49cb98
cmp ebp, ebx
jne 0x49cbb9
mov edx, dword [0x6754cc]
mov dword [esp + 0x20], ebp
lea eax, [edx + edx]
mov dword [esp + 0x14], eax
jmp 0x49cbdd
jle 0x49cbd3
lea ecx, [ebp - 1]
push ecx
mov ecx, esi
call fcn.004b9260
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x49cbd3
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebp
jmp 0x49cbdd
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x49cbfb
mov edx, dword [esp + 0x158]
cmp ecx, dword [edx + 0xc]
setg al
jmp 0x49cc0a
mov edi, dword [esp + 0x20]
mov ebx, dword [eax]
xor edx, edx
cmp edi, ebx
setg dl
mov eax, edx
test eax, eax
jne 0x49ce55
mov eax, dword [esp + 0x98]
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x49cc96
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0xa0]
cmp ebx, ebp
jge 0x49cc8b
mov ecx, dword [esp + 0xc0]
mov edx, dword [ecx + ebx*4]
push edx
call fcn.004f4040
mov ecx, dword [esi + 0x50]
add esp, 4
mov edi, eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x1c]
test eax, eax
jne 0x49cc82
mov eax, dword [esi + 0x3c]
cmp eax, 6
jne 0x49cc68
cmp edi, 0x10000000
je 0x49cc8b
cmp eax, 7
jne 0x49cc75
cmp edi, 0x20000000
je 0x49cc8b
cmp eax, 8
jne 0x49cc82
cmp edi, 0x30000000
je 0x49cc8b
inc ebx
cmp ebx, ebp
mov dword [esp + 0x18], ebx
jl 0x49cc36
lea eax, [ebp - 1]
cmp eax, ebx
jge 0x49cc96
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x160]
test eax, eax
jne 0x49ccb5
mov edx, dword [esp + 0x158]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edx + 4]
jl 0x49ce2d
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x80]
xor esi, esi
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x8c], eax
mov ebx, dword [esp + esi*4 + 0xf0]
mov ecx, 0x10
add ebx, 2
xor eax, eax
imul ebx, dword [0x675b18]
lea edi, [esp + 0x40]
add ebx, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x49cd05
mov edx, dword [0x6754cc]
lea eax, [edx + edx]
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x3c]
sub eax, 6
je 0x49cd78
dec eax
je 0x49cd47
dec eax
jne 0x49cda6
test esi, esi
jne 0x49cd29
mov dword [esp + 0x40], 0x20f
jmp 0x49cda6
cmp esi, 1
jne 0x49cd38
mov dword [esp + 0x40], 0x210
jmp 0x49cda6
xor eax, eax
cmp esi, 2
sete al
add eax, 0x211
jmp 0x49cda2
test esi, esi
jne 0x49cd55
mov dword [esp + 0x40], 0x1da
jmp 0x49cda6
cmp esi, 1
jne 0x49cd64
mov dword [esp + 0x40], 0x1db
jmp 0x49cda6
xor edx, edx
cmp esi, 2
sete dl
add edx, 0x1dc
mov dword [esp + 0x40], edx
jmp 0x49cda6
test esi, esi
jne 0x49cd86
mov dword [esp + 0x40], 0x1a5
jmp 0x49cda6
cmp esi, 1
jne 0x49cd95
mov dword [esp + 0x40], 0x1a6
jmp 0x49cda6
xor eax, eax
cmp esi, 2
sete al
add eax, 0x1a7
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x49cdc7
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x6c], eax
mov ecx, dword [ecx + 0x50]
call fcn.004f4160
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], edx
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 0x50]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x64], esi
cmp ecx, eax
mov dword [esp + 0x58], edx
jne 0x49ce06
dec edx
mov dword [esp + 0x58], edx
lea ecx, [esp + 0x40]
push 0x40
push ecx
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], ebx
call fcn.00492170
inc esi
mov ebp, ebx
cmp esi, 4
jl 0x49ccd0
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x49ce39
inc dword [esp + 0x18]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x14], edx
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x49cbd9
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 0x10