Function at 0x40c750
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 [0x41e054]
mov esi, dword [0x41e048]
mov edx, dword [0x41e05c]
mov ecx, dword [0x41e058]
mov dword [esp + 0x14], eax
mov eax, dword [0x41e050]
lea edi, [esi + eax]
mov ebx, edi
mov dword [esp + 0x30], edi
mov edi, dword [0x41e04c]
mov dword [esp + 0x64], ebx
cmp edx, ecx
ja 0x40c840
mov dword [esp + 0x1c], 0xffffffba
cmp eax, edi
ja 0x40c848
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 0x40cae0
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.0x40c80b
jmp dword [ecx*4 + 0x417158]
mov eax, dword [ebp + 0x73d4]
add eax, 1
mov dword [ebp + 0x73d4], eax
cmp eax, 0xf
jle 0x40d431
cmp dword [esp + 0x28], esi
je 0x40cf61
cmp dword [esp + 0x18], edi
jne 0x40d431
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 0x40cac5
mov edx, dword [ebp + 0x73a4]
sub edx, eax
cmp edi, edx
ja 0x40d516
mov ebx, dword [esp + 0x18]
sub ebx, dword [esp + 0x14]
cmp ebx, edi
cmova ebx, edi
test ebx, ebx
jne 0x40ce40
add eax, ebx
add dword [esp + 0x14], ebx
mov dword [ebp + 0x73a8], eax
cmp edi, ebx
ja 0x40d3d0
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.0040c660
mov esi, eax
cmp eax, 0xffffff88
ja 0x40d3b0
mov ecx, dword [ebp + 0x739c]
jmp 0x40c802
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 0x40d3b0
test eax, eax
je 0x40cb28
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 0x40d558
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 0x40c802
mov dword [ebp + 0x739c], 1
mov eax, dword [0x41e048]
mov dword [ebp + 0x73bc], 0
mov dword [ebp + 0x73dc], eax
mov eax, dword [0x41e04c]
mov dword [ebp + 0x73b8], 0
mov dword [ebp + 0x73e0], eax
mov eax, dword [0x41e050]
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 0x40c8fe
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 0x40cf10
add esi, edx
add eax, edx
mov dword [esp + 0x64], esi
mov dword [ebp + 0x73b8], eax
cmp ebx, edi
ja 0x40d596
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 0x40cda0
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 0x40ca8a
mov ecx, dword [ebp + 0x72f0]
test ecx, ecx
jne 0x40ca8a
test eax, eax
mov ebx, 1
cmovne ebx, eax
cmp ebx, esi
cmova ebx, esi
test ebx, ebx
je 0x40d4d1
cmp eax, ebx
jae 0x40ce00
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x18], edi
je 0x40d3d0
mov eax, dword [ebp + 0x73a8]
mov edi, esi
mov dword [ebp + 0x739c], 3
sub edi, eax
cmp edx, 7
jne 0x40c87f
mov ebx, dword [esp + 0x18]
sub ebx, dword [esp + 0x14]
cmp ebx, edi
cmova ebx, edi
jmp 0x40c8a4
test ebx, ebx
je 0x40c7dc
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 0x40cb0b
cmp edi, dword [esp + 0x28]
je 0x40c7dc
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 0x40cb75
cmp dword [ebp + 0x72d4], 1
je 0x40cb75
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 0x40cf70
cmp dword [ebp + 0x73d8], 1
je 0x40cf61
mov eax, dword [ebp + 0x7398]
cmp eax, 0xffffffff
je 0x40cc02
cmp eax, 1
je 0x40cbf8
mov ebx, dword [ebp + 0x7388]
test ebx, ebx
je 0x40cbd3
mov edx, dword [ebx]
mov eax, dword [ebx + 0x6ab4]
mov ecx, dword [ebx + 0x6ab8]
test edx, edx
je 0x40d3c0
test eax, eax
je 0x40cf39
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 0x40cc08
mov dword [ebp + 0x7398], 0
mov edx, dword [ebp + 0x738c]
mov eax, ebp
call fcn.00402400
cmp eax, 0xffffff88
ja 0x40d523
mov eax, dword [ebp + 0x27408]
and eax, 0xfffffff0
cmp eax, 0x184d2a50
jne 0x40cdd0
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 0x40d59f
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 0x40cd18
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 0x40cce4
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 0x40cd18
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 0x40ce68
mov eax, dword [ebp + 0x2741c]
add eax, 1
mov dword [ebp + 0x2741c], eax
test dl, dl
je 0x40cf00
mov eax, dword [ebp + 0x7380]
test eax, eax
je 0x40ce88
sub eax, 0x27420
cmp eax, ebx
jb 0x40ceee
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.0x40c80b.2
add eax, dword [ebp + 0x72d0]
cmp edx, eax
jae case.0x40c80b.2
mov dword [ebp + 0x73bc], 0
mov dword [ebp + 0x73b8], 0
jmp case.0x40c80b.2
mov ecx, dword [ebp + 0x73c0]
mov edx, edi
mov eax, ebp
call fcn.00401fe0
cmp eax, 0xffffff88
ja 0x40d523
mov edx, 3
mov eax, 2
jmp 0x40cc37
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.0040c660
mov esi, eax
cmp eax, 0xffffff88
ja 0x40d3b0
add edi, ebx
mov ecx, dword [ebp + 0x739c]
mov dword [esp + 0x14], edi
jmp 0x40c802
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 0x40c8a4
mov dword [ebp + 0x2741c], 0
test dl, dl
je 0x40cd91
mov eax, dword [ebp + 0x7380]
test eax, eax
jne 0x40cd66
mov edx, dword [ebp + 0x73a0]
mov eax, dword [ebp + 0x7374]
test edx, edx
je 0x40ceb5
mov ecx, dword [ebp + 0x7370]
test ecx, ecx
je 0x40cf4e
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 0x40d490
mov dword [esp + 4], ebx
mov dword [esp], eax
call edx
mov dword [ebp + 0x73a0], eax
test eax, eax
jne 0x40cd79
mov dword [esp + 0x1c], 0xffffffc0
jmp 0x40c848
cmp eax, 0x7f
jbe 0x40cd91
jmp 0x40cd58
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 0x40ca17
mov dword [esp], edx
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40cbd3
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0x7374]
jmp 0x40ceb5
mov dword [esp + 0x1c], 0xffffffba
jmp 0x40c848
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 0x40cfaf
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
and eax, 0xfffffff0
cmp eax, 0x184d2a50
je 0x40d536
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 0x40d068
test eax, eax
jne 0x40d486
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 0x40d482
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 0x40d52c
cmp eax, 3
je 0x40d5b9
mov eax, edi
shr eax, 3
lea edi, [eax + 3]
cmp ebx, edi
jb 0x40d482
add ecx, edi
mov edi, 0xfffffffd
sub edi, eax
add ebx, edi
test edx, edx
je 0x40cff2
cmp dword [esp + 0x98], 0
mov edi, dword [esp + 0x3c]
je 0x40d05e
mov eax, 0xffffffb8
cmp ebx, 3
jbe 0x40d068
add ecx, 4
mov eax, ecx
sub eax, dword [esp + 0x38]
lea esi, [esi]
cmp dword [esp + 0x34], eax
jb 0x40cb75
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x7398]
cmp eax, 0xffffffff
je 0x40d779
sub eax, 1
je 0x40d76f
mov ebx, dword [ebp + 0x7388]
test ebx, ebx
je 0x40d0c8
mov eax, dword [ebx]
mov esi, dword [ebx + 0x6ab4]
mov edi, dword [ebx + 0x6ab8]
test eax, eax
je 0x40d8b6
test esi, esi
je 0x40d8a1
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 0x40d95a
mov esi, dword [esp + 0x34]
mov esi, dword [esi]
mov ecx, esi
mov dword [esp + 0x50], esi
and ecx, 0xfffffff0
cmp ecx, 0x184d2a50
je 0x40d622
mov edx, dword [esp + 0x44]
test edx, edx
je 0x40d679
mov eax, ebp
call fcn.00402400
cmp eax, 0xffffff88
ja 0x40d523
mov eax, dword [ebp + 0x72ac]
mov esi, dword [esp + 0x20]
cmp eax, esi
je 0x40d1b8
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 0x40d664
cmp dword [esp + 0x14], 8
jbe 0x40c840
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 0x40d7a2
lea eax, [ebx + 3]
cmp eax, dword [esp + 0x14]
ja 0x40c840
mov ecx, ebx
mov edx, edi
mov eax, ebp
mov esi, edi
call fcn.00401fe0
cmp eax, 0xffffff88
ja 0x40d861
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 0x40c840
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 0x40d81b
cmp ecx, 3
je 0x40d516
add eax, 3
mov dword [esp + 0x14], eax
lea eax, [edx - 3]
mov dword [esp + 0x50], eax
cmp esi, eax
ja 0x40c840
mov ecx, dword [esp + 0x34]
sub ecx, edi
cmp ebx, 2
je 0x40d7f6
cmp esi, ecx
ja 0x40cf61
test edi, edi
je 0x40d7c1
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 0x40d7da
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 0x40d256
mov ebx, dword [ebp + 0x72c4]
mov ecx, dword [ebp + 0x72c0]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], edx
cmp ebx, 0xffffffff
je 0x40d9b0
mov esi, edi
sub esi, dword [esp + 0x20]
mov eax, esi
cdq
cmp ebx, edx
jne 0x40d516
cmp ecx, esi
jne 0x40d516
cmp dword [ebp + 0x72e0], 0
je 0x40d37b
cmp dword [esp + 0x14], 3
jbe 0x40d9a3
cmp dword [ebp + 0x7360], 0
jne 0x40d371
lea eax, [ebp + 0x7300]
call fcn.004016a0
mov esi, dword [esp + 0x34]
cmp dword [esi], eax
jne 0x40d9a3
add dword [esp + 0x34], 4
sub dword [esp + 0x14], 4
mov eax, edi
sub eax, dword [esp + 0x20]
cmp eax, 0xffffff88
ja 0x40d861
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 0x40d13a
mov dword [esp + 0x1c], esi
jmp 0x40c848
test eax, eax
jne 0x40cbca
jmp 0x40cf41
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov esi, eax
mov ecx, dword [0x41e048]
mov edi, dword [esp + 0x14]
mov eax, esi
sub eax, dword [0x41e048]
mov dword [ebp + 0x73dc], ecx
mov ecx, dword [0x41e04c]
mov edx, edi
sub edx, dword [0x41e054]
mov dword [0x41e050], eax
mov dword [0x41e05c], edx
mov dword [ebp + 0x73e0], ecx
mov dword [ebp + 0x73e4], eax
cmp dword [esp + 0x30], esi
jne 0x40d427
cmp dword [esp + 0x38], edi
je 0x40c812
mov dword [ebp + 0x73d4], 0
mov eax, dword [ebp + 0x72bc]
test eax, eax
jne 0x40d4a0
mov eax, dword [ebp + 0x73d0]
mov esi, dword [ebp + 0x73b8]
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x73bc], esi
jne 0x40d4ea
test eax, eax
je 0x40c848
cmp edx, dword [0x41e058]
jb 0x40d5c7
mov dword [ebp + 0x739c], 2
mov dword [esp + 0x1c], 1
jmp 0x40c848
mov edi, dword [esp + 0x3c]
mov eax, 0xffffffb8
jmp 0x40d068
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
jmp 0x40cee0
mov esi, dword [ebp + 0x72f4]
xor ecx, ecx
lea edx, [esi - 2]
cmp edx, 5
ja 0x40d4c0
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 0x40c848
mov dword [ebp + 0x739c], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov esi, eax
jmp 0x40d3da
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40d5ac
sub edx, 1
mov dword [esp + 0x1c], 1
mov dword [0x41e05c], edx
mov dword [ebp + 0x73d0], 1
jmp 0x40c848
mov dword [esp + 0x1c], 0xffffffec
jmp 0x40c848
mov dword [esp + 0x1c], eax
jmp 0x40c848
mov edi, 4
jmp 0x40d02c
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
cmp eax, 0xfffffff7
ja 0x40d618
add eax, 8
cmp dword [esp + 0x34], eax
jae 0x40d072
jmp 0x40d486
mov dword [esp + 0x1c], esi
mov edx, eax
mov esi, ebx
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x40d5dd
mov eax, dword [0x41e058]
cmp esi, 1
mov esi, dword [esp + 0x1c]
mov dword [0x41e05c], 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 0x40c848
mov dword [esp + 0x20], esi
jmp 0x40d3da
mov dword [esp + 0x1c], 0xfffffff0
jmp 0x40c848
mov dword [esp + 0x1c], 1
jmp 0x40c848
mov edi, dword [esp + 0x3c]
mov eax, 0xffffffec
jmp 0x40d068
add edx, 1
mov dword [esp + 0x1c], 0
mov dword [0x41e05c], edx
jmp 0x40c848
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 0x40d568
mov eax, 0xfffffff2
jmp 0x40d068
mov esi, dword [esp + 0x14]
cmp esi, 7
jbe 0x40c840
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 4]
cmp eax, 0xfffffff7
ja 0x40d87f
add eax, 8
cmp eax, esi
ja 0x40c840
cmp eax, 0xffffff88
ja 0x40d523
add edi, eax
sub esi, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], esi
jmp 0x40d13a
cmp dword [esp + 0x14], 4
jbe 0x40c840
mov ecx, 1
jmp 0x40d1d0
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 0x40d188
cmp dword [esp + 0x3c], 7
jbe 0x40d92e
mov esi, dword [esp + 0x40]
cmp dword [esi], 0xec30a437
je 0x40d8c0
mov dword [ebp + 0x72b4], esi
mov dword [ebp + 0x72b0], esi
add esi, dword [esp + 0x3c]
mov dword [ebp + 0x72ac], esi
mov eax, esi
jmp 0x40d18e
mov dword [ebp + 0x7398], 0
mov eax, dword [ebp + 0x738c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40d88c
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
jmp 0x40d0fe
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x1c], 0xfffffff6
jne 0x40c848
cmp dword [esp + 0x48], 0
je 0x40c848
jmp 0x40c840
test esi, esi
jne 0x40d872
xor ebx, ebx
cmp dword [ebp + 0x7364], 0
je 0x40d2f0
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 0x40d2ec
mov eax, dword [esp + 0x14]
mov dword [esp + 4], esi
mov edx, edi
mov dword [esp], eax
mov eax, ebp
call fcn.00408fb0
mov ecx, eax
cmp eax, 0xffffff88
jbe 0x40d2dd
mov dword [esp + 0x1c], eax
jmp 0x40d7a6
lea ecx, [eax + 3]
sub edx, 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], edx
je 0x40c840
mov edx, dword [esp + 0x34]
sub edx, edi
cmp esi, edx
ja 0x40cf61
test edi, edi
je 0x40d86a
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 0x40d2dd
mov dword [esp + 0x1c], eax
jmp 0x40d7a6
test esi, esi
je 0x40d7cb
mov dword [esp + 0x1c], 0xffffffb6
jmp 0x40c848
mov dword [esp + 0x1c], 0xfffffff2
jmp 0x40c848
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jmp 0x40d0fe
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40d0c8
test esi, esi
jne 0x40d0bf
jmp 0x40d8a9
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 0x40d94d
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 0x40d18e
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 0x40d18e
mov dword [esp + 0x1c], 0xffffffe2
jmp 0x40c848
cmp dword [esp + 0x14], 0
jne 0x40c840
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffff88
ja 0x40c848
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 0x40d3da
mov dword [esp + 0x1c], 0xffffffea
jmp 0x40c848
cmp ecx, 0xffffffff
jne 0x40d324
jmp 0x40d33d
mov dword [esp + 0x1c], 0xffffffff
jmp 0x40c848