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

Disassembly:
push ebp
push edi
mov eax, 0x274c
push esi
push ebx
call fcn.00445d50
sub esp, eax
mov eax, dword [esp + 0x2778]
mov esi, dword [esp + 0x2764]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x2778]
mov ecx, dword [eax + 8]
mov eax, 1
shl eax, cl
sub eax, 0x10
test esi, esi
mov dword [esp + 0x68], eax
jne 0x40c299
mov eax, dword [esp + 0x2790]
mov dword [esp + 0x60], 0
mov dword [esp + 0x74], 0
mov eax, dword [eax]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2784]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2780]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2780]
mov eax, dword [eax + 4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2780]
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2780]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x278c]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x1c2c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2764]
add eax, 1
mov dword [esp + 0x4c], eax
shl eax, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.004136f0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2778]
mov edx, dword [esp + 0x78]
lea ecx, [eax + 0x40]
mov eax, dword [esp + 0x2764]
mov dword [esp], eax
mov eax, dword [esp + 0x2760]
call fcn.00409990
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], 0
shl eax, 4
add eax, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
fld dword [0x46a0f0]
test edx, edx
je 0x40bd7c
mov edx, dword [esp + 0x68]
mov dword [eax], 1
mov dword [eax + 4], 0
fst dword [eax + 0xc]
mov dword [eax + 8], 0
add eax, 0x10
cmp eax, edx
jne 0x40bd5a
fstp st(0)
jmp 0x40bd7e
fstp st(0)
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40d0de
mov eax, dword [esp + 0x278c]
lea edi, [esp + 0xac]
mov ecx, 0x100
mov ebx, dword [esp + 0x2788]
mov ebp, dword [esp + 0x2768]
sub ebp, dword [esp + 0x44]
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x34], eax
xor eax, eax
rep stosd dword es:[edi], eax
sub edx, dword [esp + 0x48]
lea edi, [esp + 0x112c]
mov ecx, 0x2c0
rep stosd dword es:[edi], eax
lea edi, [esp + 0x8ac]
mov ecx, 0x220
rep stosd dword es:[edi], eax
mov eax, edx
shl eax, 4
add eax, ebx
test edx, edx
mov dword [esp + 0x3c], eax
je 0x40be6a
mov esi, dword [esp + 0x276c]
mov edi, dword [esp + 0x2770]
mov eax, dword [ebx]
movzx edx, word [ebx + 0xe]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
and eax, 0x1ffffff
mov dword [esp + 0x38], eax
movzx eax, word [ebx + 0xc]
add dword [esp + eax*4 + 0x112c], 1
cmp eax, 0x7f
jbe 0x40be31
and edx, 0x3ff
add dword [esp + edx*4 + 0x8ac], 1
mov edx, dword [esp + 0x34]
mov eax, ebp
test edx, edx
lea ecx, [edx + ebp]
je 0x40be57
nop
mov edx, edi
and edx, eax
add eax, 1
movzx edx, byte [esi + edx]
add dword [esp + edx*4 + 0xac], 1
cmp ecx, eax
jne 0x40be40
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x38]
add ebx, 0x10
add ebp, eax
cmp dword [esp + 0x3c], ebx
jne 0x40bdfc
lea eax, [esp + 0x4ac]
mov ecx, 1
mov edx, 0x100
mov dword [esp], eax
lea eax, [esp + 0xac]
call fcn.004096b0
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x112c]
xor ecx, ecx
mov edx, 0x2c0
mov dword [esp], edi
call fcn.004096b0
mov eax, dword [esp + 0x272c]
mov edx, dword [esp + 0x2730]
xor ecx, ecx
mov dword [esp], eax
lea eax, [esp + 0x8ac]
call fcn.004096b0
lea edx, [esp + 0x272c]
fld dword [0x46a0f0]
mov eax, edi
jmp 0x40bed6
fstp st(1)
fld dword [eax]
fucomi st(1)
fcmovnbe st(0), st(1)
fstp st(1)
add eax, 4
cmp edx, eax
fld st(0)
jne 0x40bed4
fstp st(0)
fstp dword [esp + 0x2738]
mov ebx, dword [esp + 0x273c]
mov eax, dword [esp + 0x2734]
fldz
test ebx, ebx
fst dword [eax]
je 0x40bf58
add ebx, dword [esp + 0x2768]
mov edx, dword [esp + 0x2768]
fld st(0)
mov esi, dword [esp + 0x276c]
add eax, 4
mov edi, dword [esp + 0x2770]
jmp 0x40bf2b
fxch st(1)
mov ecx, edi
add eax, 4
and ecx, edx
add edx, 1
movzx ecx, byte [esi + ecx]
fadd dword [esp + ecx*4 + 0x4ac]
fadd st(1), st(0)
fxch st(1)
fst dword [eax - 4]
fld dword [eax - 8]
cmp edx, ebx
fsubr st(1)
fsubp st(2)
jne 0x40bf29
fstp st(0)
fstp st(0)
jmp 0x40bf5a
fstp st(0)
mov eax, dword [esp + 0x278c]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov dword [eax], edi
mov eax, dword [esp + 0x2790]
mov edi, dword [esp + 0x44]
mov dword [eax], ecx
mov eax, dword [esp + 0x2784]
mov ecx, dword [esp + 0x50]
mov dword [eax], edi
mov eax, dword [esp + 0x2780]
mov edi, dword [esp + 0x54]
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x2778]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x10]
mov eax, 1
shl eax, cl
mov ecx, 0x145
sub eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2778]
cmp dword [eax + 4], 0xa
mov eax, 0x96
cmovg eax, ecx
add edx, dword [esp + 0x2768]
xor ebx, ebx
xor ebp, ebp
cmp dword [esp + 0x2764], 3
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], edx
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov dword [esp + 0x120c], 0
ja 0x40c036
jmp 0x40c139
mov eax, dword [esi]
mov esi, ebx
add ebp, eax
cmp eax, 1
je 0x40c255
lea ebx, [esi + 1]
add esi, 4
cmp dword [esp + 0x2764], esi
jbe 0x40c139
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x2768]
mov ecx, ebx
lea esi, [eax + ebx*4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x112c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
lea eax, [eax + ebp*8]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2780]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2778]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2770]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x276c]
mov dword [esp], eax
mov eax, dword [esp + 0x2764]
call fcn.00409cb0
cmp eax, 0x3fff
jbe 0x40c014
mov edx, dword [esi]
add ebp, edx
cmp edx, 1
je 0x40c27c
lea edi, [eax - 1]
mov eax, ebx
mov ebx, dword [esp + 0x2780]
lea esi, [eax + 1]
add eax, 4
cmp dword [esp + 0x2764], eax
jbe 0x40c023
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x112c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2734]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
call fcn.00409a00
mov eax, dword [esp + 0x60]
add ebp, dword [eax + esi*4]
sub edi, 1
mov eax, esi
jne 0x40c0d5
lea ebx, [esi + 1]
add esi, 4
cmp dword [esp + 0x2764], esi
ja 0x40c036
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2764]
mov edx, edi
call fcn.00409630
mov ecx, dword [esp + 0x278c]
add dword [ecx], eax
mov eax, dword [esp + 0x2790]
mov dword [esp + 8], edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2788]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2778]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2784]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2780]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2768]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2764]
mov dword [esp], eax
call fcn.0040a690
add dword [esp + 0x40], 1
mov eax, dword [esp + 0x40]
cmp eax, 2
jne 0x40bd44
mov eax, dword [esp + 0x2734]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.00413720
mov eax, dword [esp + 0x272c]
mov dword [esp + 0x2734], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.00413720
mov eax, dword [esp + 0x30]
mov dword [esp + 0x272c], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.00413720
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.00413720
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.00413720
add esp, 0x274c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x74]
mov eax, dword [eax + ebp*8 - 4]
mov edx, eax
mov dword [esp + 0x6c], eax
shr edx, 5
cmp dword [esp + 0x3c], edx
jae 0x40c023
xor eax, eax
cmp eax, edx
cmovb eax, edx
jmp 0x40c0c9
mov edi, dword [esp + 0x74]
mov ecx, dword [edi + ebp*8 - 4]
mov edx, ecx
mov dword [esp + 0x6c], ecx
shr edx, 5
cmp edx, dword [esp + 0x3c]
jbe 0x40c0c9
jmp 0x40c272
mov eax, dword [esp + 0x2764]
shl eax, 2
mov dword [esp + 0x90], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.004136f0
cmp dword [esp + 0x2764], 0x7f
mov dword [esp + 0x60], eax
jbe 0x40d121
mov eax, dword [esp + 0x2764]
mov ecx, dword [esp + 0x2768]
lea eax, [eax + ecx - 0x7f]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x40d114
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.004136f0
mov dword [esp + 0x74], eax
cmp dword [esp + 0x2764], 3
jbe 0x40d104
mov eax, dword [esp + 0x2778]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], 0
add eax, 0x48
mov dword [esp + 0x98], eax
lea eax, [esp + 0x1c2c]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x2768]
add eax, ecx
mov edi, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
cmp eax, edi
cmovbe edi, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x2764]
lea esi, [eax + 0x80]
mov eax, dword [esp + 0x90]
sub edi, ecx
mov dword [esp + 0x3c], edi
cmp esi, eax
jbe 0x40c405
test eax, eax
je 0x40cf40
mov ebx, eax
add ebx, ebx
cmp esi, ebx
ja 0x40c3a3
lea eax, [ebx*8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.004136f0
mov edi, eax
mov eax, dword [esp + 0x90]
mov dword [esp], edi
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 0x90], ebx
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.00413720
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x74]
mov edx, 0x40
mov ecx, dword [esp + 0x6c]
lea eax, [eax + edi*8]
mov edi, 0
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x2770]
and eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2778]
cmp dword [eax + 4], 0xb
mov eax, 0x10
cmove eax, edx
mov edx, ecx
sub edx, eax
cmp ecx, eax
lea ecx, [ecx - 1]
cmovae edi, edx
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x276c]
cmp ecx, edi
jbe 0x40d0c2
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
test ebx, ebx
je 0x40d061
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], ecx
add ebp, eax
mov dword [esp + 0x34], esi
mov esi, 1
lea eax, [ebp - 4]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x276c]
mov dword [esp + 0x4c], eax
jmp 0x40c4d9
sub dword [esp + 0x30], 1
mov eax, dword [esp + 0x30]
cmp eax, edi
jbe 0x40c5ac
cmp dword [esp + 0x38], 2
ja 0x40c5ac
add esi, 1
cmp dword [esp + 0x44], esi
jb 0x40c5ac
mov eax, dword [esp + 0x30]
and eax, dword [esp + 0x2770]
mov ecx, dword [esp + 0x40]
lea ebx, [ebp + eax]
movzx edx, byte [ebx]
cmp byte [ecx], dl
jne 0x40c4b0
mov ecx, dword [esp + 0x50]
movzx eax, byte [ebp + eax + 1]
cmp byte [ebp + ecx + 1], al
jne 0x40c4b0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
cmp ecx, eax
jb 0x40d079
mov edx, dword [ebx]
cmp dword [eax], edx
jne 0x40d079
mov dword [esp + 0x54], edi
xor edx, edx
mov edi, ecx
jmp 0x40c537
mov ecx, dword [ebx + edx]
cmp dword [eax], ecx
jne 0x40c541
add eax, 4
add edx, 4
cmp eax, edi
jbe 0x40c530
cmp dword [esp + 0x48], eax
mov edi, dword [esp + 0x54]
jbe 0x40c580
movzx ecx, byte [eax]
cmp byte [ebx + edx], cl
jne 0x40c580
mov edi, dword [esp + 0x48]
jmp 0x40c568
movzx ecx, byte [eax]
cmp byte [ebx + edx], cl
jne 0x40c572
add eax, 1
add edx, 1
cmp edi, eax
ja 0x40c560
cmp edx, dword [esp + 0x38]
mov edi, dword [esp + 0x54]
jbe 0x40c4b0
mov ecx, dword [esp + 0x34]
mov eax, edx
sub dword [esp + 0x30], 1
shl eax, 5
mov dword [esp + 0x38], edx
mov dword [ecx + 4], eax
mov eax, ecx
add eax, 8
mov dword [ecx], esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
cmp eax, edi
ja 0x40c4c1
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
cmp eax, edi
jbe 0x40c7ca
cmp eax, 0x80
mov edi, eax
mov eax, pe_nt_image_headers32
mov ecx, eax
mov eax, dword [esp + 0x277c]
cmovbe ecx, edi
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x277c]
mov eax, dword [eax + 0x34]
mov edx, dword [ecx + 0x2c]
mov esi, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
imul eax, dword [eax], 0x1e35a7bd
shr eax, 0xf
lea edx, [edx + eax*4]
mov eax, dword [esi + 0x28]
mov ebp, dword [edx]
and eax, ecx
add eax, eax
mov dword [esp + 0x7c], eax
add eax, 1
cmp edi, 0x7f
mov dword [esp + 0x80], eax
jbe 0x40cf10
mov edi, dword [esp + 0x2770]
mov eax, ecx
mov dword [edx], ecx
sub eax, ebp
mov dword [esp + 0x64], eax
and edi, ebp
cmp dword [esp + 0x44], eax
mov dword [esp + 0x30], edi
jb 0x40cfb2
test eax, eax
je 0x40cfb2
mov eax, dword [esp + 0x34]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x4c], eax
nop
lea esi, [esi]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x3c]
cmp ecx, eax
mov edi, eax
mov eax, dword [esp + 0x30]
cmovbe edi, ecx
sub esi, edi
lea edx, [edi + eax]
add edx, dword [esp + 0x276c]
mov eax, dword [esp + 0x50]
lea ecx, [eax + edi]
add ecx, dword [esp + 0x276c]
add esi, edx
lea ebx, [esi - 4]
cmp edx, ebx
ja 0x40ce8c
mov eax, dword [edx]
cmp dword [ecx], eax
mov eax, 0
jne 0x40c6d5
mov dword [esp + 0x48], esi
jmp 0x40c6c7
mov esi, dword [ecx + eax]
cmp dword [edx], esi
jne 0x40c6d1
add edx, 4
add eax, 4
cmp edx, ebx
jbe 0x40c6c0
mov esi, dword [esp + 0x48]
cmp edx, esi
jae 0x40c700
movzx ebx, byte [edx]
cmp byte [ecx + eax], bl
jne 0x40c700
mov ebx, eax
sub ebx, edx
sub edx, eax
add ebx, esi
mov esi, ebx
jmp 0x40c6f9
movzx ebx, byte [edx + eax]
cmp byte [ecx + eax], bl
jne 0x40c700
add eax, 1
cmp eax, esi
jne 0x40c6f0
mov ecx, dword [esp + 0x4c]
add eax, edi
test ecx, ecx
je 0x40c72a
cmp eax, dword [esp + 0x38]
jbe 0x40c72a
mov edi, dword [esp + 0x64]
mov edx, eax
add ecx, 8
shl edx, 5
mov dword [esp + 0x38], eax
mov dword [ecx - 4], edx
mov dword [ecx - 8], edi
mov dword [esp + 0x4c], ecx
cmp dword [esp + 0x70], eax
jbe 0x40cf68
mov edx, dword [esp + 0x276c]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
add edx, eax
movzx ecx, byte [edx + ecx]
cmp byte [edi + eax], cl
jbe 0x40ce52
cmp dword [esp + 0x3c], 0x7f
jbe 0x40c764
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x7c]
mov dword [ecx + edi*4], ebp
mov ecx, dword [esp + 0x277c]
mov dword [esp + 0x58], eax
and ebp, dword [ecx + 0x28]
mov ecx, dword [esp + 0x54]
lea edi, [ebp + ebp + 1]
mov ebp, dword [ecx + edi*4]
mov dword [esp + 0x7c], edi
mov eax, dword [esp + 0x2770]
sub dword [esp + 0x34], 1
mov edi, dword [esp + 0x34]
and eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
sub eax, ebp
sete dl
cmp dword [esp + 0x44], eax
mov dword [esp + 0x64], eax
setb al
or dl, al
jne 0x40c7b7
test edi, edi
jne 0x40c670
cmp dword [esp + 0x3c], 0x7f
ja 0x40cfba
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
nop
lea edi, [esp + 0x1cc4]
mov dword [eax], 0xfffffff
add eax, 4
cmp edi, eax
jne 0x40c7d0
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
mov eax, 4
mov edi, dword [esp + 0x3c]
add ebx, 1
mov dword [esp + 4], esi
mov esi, dword [esp + 0x98]
cmp ebx, 4
mov dword [esp + 0xc], edi
cmovb ebx, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0x10], eax
call fcn.0041b580
test eax, eax
je 0x40c8b4
cmp edi, 0x25
mov ecx, 0x25
cmovbe ecx, edi
cmp ebx, ecx
ja 0x40c8b4
mov esi, dword [esp + 0x9c]
add esi, dword [esp + 0x6c]
mov edx, ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x78]
shl edx, 5
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x34], esi
nop
lea esi, [esi]
mov eax, dword [ecx + ebx*4]
cmp eax, 0xffffffe
ja 0x40c8a4
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x68]
cmp esi, edi
cmovbe edi, esi
mov esi, eax
shr esi, 5
lea esi, [edi + esi + 1]
mov edi, dword [esp + 0x2778]
cmp esi, dword [edi + 0x44]
ja 0x40c8a4
and eax, 0x1f
mov edi, 0
mov dword [ebp], esi
cmp eax, ebx
cmove eax, edi
add ebp, 8
or eax, edx
mov dword [ebp - 4], eax
add ebx, 1
add edx, 0x20
cmp dword [esp + 0x30], ebx
jae 0x40c860
mov dword [esp + 0x34], ebp
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x88]
mov ecx, edx
shl ecx, 2
sub eax, ebp
mov edi, ecx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x60]
sar eax, 3
add ecx, edi
test eax, eax
mov dword [ecx], eax
je 0x40cdcc
mov edi, dword [esp + 0x84]
lea esi, [eax + edi]
mov eax, dword [esp + 0x74]
lea eax, [eax + esi*8 - 8]
mov ebx, dword [eax + 4]
shr ebx, 5
cmp ebx, 0x145
jbe 0x40cf04
mov edx, dword [eax + 4]
mov eax, dword [eax]
add edi, 1
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x94]
lea esi, [ebx - 1]
mov dword [ebp], eax
mov dword [ebp + 4], edx
mov dword [ecx], 1
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x80], esi
mov eax, ecx
add eax, ebx
cmp eax, edi
cmova eax, edi
mov edi, eax
mov dword [esp + 0x6c], eax
mov eax, ecx
lea ecx, [ecx + 1]
mov esi, ecx
mov dword [esp + 0x50], ecx
mov ecx, eax
add eax, 0x40
mov dword [esp + 0x4c], esi
cmp eax, edi
ja 0x40cb82
mov eax, edi
sub eax, 0x3f
mov edi, eax
mov dword [esp + 0x4c], eax
mov eax, ecx
add eax, 0x201
cmp edi, eax
jb 0x40cb82
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x50], ecx
jae 0x40cb82
mov eax, dword [esp + 0x277c]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x277c]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x277c]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x70]
mov edx, dword [eax + 0x28]
lea eax, [edx - 0xf]
and edx, esi
mov ebx, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2770]
and eax, esi
mov edi, eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x276c]
imul eax, dword [eax + edi], 0x1e35a7bd
lea edi, [edx + edx]
mov dword [esp + 0x3c], edi
add edi, 1
mov dword [esp + 0x40], edi
shr eax, 0xf
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x2770]
mov ebp, dword [eax]
mov dword [eax], esi
mov eax, esi
sub eax, ebp
and ecx, ebp
cmp ebx, eax
mov dword [esp + 0x30], ecx
jb 0x40d0ab
test eax, eax
je 0x40d0ab
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x276c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x64], eax
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
cmp edi, eax
mov esi, eax
mov eax, dword [esp + 0x30]
cmovbe esi, edi
mov edi, pe_nt_image_headers32
sub edi, esi
lea edx, [esi + eax]
add edx, dword [esp + 0x276c]
mov eax, dword [esp + 0x54]
lea ecx, [eax + esi]
add ecx, dword [esp + 0x276c]
add edi, edx
lea ebx, [edi - 4]
cmp edx, ebx
ja 0x40d01e
mov eax, dword [edx]
cmp dword [ecx], eax
jne 0x40d01e
xor eax, eax
mov dword [esp + 0x38], esi
jmp 0x40ca9b
mov esi, dword [ecx + eax]
cmp dword [edx], esi
jne 0x40caa5
add edx, 4
add eax, 4
cmp edx, ebx
jbe 0x40ca94
cmp edi, edx
mov esi, dword [esp + 0x38]
jbe 0x40cad1
movzx ebx, byte [ecx + eax]
cmp byte [edx], bl
jne 0x40cad1
mov ebx, eax
sub ebx, edx
sub edx, eax
add ebx, edi
mov edi, ebx
jmp 0x40caca
movzx ebx, byte [edx + eax]
cmp byte [ecx + eax], bl
jne 0x40cad1
add eax, 1
cmp eax, edi
jne 0x40cac1
add esi, eax
cmp esi, 0x7f
ja 0x40d02d
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x276c]
mov edi, dword [esp + 0x64]
movzx eax, byte [eax + esi]
cmp byte [edi + esi], al
mov eax, dword [esp + 0x5c]
jbe 0x40cff0
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x277c]
mov dword [esp + 0x44], esi
mov dword [eax + edi*4], ebp
and ebp, dword [ecx + 0x28]
lea edi, [ebp + ebp + 1]
lea edx, [eax + edi*4]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x40]
mov ebp, dword [edx]
lea ecx, [eax + edi*4]
mov eax, dword [esp + 0x2770]
sub dword [esp + 0x34], 1
mov edi, dword [esp + 0x34]
and eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
sub eax, ebp
sete bl
cmp dword [esp + 0x58], eax
setb al
or bl, al
jne 0x40cb57
test edi, edi
jne 0x40ca43
mov eax, dword [esp + 0x277c]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov eax, dword [esp + 0x277c]
mov eax, dword [eax + 0x30]
mov dword [ecx], eax
add dword [esp + 0x50], 8
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x4c], eax
ja 0x40c9a9
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x6c], ecx
jbe 0x40cd93
mov eax, dword [esp + 0x277c]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x277c]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x277c]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x2770]
mov edx, dword [eax + 0x28]
lea eax, [edx - 0xf]
and edx, esi
mov ebx, eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2770]
and eax, esi
mov ecx, eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x276c]
imul eax, dword [eax + ecx], 0x1e35a7bd
mov ecx, dword [esp + 0x64]
shr eax, 0xf
lea eax, [ecx + eax*4]
lea ecx, [edx + edx]
mov ebp, dword [eax]
mov dword [eax], esi
mov eax, esi
mov dword [esp + 0x44], ecx
add ecx, 1
mov dword [esp + 0x48], ecx
sub eax, ebp
and edi, ebp
cmp ebx, eax
mov dword [esp + 0x30], edi
jb 0x40d094
test eax, eax
je 0x40d094
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x276c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x58], eax
lea esi, [esi]
lea edi, [edi]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp edi, eax
mov esi, eax
mov eax, dword [esp + 0x30]
cmovbe esi, edi
mov edi, pe_nt_image_headers32
sub edi, esi
lea edx, [esi + eax]
add edx, dword [esp + 0x276c]
mov eax, dword [esp + 0x50]
lea ecx, [eax + esi]
add ecx, dword [esp + 0x276c]
add edi, edx
lea ebx, [edi - 4]
cmp edx, ebx
ja 0x40cec1
mov eax, dword [edx]
cmp dword [ecx], eax
jne 0x40cec1
xor eax, eax
mov dword [esp + 0x38], esi
jmp 0x40cca8
mov esi, dword [ecx + eax]
cmp dword [edx], esi
jne 0x40ccb2
add edx, 4
add eax, 4
cmp edx, ebx
jbe 0x40cca1
cmp edi, edx
mov esi, dword [esp + 0x38]
jbe 0x40cce0
movzx ebx, byte [ecx + eax]
cmp byte [edx], bl
jne 0x40cce0
mov ebx, eax
sub ebx, edx
sub edx, eax
add ebx, edi
mov edi, ebx
jmp 0x40ccd9
movzx ebx, byte [edx + eax]
cmp byte [ecx + eax], bl
jne 0x40cce0
add eax, 1
cmp eax, edi
jne 0x40ccd0
add esi, eax
cmp esi, 0x7f
ja 0x40ced0
mov eax, dword [esp + 0x276c]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x58]
add eax, esi
movzx eax, byte [eax + ecx]
cmp byte [edi + esi], al
mov eax, dword [esp + 0x5c]
jbe 0x40ce93
mov edi, dword [esp + 0x44]
mov dword [esp + 0x3c], esi
mov dword [eax + edi*4], ebp
mov edi, dword [esp + 0x277c]
and ebp, dword [edi + 0x28]
lea edi, [ebp + ebp + 1]
lea edx, [eax + edi*4]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x48]
mov ebp, dword [edx]
lea ecx, [eax + edi*4]
mov eax, dword [esp + 0x2770]
sub dword [esp + 0x34], 1
mov edi, dword [esp + 0x34]
and eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
sub eax, ebp
sete bl
cmp dword [esp + 0x54], eax
setb al
or bl, al
jne 0x40cd68
test edi, edi
jne 0x40cc50
mov eax, dword [esp + 0x277c]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov eax, dword [esp + 0x277c]
mov eax, dword [eax + 0x30]
mov dword [ecx], eax
add dword [esp + 0x4c], 1
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x6c]
jne 0x40cbac
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], 0
lea edx, [edi*4]
lea eax, [eax + ecx + 4]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x8c]
add eax, edi
mov edx, eax
lea eax, [edx + 1]
add edx, 4
cmp dword [esp + 0x2764], edx
mov dword [esp + 0x8c], eax
ja 0x40c351
mov eax, dword [esp + 0x2790]
mov edi, dword [esp + 0x278c]
cmp dword [esp + 0x2764], 0xffffffff
mov eax, dword [eax]
mov edi, dword [edi]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2784]
mov dword [esp + 0x48], edi
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2780]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
jne 0x40bce1
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], 0
jmp 0x40bd09
cmp dword [esp + 0x3c], 0x7f
jbe 0x40ce67
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x80]
mov dword [ecx + edi*4], ebp
mov edi, dword [esp + 0x277c]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
and ebp, dword [edi + 0x28]
lea edi, [ebp + ebp]
mov dword [esp + 0x80], edi
mov ebp, dword [ecx + edi*4]
jmp 0x40c781
xor eax, eax
jmp 0x40c6d5
mov edi, dword [esp + 0x48]
mov dword [esp + 0x40], esi
mov dword [eax + edi*4], ebp
mov edi, dword [esp + 0x277c]
and ebp, dword [edi + 0x28]
lea edi, [ebp + ebp]
lea ecx, [eax + ebp*8]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x44]
mov ebp, dword [ecx]
lea edx, [eax + edi*4]
jmp 0x40cd36
xor eax, eax
cmp edx, edi
jb 0x40ccba
jmp 0x40cceb
mov ecx, dword [esp + 0x277c]
mov edi, dword [esp + 0x5c]
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x44]
and eax, ebp
mov eax, dword [edi + eax*8]
mov dword [edi + ecx*4], eax
mov eax, dword [esp + 0x277c]
mov ecx, dword [esp + 0x48]
and ebp, dword [eax + 0x28]
mov eax, dword [edi + ebp*8 + 4]
mov dword [edi + ecx*4], eax
jmp 0x40cd80
mov dword [esp + 0x84], esi
jmp 0x40cdcc
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2770]
sub eax, ebp
and ecx, ebp
cmp dword [esp + 0x44], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], ecx
jb 0x40c7ca
test eax, eax
jne 0x40c648
jmp 0x40c7ca
lea eax, [esi*8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2760]
mov dword [esp], eax
call fcn.004136f0
mov dword [esp + 0x90], esi
mov edi, eax
jmp 0x40c3ea
cmp dword [esp + 0x3c], 0x7f
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
jbe 0x40c7ca
mov edi, dword [esp + 0x277c]
mov ecx, dword [esp + 0x54]
mov eax, dword [edi + 0x28]
mov edi, dword [esp + 0x7c]
and eax, ebp
mov eax, dword [ecx + eax*8]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 0x277c]
mov edi, dword [esp + 0x80]
and ebp, dword [eax + 0x28]
mov eax, dword [ecx + ebp*8 + 4]
mov dword [ecx + edi*4], eax
jmp 0x40c7ca
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x277c]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x7c]
mov eax, dword [eax + 0x30]
mov dword [edi + ecx*4], eax
mov eax, dword [esp + 0x277c]
mov ecx, dword [esp + 0x80]
mov eax, dword [eax + 0x30]
mov dword [edi + ecx*4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
jmp 0x40c7ca
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x277c]
mov dword [esp + 0x48], esi
mov dword [eax + ecx*4], ebp
and ebp, dword [edi + 0x28]
mov edi, dword [esp + 0x3c]
lea ecx, [ebp + ebp]
lea edx, [eax + edi*4]
mov dword [esp + 0x40], ecx
lea ecx, [eax + ebp*8]
mov ebp, dword [ecx]
jmp 0x40cb25
xor eax, eax
cmp edx, edi
jb 0x40caad
jmp 0x40cadc
mov ecx, dword [esp + 0x277c]
mov edi, dword [esp + 0x3c]
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x5c]
and eax, ebp
mov eax, dword [ecx + eax*8]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 0x277c]
mov edi, dword [esp + 0x40]
and ebp, dword [eax + 0x28]
mov eax, dword [ecx + ebp*8 + 4]
mov dword [ecx + edi*4], eax
jmp 0x40cb6f
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], eax
jmp 0x40c5ac
mov ecx, dword [esp + 0x40]
xor edx, edx
cmp dword [esp + 0x48], ecx
mov eax, ecx
jbe 0x40c4b0
mov dword [esp + 0x54], edi
jmp 0x40c553
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
lea edx, [eax + edi*4]
lea ecx, [eax + ecx*4]
jmp 0x40cd68
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
lea edx, [eax + ecx*4]
lea ecx, [eax + edi*4]
jmp 0x40cb57
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], eax
jmp 0x40c5ac
mov eax, dword [esp + 0x2770]
mov ecx, dword [esp + 0x276c]
mov edx, dword [esp + 0x2768]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
call fcn.00409860
jmp 0x40bf5a
lea eax, [esp + 0x1c2c]
mov dword [esp + 0x78], eax
jmp 0x40cde6
mov dword [esp + 0x74], 0
jmp 0x40c311
mov eax, dword [esp + 0x2768]
mov dword [esp + 0x94], eax
jmp 0x40c2e8