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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [0x427074]
mov esi, dword [0x427068]
mov edx, dword [0x42707c]
mov ecx, dword [0x427078]
mov dword [esp + 0x14], eax
mov eax, dword [0x427070]
lea edi, [esi + eax]
mov ebx, edi
mov dword [esp + 0x30], edi
mov edi, dword [0x42706c]
mov dword [esp + 0x64], ebx
cmp edx, ecx
ja 0x40cd50
mov dword [esp + 0x1c], 0xffffffba
cmp eax, edi
ja 0x40cd58
mov ebx, dword [ebp + 0x73dc]
cmp dword [ebp + 0x73d8], 1
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp + 0x73e0]
mov dword [esp + 0x28], ebx
mov ebx, dword [ebp + 0x73e4]
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebp + 0x739c]
mov dword [esp + 0x2c], ebx
je 0x40cff0
mov ebx, dword [esp + 0x14]
add esi, edi
mov dword [esp + 0x28], esi
mov eax, ebx
add ebx, ecx
sub ecx, edx
add eax, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, 4
ja case.default.0x40cd1b
jmp dword [ecx*4 + 0x417170]
mov eax, dword [ebp + 0x73d4]
add eax, 1
mov dword [ebp + 0x73d4], eax
cmp eax, 0xf
jle 0x40d941
cmp dword [esp + 0x28], esi
je 0x40d471
cmp dword [esp + 0x18], edi
jne 0x40d941
nop
mov dword [esp + 0x1c], 0xffffffb8
mov eax, dword [esp + 0x1c]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 0x72bc]
mov eax, dword [ebp + 0x73a8]
mov edx, dword [ebp + 0x72f4]
mov edi, esi
sub edi, eax
cmp edx, 7
je 0x40cfd5
mov edx, dword [ebp + 0x73a4]
sub edx, eax
cmp edi, edx
ja 0x40da26
mov ebx, dword [esp + 0x18]
sub ebx, dword [esp + 0x14]
cmp ebx, edi
cmova ebx, edi
test ebx, ebx
jne 0x40d350
add eax, ebx
add dword [esp + 0x14], ebx
mov dword [ebp + 0x73a8], eax
cmp edi, ebx
ja 0x40d8e0
mov eax, dword [ebp + 0x73a0]
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], esi
lea edx, [esp + 0x64]
mov dword [ebp + 0x73a8], 0
mov dword [esp], eax
mov eax, ebp
call fcn.0040cb70
mov esi, eax
cmp eax, 0xffffff88
ja 0x40d8c0
mov ecx, dword [ebp + 0x739c]
jmp 0x40cd12
mov ecx, dword [ebp + 0x73c0]
mov ebx, dword [ebp + 0x735c]
lea edi, [ebp + 0x27408]
lea eax, [ebp + 0x72c0]
mov dword [esp + 0x1c], ecx
mov edx, edi
mov dword [esp], ebx
call fcn.00401c60
mov esi, eax
cmp eax, 0xffffff88
ja 0x40d8c0
test eax, eax
je 0x40d038
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
sub edx, ecx
cmp edx, eax
ja 0x40da68
add ecx, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
mov eax, edi
mov dword [ebp + 0x73c0], esi
mov ecx, dword [ebp + 0x739c]
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x40cd12
mov dword [ebp + 0x739c], 1
mov eax, dword [0x427068]
mov dword [ebp + 0x73bc], 0
mov dword [ebp + 0x73dc], eax
mov eax, dword [0x42706c]
mov dword [ebp + 0x73b8], 0
mov dword [ebp + 0x73e0], eax
mov eax, dword [0x427070]
mov dword [ebp + 0x73a8], 0
mov dword [ebp + 0x73c0], 0
mov dword [ebp + 0x73cc], 0
mov dword [ebp + 0x73d0], 0
mov dword [ebp + 0x73e4], eax
jmp 0x40ce0e
mov eax, dword [ebp + 0x73b8]
mov ebx, dword [ebp + 0x73bc]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x28]
sub ebx, eax
sub edi, esi
cmp ebx, edi
mov edx, edi
cmovbe edx, ebx
test edx, edx
jne 0x40d420
add esi, edx
add eax, edx
mov dword [esp + 0x64], esi
mov dword [ebp + 0x73b8], eax
cmp ebx, edi
ja 0x40daa6
xor ebx, ebx
mov edx, dword [ebp + 0x73b4]
cmp edx, dword [ebp + 0x72c0]
mov dword [ebp + 0x739c], 2
mov esi, ebx
sbb esi, dword [ebp + 0x72c4]
jb 0x40d2b0
mov edx, dword [ebp + 0x72f4]
mov esi, dword [ebp + 0x72bc]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
lea ecx, [edx - 3]
mov ebx, esi
cmp ecx, 1
ja 0x40cf9a
mov ecx, dword [ebp + 0x72f0]
test ecx, ecx
jne 0x40cf9a
test eax, eax
mov ebx, 1
cmovne ebx, eax
cmp ebx, esi
cmova ebx, esi
test ebx, ebx
je 0x40d9e1
cmp eax, ebx
jae 0x40d310
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x18], edi
je 0x40d8e0
mov eax, dword [ebp + 0x73a8]
mov edi, esi
mov dword [ebp + 0x739c], 3
sub edi, eax
cmp edx, 7
jne 0x40cd8f
mov ebx, dword [esp + 0x18]
sub ebx, dword [esp + 0x14]
cmp ebx, edi
cmova ebx, edi
jmp 0x40cdb4
test ebx, ebx
je 0x40ccec
cmp esi, dword [esp + 0x18]
sete byte [esp + 0x18]
cmp eax, dword [esp + 0x1c]
movzx ebx, byte [esp + 0x18]
sete al
test bl, al
je 0x40d01b
cmp edi, dword [esp + 0x28]
je 0x40ccec
mov dword [esp + 0x1c], 0xffffff98
mov eax, dword [esp + 0x1c]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x72c4]
mov ebx, dword [ebp + 0x72c0]
mov eax, ecx
and eax, ebx
cmp eax, 0xffffffff
je 0x40d085
cmp dword [ebp + 0x72d4], 1
je 0x40d085
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
sub eax, edx
xor edx, edx
mov dword [esp + 0x1c], eax
mov eax, edx
cmp dword [esp + 0x1c], ebx
sbb eax, ecx
jae 0x40d480
cmp dword [ebp + 0x73d8], 1
je 0x40d471
mov eax, dword [ebp + 0x7398]
cmp eax, 0xffffffff
je 0x40d112
cmp eax, 1
je 0x40d108
mov ebx, dword [ebp + 0x7388]
test ebx, ebx
je 0x40d0e3
mov edx, dword [ebx]
mov eax, dword [ebx + 0x6ab4]
mov ecx, dword [ebx + 0x6ab8]
test edx, edx
je 0x40d8d0
test eax, eax
je 0x40d449
mov dword [esp], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], ecx
call eax
mov dword [ebp + 0x7388], 0
xor edx, edx
mov dword [ebp + 0x738c], 0
mov dword [ebp + 0x7398], 0
jmp 0x40d118
mov dword [ebp + 0x7398], 0
mov edx, dword [ebp + 0x738c]
mov eax, ebp
call fcn.00402400
cmp eax, 0xffffff88
ja 0x40da33
mov eax, dword [ebp + 0x27408]
and eax, 0xfffffff0
cmp eax, 0x184d2a50
jne 0x40d2e0
mov edx, dword [ebp + 0x2740c]
mov eax, 7
mov dword [ebp + 0x72bc], edx
mov edx, dword [ebp + 0x72c8]
mov ebx, 0x400
xor ecx, ecx
mov dword [ebp + 0x72f4], eax
mov eax, dword [ebp + 0x72cc]
cmp edx, ebx
mov edi, eax
sbb edi, ecx
cmovae ebx, edx
cmovae ecx, eax
mov dword [esp + 0x20], ebx
mov edi, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x72cc], ebx
xor ebx, ebx
cmp dword [ebp + 0x73ac], edi
mov edi, ebx
sbb edi, dword [esp + 0x24]
mov dword [ebp + 0x72c8], ecx
jb 0x40daaf
mov ebx, dword [ebp + 0x72d0]
mov ecx, 4
mov edi, dword [ebp + 0x73d8]
cmp ebx, ecx
cmovae ecx, ebx
mov dword [esp + 0x1c], ecx
mov ebx, ecx
test edi, edi
jne 0x40d228
mov ecx, 0x1ffff
mov esi, dword [ebp + 0x72c0]
mov edi, dword [ebp + 0x72c4]
mov ebx, 0
cmp ecx, edx
mov edx, 0
mov ecx, 0x20000
sbb edx, eax
jb 0x40d1f4
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add eax, 0x40
adc edx, 0
add eax, ecx
mov ecx, edi
adc edx, ebx
cmp esi, eax
sbb ecx, edx
cmovae esi, eax
cmovae edi, edx
mov eax, dword [esp + 0x1c]
lea ebx, [eax + esi]
test edi, edi
je 0x40d228
lea ebx, [eax - 0x10]
mov esi, 0xfffffff0
lea esi, [esi]
mov ecx, dword [ebp + 0x73b4]
mov eax, dword [ebp + 0x73a4]
cmp dword [esp + 0x1c], eax
seta dl
cmp ecx, esi
mov edi, edx
setb dl
add eax, ecx
lea ecx, [ebx + ebx*2]
or edx, edi
cmp eax, ecx
jb 0x40d378
mov eax, dword [ebp + 0x2741c]
add eax, 1
mov dword [ebp + 0x2741c], eax
test dl, dl
je 0x40d410
mov eax, dword [ebp + 0x7380]
test eax, eax
je 0x40d398
sub eax, 0x27420
cmp eax, ebx
jb 0x40d3fe
mov eax, dword [ebp + 0x73a0]
mov edi, dword [esp + 0x1c]
mov dword [ebp + 0x73b4], esi
add eax, edi
mov dword [ebp + 0x73a4], edi
mov dword [ebp + 0x73b0], eax
mov dword [ebp + 0x739c], 2
jmp case.0x40cd1b.2
add eax, dword [ebp + 0x72d0]
cmp edx, eax
jae case.0x40cd1b.2
mov dword [ebp + 0x73bc], 0
mov dword [ebp + 0x73b8], 0
jmp case.0x40cd1b.2
mov ecx, dword [ebp + 0x73c0]
mov edx, edi
mov eax, ebp
call fcn.00401fe0
cmp eax, 0xffffff88
ja 0x40da33
mov edx, 3
mov eax, 2
jmp 0x40d147
mov edi, dword [esp + 0x14]
mov dword [esp + 4], ebx
lea edx, [esp + 0x64]
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword [esp], edi
call fcn.0040cb70
mov esi, eax
cmp eax, 0xffffff88
ja 0x40d8c0
add edi, ebx
mov ecx, dword [ebp + 0x739c]
mov dword [esp + 0x14], edi
jmp 0x40cd12
mov ecx, dword [esp + 0x14]
add eax, dword [ebp + 0x73a0]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x73a8]
jmp 0x40cdb4
mov dword [ebp + 0x2741c], 0
test dl, dl
je 0x40d2a1
mov eax, dword [ebp + 0x7380]
test eax, eax
jne 0x40d276
mov edx, dword [ebp + 0x73a0]
mov eax, dword [ebp + 0x7374]
test edx, edx
je 0x40d3c5
mov ecx, dword [ebp + 0x7370]
test ecx, ecx
je 0x40d45e
mov dword [esp], eax
mov dword [esp + 4], edx
call ecx
mov eax, dword [ebp + 0x7374]
mov dword [ebp + 0x73a4], 0
mov edx, dword [ebp + 0x736c]
mov dword [ebp + 0x73b4], 0
test edx, edx
je 0x40d9a0
mov dword [esp + 4], ebx
mov dword [esp], eax
call edx
mov dword [ebp + 0x73a0], eax
test eax, eax
jne 0x40d289
mov dword [esp + 0x1c], 0xffffffc0
jmp 0x40cd58
cmp eax, 0x7f
jbe 0x40d2a1
jmp 0x40d268
add eax, dword [ebp + 0x73b0]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x73b8]
mov edx, dword [esp + 0x1c]
jmp 0x40cf27
mov dword [esp], edx
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40d0e3
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0x7374]
jmp 0x40d3c5
mov dword [esp + 0x1c], 0xffffffba
jmp 0x40cd58
cmp dword [esp + 0x34], 7
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
jbe 0x40d4bf
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
and eax, 0xfffffff0
cmp eax, 0x184d2a50
je 0x40da46
mov ebx, dword [esp + 0x38]
mov dword [esp], 0
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x34]
mov edx, ebx
call fcn.00401c60
cmp eax, 0xffffff88
ja 0x40d578
test eax, eax
jne 0x40d996
mov dword [esp + 0x3c], edi
add ebx, dword [esp + 0x90]
mov ecx, ebx
mov ebx, dword [esp + 0x34]
sub ebx, dword [esp + 0x90]
cmp ebx, 2
jbe 0x40d992
movzx eax, byte [ecx + 2]
movzx edx, word [ecx]
shl eax, 0x10
lea edi, [eax + edx]
and edx, 1
mov eax, edi
shr eax, 1
and eax, 3
cmp eax, 1
je 0x40da3c
cmp eax, 3
je 0x40dac9
mov eax, edi
shr eax, 3
lea edi, [eax + 3]
cmp ebx, edi
jb 0x40d992
add ecx, edi
mov edi, 0xfffffffd
sub edi, eax
add ebx, edi
test edx, edx
je 0x40d502
cmp dword [esp + 0x98], 0
mov edi, dword [esp + 0x3c]
je 0x40d56e
mov eax, 0xffffffb8
cmp ebx, 3
jbe 0x40d578
add ecx, 4
mov eax, ecx
sub eax, dword [esp + 0x38]
lea esi, [esi]
cmp dword [esp + 0x34], eax
jb 0x40d085
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x7398]
cmp eax, 0xffffffff
je 0x40dc89
sub eax, 1
je 0x40dc7f
mov ebx, dword [ebp + 0x7388]
test ebx, ebx
je 0x40d5d8
mov eax, dword [ebx]
mov esi, dword [ebx + 0x6ab4]
mov edi, dword [ebx + 0x6ab8]
test eax, eax
je 0x40ddc6
test esi, esi
je 0x40ddb1
mov dword [esp + 4], eax
mov dword [esp], edi
call esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call esi
mov dword [ebp + 0x7388], 0
mov dword [ebp + 0x738c], 0
mov dword [ebp + 0x7398], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
setne dl
cmp dword [esp + 0x3c], 0
setne al
and edx, eax
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x57], dl
mov edx, dword [ebp + 0x735c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
cmp edx, 1
mov ebx, edx
sbb eax, eax
and eax, 4
add eax, 1
cmp eax, dword [esp + 0x14]
ja 0x40de6a
mov esi, dword [esp + 0x34]
mov esi, dword [esi]
mov ecx, esi
mov dword [esp + 0x50], esi
and ecx, 0xfffffff0
cmp ecx, 0x184d2a50
je 0x40db32
mov edx, dword [esp + 0x44]
test edx, edx
je 0x40db89
mov eax, ebp
call fcn.00402400
cmp eax, 0xffffff88
ja 0x40da33
mov eax, dword [ebp + 0x72ac]
mov esi, dword [esp + 0x20]
cmp eax, esi
je 0x40d6c8
mov dword [ebp + 0x72b8], eax
mov edx, esi
sub eax, dword [ebp + 0x72b0]
sub edx, eax
mov dword [ebp + 0x72b0], esi
mov dword [ebp + 0x72b4], edx
mov dword [ebp + 0x72ac], esi
test ebx, ebx
jne 0x40db74
cmp dword [esp + 0x14], 8
jbe 0x40cd50
mov ecx, 5
mov edi, dword [esp + 0x34]
movzx ebx, byte [edi + ecx - 1]
mov eax, ebx
mov esi, ebx
mov edx, ebx
shr al, 6
and esi, 3
shr dl, 5
movzx eax, al
mov ebx, dword [eax*4 + 0x417ec0]
add ebx, dword [esi*4 + 0x417ed0]
add ebx, ecx
mov ecx, edx
not ecx
and ecx, 1
add ebx, ecx
test eax, eax
sete al
movzx eax, al
and eax, edx
add ebx, eax
cmp ebx, 0xffffff88
ja 0x40dcb2
lea eax, [ebx + 3]
cmp eax, dword [esp + 0x14]
ja 0x40cd50
mov ecx, ebx
mov edx, edi
mov eax, ebp
mov esi, edi
call fcn.00401fe0
cmp eax, 0xffffff88
ja 0x40dd71
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], ebx
mov edx, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x34], eax
mov eax, esi
add eax, ebx
cmp edx, 2
jbe 0x40cd50
movzx ecx, byte [eax + 2]
movzx ebx, word [eax]
shl ecx, 0x10
add ecx, ebx
mov esi, ecx
mov ebx, ecx
shr ecx, 1
and ebx, 1
and ecx, 3
shr esi, 3
mov dword [esp + 0x58], ebx
mov ebx, ecx
cmp ecx, 1
je 0x40dd2b
cmp ecx, 3
je 0x40da26
add eax, 3
mov dword [esp + 0x14], eax
lea eax, [edx - 3]
mov dword [esp + 0x50], eax
cmp esi, eax
ja 0x40cd50
mov ecx, dword [esp + 0x34]
sub ecx, edi
cmp ebx, 2
je 0x40dd06
cmp esi, ecx
ja 0x40d471
test edi, edi
je 0x40dcd1
mov eax, dword [esp + 0x14]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov ecx, esi
cmp dword [ebp + 0x7364], 0
mov ebx, esi
jne 0x40dcea
add edi, ecx
mov ebx, esi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
add eax, ebx
sub edx, ebx
cmp dword [esp + 0x58], 0
je 0x40d766
mov ebx, dword [ebp + 0x72c4]
mov ecx, dword [ebp + 0x72c0]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], edx
cmp ebx, 0xffffffff
je 0x40dec0
mov esi, edi
sub esi, dword [esp + 0x20]
mov eax, esi
cdq
cmp ebx, edx
jne 0x40da26
cmp ecx, esi
jne 0x40da26
cmp dword [ebp + 0x72e0], 0
je 0x40d88b
cmp dword [esp + 0x14], 3
jbe 0x40deb3
cmp dword [ebp + 0x7360], 0
jne 0x40d881
lea eax, [ebp + 0x7300]
call fcn.004016a0
mov esi, dword [esp + 0x34]
cmp dword [esi], eax
jne 0x40deb3
add dword [esp + 0x34], 4
sub dword [esp + 0x14], 4
mov eax, edi
sub eax, dword [esp + 0x20]
cmp eax, 0xffffff88
ja 0x40dd71
test eax, eax
cmove edi, dword [esp + 0x20]
mov dword [esp + 0x48], 1
sub dword [esp + 0x1c], eax
mov edx, dword [ebp + 0x735c]
mov dword [esp + 0x20], edi
jmp 0x40d64a
mov dword [esp + 0x1c], esi
jmp 0x40cd58
test eax, eax
jne 0x40d0da
jmp 0x40d451
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov esi, eax
mov ecx, dword [0x427068]
mov edi, dword [esp + 0x14]
mov eax, esi
sub eax, dword [0x427068]
mov dword [ebp + 0x73dc], ecx
mov ecx, dword [0x42706c]
mov edx, edi
sub edx, dword [0x427074]
mov dword [0x427070], eax
mov dword [0x42707c], edx
mov dword [ebp + 0x73e0], ecx
mov dword [ebp + 0x73e4], eax
cmp dword [esp + 0x30], esi
jne 0x40d937
cmp dword [esp + 0x38], edi
je 0x40cd22
mov dword [ebp + 0x73d4], 0
mov eax, dword [ebp + 0x72bc]
test eax, eax
jne 0x40d9b0
mov eax, dword [ebp + 0x73d0]
mov esi, dword [ebp + 0x73b8]
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x73bc], esi
jne 0x40d9fa
test eax, eax
je 0x40cd58
cmp edx, dword [0x427078]
jb 0x40dad7
mov dword [ebp + 0x739c], 2
mov dword [esp + 0x1c], 1
jmp 0x40cd58
mov edi, dword [esp + 0x3c]
mov eax, 0xffffffb8
jmp 0x40d578
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
jmp 0x40d3f0
mov esi, dword [ebp + 0x72f4]
xor ecx, ecx
lea edx, [esi - 2]
cmp edx, 5
ja 0x40d9d0
xor ecx, ecx
cmp dword [edx*4 + 0x4179c0], 2
sete cl
lea ecx, [ecx + ecx*2]
sub eax, dword [ebp + 0x73a8]
add eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x40cd58
mov dword [ebp + 0x739c], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov esi, eax
jmp 0x40d8ea
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40dabc
sub edx, 1
mov dword [esp + 0x1c], 1
mov dword [0x42707c], edx
mov dword [ebp + 0x73d0], 1
jmp 0x40cd58
mov dword [esp + 0x1c], 0xffffffec
jmp 0x40cd58
mov dword [esp + 0x1c], eax
jmp 0x40cd58
mov edi, 4
jmp 0x40d53c
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
cmp eax, 0xfffffff7
ja 0x40db28
add eax, 8
cmp dword [esp + 0x34], eax
jae 0x40d582
jmp 0x40d996
mov dword [esp + 0x1c], esi
mov edx, eax
mov esi, ebx
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x40daed
mov eax, dword [0x427078]
cmp esi, 1
mov esi, dword [esp + 0x1c]
mov dword [0x42707c], eax
sbb eax, eax
and eax, 4
add eax, 2
cmp esi, eax
cmovae eax, esi
sub eax, dword [esp + 0x2c]
add eax, 3
mov dword [esp + 0x1c], eax
jmp 0x40cd58
mov dword [esp + 0x20], esi
jmp 0x40d8ea
mov dword [esp + 0x1c], 0xfffffff0
jmp 0x40cd58
mov dword [esp + 0x1c], 1
jmp 0x40cd58
mov edi, dword [esp + 0x3c]
mov eax, 0xffffffec
jmp 0x40d578
add edx, 1
mov dword [esp + 0x1c], 0
mov dword [0x42707c], edx
jmp 0x40cd58
mov esi, dword [esp + 0x14]
mov eax, ecx
mov dword [esp + 8], edx
add eax, edi
mov dword [esp + 0x18], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x18]
add edx, dword [ebp + 0x73c0]
mov dword [esp + 0x2c], edx
mov esi, dword [ebp + 0x735c]
mov dword [ebp + 0x73c0], edx
jmp 0x40da78
mov eax, 0xfffffff2
jmp 0x40d578
mov esi, dword [esp + 0x14]
cmp esi, 7
jbe 0x40cd50
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 4]
cmp eax, 0xfffffff7
ja 0x40dd8f
add eax, 8
cmp eax, esi
ja 0x40cd50
cmp eax, 0xffffff88
ja 0x40da33
add edi, eax
sub esi, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], esi
jmp 0x40d64a
cmp dword [esp + 0x14], 4
jbe 0x40cd50
mov ecx, 1
jmp 0x40d6e0
mov dword [ebp + 0x72bc], eax
lea edx, [ebp + 0x1820]
lea eax, [ebp + 0x682c]
mov esi, 0x417aa0
mov edi, eax
mov ecx, 3
lea eax, [ebp + 0x10]
mov dword [ebp + 0x72f4], 0
mov dword [ebp + 0x72e8], 0
cmp byte [esp + 0x57], 0
mov dword [ebp + 0x72ec], 0
mov dword [ebp + 0x72ac], 0
mov dword [ebp + 0x72b0], 0
mov dword [ebp + 0x72b4], 0
mov dword [ebp + 0x72b8], 0
mov dword [ebp + 0x2828], 0xc00000c
mov dword [ebp + 0x72fc], 0
mov dword [ebp + 0x72f8], 0
mov dword [ebp + 0x7390], 0
mov dword [ebp + 0x72f0], 3
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 4], edx
lea edx, [ebp + 0x1018]
mov dword [ebp + 8], edx
lea edx, [ebp + 0x2828]
mov dword [ebp], eax
mov dword [ebp + 0xc], edx
je 0x40d698
cmp dword [esp + 0x3c], 7
jbe 0x40de3e
mov esi, dword [esp + 0x40]
cmp dword [esi], 0xec30a437
je 0x40ddd0
mov dword [ebp + 0x72b4], esi
mov dword [ebp + 0x72b0], esi
add esi, dword [esp + 0x3c]
mov dword [ebp + 0x72ac], esi
mov eax, esi
jmp 0x40d69e
mov dword [ebp + 0x7398], 0
mov eax, dword [ebp + 0x738c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40dd9c
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
jmp 0x40d60e
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x1c], 0xfffffff6
jne 0x40cd58
cmp dword [esp + 0x48], 0
je 0x40cd58
jmp 0x40cd50
test esi, esi
jne 0x40dd82
xor ebx, ebx
cmp dword [ebp + 0x7364], 0
je 0x40d800
xor ecx, ecx
lea eax, [ebp + 0x7300]
mov edx, edi
mov dword [esp + 0x5c], ecx
mov esi, ebx
call fcn.00402930
mov ecx, dword [esp + 0x5c]
jmp 0x40d7fc
mov eax, dword [esp + 0x14]
mov dword [esp + 4], esi
mov edx, edi
mov dword [esp], eax
mov eax, ebp
call fcn.004094c0
mov ecx, eax
cmp eax, 0xffffff88
jbe 0x40d7ed
mov dword [esp + 0x1c], eax
jmp 0x40dcb6
lea ecx, [eax + 3]
sub edx, 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], edx
je 0x40cd50
mov edx, dword [esp + 0x34]
sub edx, edi
cmp esi, edx
ja 0x40d471
test edi, edi
je 0x40dd7a
mov dword [esp + 8], esi
movzx eax, byte [eax + 3]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memset
mov ecx, esi
mov esi, 1
jmp 0x40d7ed
mov dword [esp + 0x1c], eax
jmp 0x40dcb6
test esi, esi
je 0x40dcdb
mov dword [esp + 0x1c], 0xffffffb6
jmp 0x40cd58
mov dword [esp + 0x1c], 0xfffffff2
jmp 0x40cd58
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jmp 0x40d60e
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40d5d8
test esi, esi
jne 0x40d5cf
jmp 0x40ddb9
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esi + 4]
mov ecx, ebx
mov dword [ebp + 0x7390], edx
mov edx, esi
call fcn.004084d0
mov edx, eax
cmp eax, 0xffffff88
ja 0x40de5d
mov eax, dword [ebp + 0x72ac]
add edx, esi
mov dword [ebp + 0x72fc], 1
mov dword [ebp + 0x72f8], 1
mov edi, edx
mov dword [ebp + 0x72b8], eax
sub eax, dword [ebp + 0x72b0]
sub edi, eax
mov eax, esi
mov dword [ebp + 0x72b0], edx
add eax, ebx
mov dword [ebp + 0x72b4], edi
mov ebx, dword [ebp + 0x735c]
mov dword [ebp + 0x72ac], eax
jmp 0x40d69e
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x72b4], eax
mov dword [ebp + 0x72b0], eax
add eax, dword [esp + 0x3c]
mov dword [ebp + 0x72ac], eax
jmp 0x40d69e
mov dword [esp + 0x1c], 0xffffffe2
jmp 0x40cd58
cmp dword [esp + 0x14], 0
jne 0x40cd50
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffff88
ja 0x40cd58
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x38]
mov dword [ebp + 0x72bc], 0
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x739c], 0
jmp 0x40d8ea
mov dword [esp + 0x1c], 0xffffffea
jmp 0x40cd58
cmp ecx, 0xffffffff
jne 0x40d834
jmp 0x40d84d
mov dword [esp + 0x1c], 0xffffffff
jmp 0x40cd58