Function at 0x40cc50
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 0x40cd40
mov dword [esp + 0x1c], 0xffffffba
cmp eax, edi
ja 0x40cd48
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 0x40cfe0
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.0x40cd0b
jmp dword [ecx*4 + 0x417170]
mov eax, dword [ebp + 0x73d4]
add eax, 1
mov dword [ebp + 0x73d4], eax
cmp eax, 0xf
jle 0x40d931
cmp dword [esp + 0x28], esi
je 0x40d461
cmp dword [esp + 0x18], edi
jne 0x40d931
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 0x40cfc5
mov edx, dword [ebp + 0x73a4]
sub edx, eax
cmp edi, edx
ja 0x40da16
mov ebx, dword [esp + 0x18]
sub ebx, dword [esp + 0x14]
cmp ebx, edi
cmova ebx, edi
test ebx, ebx
jne 0x40d340
add eax, ebx
add dword [esp + 0x14], ebx
mov dword [ebp + 0x73a8], eax
cmp edi, ebx
ja 0x40d8d0
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.0040cb60
mov esi, eax
cmp eax, 0xffffff88
ja 0x40d8b0
mov ecx, dword [ebp + 0x739c]
jmp 0x40cd02
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 0x40d8b0
test eax, eax
je 0x40d028
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 0x40da58
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 0x40cd02
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 0x40cdfe
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 0x40d410
add esi, edx
add eax, edx
mov dword [esp + 0x64], esi
mov dword [ebp + 0x73b8], eax
cmp ebx, edi
ja 0x40da96
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 0x40d2a0
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 0x40cf8a
mov ecx, dword [ebp + 0x72f0]
test ecx, ecx
jne 0x40cf8a
test eax, eax
mov ebx, 1
cmovne ebx, eax
cmp ebx, esi
cmova ebx, esi
test ebx, ebx
je 0x40d9d1
cmp eax, ebx
jae 0x40d300
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x18], edi
je 0x40d8d0
mov eax, dword [ebp + 0x73a8]
mov edi, esi
mov dword [ebp + 0x739c], 3
sub edi, eax
cmp edx, 7
jne 0x40cd7f
mov ebx, dword [esp + 0x18]
sub ebx, dword [esp + 0x14]
cmp ebx, edi
cmova ebx, edi
jmp 0x40cda4
test ebx, ebx
je 0x40ccdc
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 0x40d00b
cmp edi, dword [esp + 0x28]
je 0x40ccdc
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 0x40d075
cmp dword [ebp + 0x72d4], 1
je 0x40d075
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 0x40d470
cmp dword [ebp + 0x73d8], 1
je 0x40d461
mov eax, dword [ebp + 0x7398]
cmp eax, 0xffffffff
je 0x40d102
cmp eax, 1
je 0x40d0f8
mov ebx, dword [ebp + 0x7388]
test ebx, ebx
je 0x40d0d3
mov edx, dword [ebx]
mov eax, dword [ebx + 0x6ab4]
mov ecx, dword [ebx + 0x6ab8]
test edx, edx
je 0x40d8c0
test eax, eax
je 0x40d439
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 0x40d108
mov dword [ebp + 0x7398], 0
mov edx, dword [ebp + 0x738c]
mov eax, ebp
call fcn.00402400
cmp eax, 0xffffff88
ja 0x40da23
mov eax, dword [ebp + 0x27408]
and eax, 0xfffffff0
cmp eax, 0x184d2a50
jne 0x40d2d0
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 0x40da9f
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 0x40d218
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 0x40d1e4
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 0x40d218
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 0x40d368
mov eax, dword [ebp + 0x2741c]
add eax, 1
mov dword [ebp + 0x2741c], eax
test dl, dl
je 0x40d400
mov eax, dword [ebp + 0x7380]
test eax, eax
je 0x40d388
sub eax, 0x27420
cmp eax, ebx
jb 0x40d3ee
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.0x40cd0b.2
add eax, dword [ebp + 0x72d0]
cmp edx, eax
jae case.0x40cd0b.2
mov dword [ebp + 0x73bc], 0
mov dword [ebp + 0x73b8], 0
jmp case.0x40cd0b.2
mov ecx, dword [ebp + 0x73c0]
mov edx, edi
mov eax, ebp
call fcn.00401fe0
cmp eax, 0xffffff88
ja 0x40da23
mov edx, 3
mov eax, 2
jmp 0x40d137
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.0040cb60
mov esi, eax
cmp eax, 0xffffff88
ja 0x40d8b0
add edi, ebx
mov ecx, dword [ebp + 0x739c]
mov dword [esp + 0x14], edi
jmp 0x40cd02
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 0x40cda4
mov dword [ebp + 0x2741c], 0
test dl, dl
je 0x40d291
mov eax, dword [ebp + 0x7380]
test eax, eax
jne 0x40d266
mov edx, dword [ebp + 0x73a0]
mov eax, dword [ebp + 0x7374]
test edx, edx
je 0x40d3b5
mov ecx, dword [ebp + 0x7370]
test ecx, ecx
je 0x40d44e
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 0x40d990
mov dword [esp + 4], ebx
mov dword [esp], eax
call edx
mov dword [ebp + 0x73a0], eax
test eax, eax
jne 0x40d279
mov dword [esp + 0x1c], 0xffffffc0
jmp 0x40cd48
cmp eax, 0x7f
jbe 0x40d291
jmp 0x40d258
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 0x40cf17
mov dword [esp], edx
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40d0d3
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0x7374]
jmp 0x40d3b5
mov dword [esp + 0x1c], 0xffffffba
jmp 0x40cd48
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 0x40d4af
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
and eax, 0xfffffff0
cmp eax, 0x184d2a50
je 0x40da36
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 0x40d568
test eax, eax
jne 0x40d986
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 0x40d982
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 0x40da2c
cmp eax, 3
je 0x40dab9
mov eax, edi
shr eax, 3
lea edi, [eax + 3]
cmp ebx, edi
jb 0x40d982
add ecx, edi
mov edi, 0xfffffffd
sub edi, eax
add ebx, edi
test edx, edx
je 0x40d4f2
cmp dword [esp + 0x98], 0
mov edi, dword [esp + 0x3c]
je 0x40d55e
mov eax, 0xffffffb8
cmp ebx, 3
jbe 0x40d568
add ecx, 4
mov eax, ecx
sub eax, dword [esp + 0x38]
lea esi, [esi]
cmp dword [esp + 0x34], eax
jb 0x40d075
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x7398]
cmp eax, 0xffffffff
je 0x40dc79
sub eax, 1
je 0x40dc6f
mov ebx, dword [ebp + 0x7388]
test ebx, ebx
je 0x40d5c8
mov eax, dword [ebx]
mov esi, dword [ebx + 0x6ab4]
mov edi, dword [ebx + 0x6ab8]
test eax, eax
je 0x40ddb6
test esi, esi
je 0x40dda1
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 0x40de5a
mov esi, dword [esp + 0x34]
mov esi, dword [esi]
mov ecx, esi
mov dword [esp + 0x50], esi
and ecx, 0xfffffff0
cmp ecx, 0x184d2a50
je 0x40db22
mov edx, dword [esp + 0x44]
test edx, edx
je 0x40db79
mov eax, ebp
call fcn.00402400
cmp eax, 0xffffff88
ja 0x40da23
mov eax, dword [ebp + 0x72ac]
mov esi, dword [esp + 0x20]
cmp eax, esi
je 0x40d6b8
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 0x40db64
cmp dword [esp + 0x14], 8
jbe 0x40cd40
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 0x40dca2
lea eax, [ebx + 3]
cmp eax, dword [esp + 0x14]
ja 0x40cd40
mov ecx, ebx
mov edx, edi
mov eax, ebp
mov esi, edi
call fcn.00401fe0
cmp eax, 0xffffff88
ja 0x40dd61
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 0x40cd40
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 0x40dd1b
cmp ecx, 3
je 0x40da16
add eax, 3
mov dword [esp + 0x14], eax
lea eax, [edx - 3]
mov dword [esp + 0x50], eax
cmp esi, eax
ja 0x40cd40
mov ecx, dword [esp + 0x34]
sub ecx, edi
cmp ebx, 2
je 0x40dcf6
cmp esi, ecx
ja 0x40d461
test edi, edi
je 0x40dcc1
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 0x40dcda
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 0x40d756
mov ebx, dword [ebp + 0x72c4]
mov ecx, dword [ebp + 0x72c0]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], edx
cmp ebx, 0xffffffff
je 0x40deb0
mov esi, edi
sub esi, dword [esp + 0x20]
mov eax, esi
cdq
cmp ebx, edx
jne 0x40da16
cmp ecx, esi
jne 0x40da16
cmp dword [ebp + 0x72e0], 0
je 0x40d87b
cmp dword [esp + 0x14], 3
jbe 0x40dea3
cmp dword [ebp + 0x7360], 0
jne 0x40d871
lea eax, [ebp + 0x7300]
call fcn.004016a0
mov esi, dword [esp + 0x34]
cmp dword [esi], eax
jne 0x40dea3
add dword [esp + 0x34], 4
sub dword [esp + 0x14], 4
mov eax, edi
sub eax, dword [esp + 0x20]
cmp eax, 0xffffff88
ja 0x40dd61
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 0x40d63a
mov dword [esp + 0x1c], esi
jmp 0x40cd48
test eax, eax
jne 0x40d0ca
jmp 0x40d441
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 0x40d927
cmp dword [esp + 0x38], edi
je 0x40cd12
mov dword [ebp + 0x73d4], 0
mov eax, dword [ebp + 0x72bc]
test eax, eax
jne 0x40d9a0
mov eax, dword [ebp + 0x73d0]
mov esi, dword [ebp + 0x73b8]
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x73bc], esi
jne 0x40d9ea
test eax, eax
je 0x40cd48
cmp edx, dword [0x427078]
jb 0x40dac7
mov dword [ebp + 0x739c], 2
mov dword [esp + 0x1c], 1
jmp 0x40cd48
mov edi, dword [esp + 0x3c]
mov eax, 0xffffffb8
jmp 0x40d568
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
jmp 0x40d3e0
mov esi, dword [ebp + 0x72f4]
xor ecx, ecx
lea edx, [esi - 2]
cmp edx, 5
ja 0x40d9c0
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 0x40cd48
mov dword [ebp + 0x739c], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov esi, eax
jmp 0x40d8da
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40daac
sub edx, 1
mov dword [esp + 0x1c], 1
mov dword [0x42707c], edx
mov dword [ebp + 0x73d0], 1
jmp 0x40cd48
mov dword [esp + 0x1c], 0xffffffec
jmp 0x40cd48
mov dword [esp + 0x1c], eax
jmp 0x40cd48
mov edi, 4
jmp 0x40d52c
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
cmp eax, 0xfffffff7
ja 0x40db18
add eax, 8
cmp dword [esp + 0x34], eax
jae 0x40d572
jmp 0x40d986
mov dword [esp + 0x1c], esi
mov edx, eax
mov esi, ebx
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x40dadd
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 0x40cd48
mov dword [esp + 0x20], esi
jmp 0x40d8da
mov dword [esp + 0x1c], 0xfffffff0
jmp 0x40cd48
mov dword [esp + 0x1c], 1
jmp 0x40cd48
mov edi, dword [esp + 0x3c]
mov eax, 0xffffffec
jmp 0x40d568
add edx, 1
mov dword [esp + 0x1c], 0
mov dword [0x42707c], edx
jmp 0x40cd48
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 0x40da68
mov eax, 0xfffffff2
jmp 0x40d568
mov esi, dword [esp + 0x14]
cmp esi, 7
jbe 0x40cd40
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 4]
cmp eax, 0xfffffff7
ja 0x40dd7f
add eax, 8
cmp eax, esi
ja 0x40cd40
cmp eax, 0xffffff88
ja 0x40da23
add edi, eax
sub esi, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], esi
jmp 0x40d63a
cmp dword [esp + 0x14], 4
jbe 0x40cd40
mov ecx, 1
jmp 0x40d6d0
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 0x40d688
cmp dword [esp + 0x3c], 7
jbe 0x40de2e
mov esi, dword [esp + 0x40]
cmp dword [esi], 0xec30a437
je 0x40ddc0
mov dword [ebp + 0x72b4], esi
mov dword [ebp + 0x72b0], esi
add esi, dword [esp + 0x3c]
mov dword [ebp + 0x72ac], esi
mov eax, esi
jmp 0x40d68e
mov dword [ebp + 0x7398], 0
mov eax, dword [ebp + 0x738c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40dd8c
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
jmp 0x40d5fe
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x1c], 0xfffffff6
jne 0x40cd48
cmp dword [esp + 0x48], 0
je 0x40cd48
jmp 0x40cd40
test esi, esi
jne 0x40dd72
xor ebx, ebx
cmp dword [ebp + 0x7364], 0
je 0x40d7f0
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 0x40d7ec
mov eax, dword [esp + 0x14]
mov dword [esp + 4], esi
mov edx, edi
mov dword [esp], eax
mov eax, ebp
call fcn.004094b0
mov ecx, eax
cmp eax, 0xffffff88
jbe 0x40d7dd
mov dword [esp + 0x1c], eax
jmp 0x40dca6
lea ecx, [eax + 3]
sub edx, 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], edx
je 0x40cd40
mov edx, dword [esp + 0x34]
sub edx, edi
cmp esi, edx
ja 0x40d461
test edi, edi
je 0x40dd6a
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 0x40d7dd
mov dword [esp + 0x1c], eax
jmp 0x40dca6
test esi, esi
je 0x40dccb
mov dword [esp + 0x1c], 0xffffffb6
jmp 0x40cd48
mov dword [esp + 0x1c], 0xfffffff2
jmp 0x40cd48
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jmp 0x40d5fe
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40d5c8
test esi, esi
jne 0x40d5bf
jmp 0x40dda9
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 0x40de4d
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 0x40d68e
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 0x40d68e
mov dword [esp + 0x1c], 0xffffffe2
jmp 0x40cd48
cmp dword [esp + 0x14], 0
jne 0x40cd40
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffff88
ja 0x40cd48
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 0x40d8da
mov dword [esp + 0x1c], 0xffffffea
jmp 0x40cd48
cmp ecx, 0xffffffff
jne 0x40d824
jmp 0x40d83d
mov dword [esp + 0x1c], 0xffffffff
jmp 0x40cd48