Function at 0x40cdc0
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 0x40ceb0
mov dword [esp + 0x1c], 0xffffffba
cmp eax, edi
ja 0x40ceb8
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 0x40d150
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.0x40ce7b
jmp dword [ecx*4 + 0x4171dc]
mov eax, dword [ebp + 0x73d4]
add eax, 1
mov dword [ebp + 0x73d4], eax
cmp eax, 0xf
jle 0x40daa1
cmp dword [esp + 0x28], esi
je 0x40d5d1
cmp dword [esp + 0x18], edi
jne 0x40daa1
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 0x40d135
mov edx, dword [ebp + 0x73a4]
sub edx, eax
cmp edi, edx
ja 0x40db86
mov ebx, dword [esp + 0x18]
sub ebx, dword [esp + 0x14]
cmp ebx, edi
cmova ebx, edi
test ebx, ebx
jne 0x40d4b0
add eax, ebx
add dword [esp + 0x14], ebx
mov dword [ebp + 0x73a8], eax
cmp edi, ebx
ja 0x40da40
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.0040ccd0
mov esi, eax
cmp eax, 0xffffff88
ja 0x40da20
mov ecx, dword [ebp + 0x739c]
jmp 0x40ce72
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 0x40da20
test eax, eax
je 0x40d198
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 0x40dbc8
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 0x40ce72
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 0x40cf6e
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 0x40d580
add esi, edx
add eax, edx
mov dword [esp + 0x64], esi
mov dword [ebp + 0x73b8], eax
cmp ebx, edi
ja 0x40dc06
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 0x40d410
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 0x40d0fa
mov ecx, dword [ebp + 0x72f0]
test ecx, ecx
jne 0x40d0fa
test eax, eax
mov ebx, 1
cmovne ebx, eax
cmp ebx, esi
cmova ebx, esi
test ebx, ebx
je 0x40db41
cmp eax, ebx
jae 0x40d470
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x18], edi
je 0x40da40
mov eax, dword [ebp + 0x73a8]
mov edi, esi
mov dword [ebp + 0x739c], 3
sub edi, eax
cmp edx, 7
jne 0x40ceef
mov ebx, dword [esp + 0x18]
sub ebx, dword [esp + 0x14]
cmp ebx, edi
cmova ebx, edi
jmp 0x40cf14
test ebx, ebx
je 0x40ce4c
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 0x40d17b
cmp edi, dword [esp + 0x28]
je 0x40ce4c
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 0x40d1e5
cmp dword [ebp + 0x72d4], 1
je 0x40d1e5
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 0x40d5e0
cmp dword [ebp + 0x73d8], 1
je 0x40d5d1
mov eax, dword [ebp + 0x7398]
cmp eax, 0xffffffff
je 0x40d272
cmp eax, 1
je 0x40d268
mov ebx, dword [ebp + 0x7388]
test ebx, ebx
je 0x40d243
mov edx, dword [ebx]
mov eax, dword [ebx + 0x6ab4]
mov ecx, dword [ebx + 0x6ab8]
test edx, edx
je 0x40da30
test eax, eax
je 0x40d5a9
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 0x40d278
mov dword [ebp + 0x7398], 0
mov edx, dword [ebp + 0x738c]
mov eax, ebp
call fcn.00402400
cmp eax, 0xffffff88
ja 0x40db93
mov eax, dword [ebp + 0x27408]
and eax, 0xfffffff0
cmp eax, 0x184d2a50
jne 0x40d440
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 0x40dc0f
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 0x40d388
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 0x40d354
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 0x40d388
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 0x40d4d8
mov eax, dword [ebp + 0x2741c]
add eax, 1
mov dword [ebp + 0x2741c], eax
test dl, dl
je 0x40d570
mov eax, dword [ebp + 0x7380]
test eax, eax
je 0x40d4f8
sub eax, 0x27420
cmp eax, ebx
jb 0x40d55e
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.0x40ce7b.2
add eax, dword [ebp + 0x72d0]
cmp edx, eax
jae case.0x40ce7b.2
mov dword [ebp + 0x73bc], 0
mov dword [ebp + 0x73b8], 0
jmp case.0x40ce7b.2
mov ecx, dword [ebp + 0x73c0]
mov edx, edi
mov eax, ebp
call fcn.00401fe0
cmp eax, 0xffffff88
ja 0x40db93
mov edx, 3
mov eax, 2
jmp 0x40d2a7
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.0040ccd0
mov esi, eax
cmp eax, 0xffffff88
ja 0x40da20
add edi, ebx
mov ecx, dword [ebp + 0x739c]
mov dword [esp + 0x14], edi
jmp 0x40ce72
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 0x40cf14
mov dword [ebp + 0x2741c], 0
test dl, dl
je 0x40d401
mov eax, dword [ebp + 0x7380]
test eax, eax
jne 0x40d3d6
mov edx, dword [ebp + 0x73a0]
mov eax, dword [ebp + 0x7374]
test edx, edx
je 0x40d525
mov ecx, dword [ebp + 0x7370]
test ecx, ecx
je 0x40d5be
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 0x40db00
mov dword [esp + 4], ebx
mov dword [esp], eax
call edx
mov dword [ebp + 0x73a0], eax
test eax, eax
jne 0x40d3e9
mov dword [esp + 0x1c], 0xffffffc0
jmp 0x40ceb8
cmp eax, 0x7f
jbe 0x40d401
jmp 0x40d3c8
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 0x40d087
mov dword [esp], edx
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40d243
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0x7374]
jmp 0x40d525
mov dword [esp + 0x1c], 0xffffffba
jmp 0x40ceb8
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 0x40d61f
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
and eax, 0xfffffff0
cmp eax, 0x184d2a50
je 0x40dba6
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 0x40d6d8
test eax, eax
jne 0x40daf6
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 0x40daf2
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 0x40db9c
cmp eax, 3
je 0x40dc29
mov eax, edi
shr eax, 3
lea edi, [eax + 3]
cmp ebx, edi
jb 0x40daf2
add ecx, edi
mov edi, 0xfffffffd
sub edi, eax
add ebx, edi
test edx, edx
je 0x40d662
cmp dword [esp + 0x98], 0
mov edi, dword [esp + 0x3c]
je 0x40d6ce
mov eax, 0xffffffb8
cmp ebx, 3
jbe 0x40d6d8
add ecx, 4
mov eax, ecx
sub eax, dword [esp + 0x38]
lea esi, [esi]
cmp dword [esp + 0x34], eax
jb 0x40d1e5
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x7398]
cmp eax, 0xffffffff
je 0x40dde9
sub eax, 1
je 0x40dddf
mov ebx, dword [ebp + 0x7388]
test ebx, ebx
je 0x40d738
mov eax, dword [ebx]
mov esi, dword [ebx + 0x6ab4]
mov edi, dword [ebx + 0x6ab8]
test eax, eax
je 0x40df26
test esi, esi
je 0x40df11
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 0x40dfca
mov esi, dword [esp + 0x34]
mov esi, dword [esi]
mov ecx, esi
mov dword [esp + 0x50], esi
and ecx, 0xfffffff0
cmp ecx, 0x184d2a50
je 0x40dc92
mov edx, dword [esp + 0x44]
test edx, edx
je 0x40dce9
mov eax, ebp
call fcn.00402400
cmp eax, 0xffffff88
ja 0x40db93
mov eax, dword [ebp + 0x72ac]
mov esi, dword [esp + 0x20]
cmp eax, esi
je 0x40d828
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 0x40dcd4
cmp dword [esp + 0x14], 8
jbe 0x40ceb0
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 + 0x417f20]
add ebx, dword [esi*4 + 0x417f30]
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 0x40de12
lea eax, [ebx + 3]
cmp eax, dword [esp + 0x14]
ja 0x40ceb0
mov ecx, ebx
mov edx, edi
mov eax, ebp
mov esi, edi
call fcn.00401fe0
cmp eax, 0xffffff88
ja 0x40ded1
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 0x40ceb0
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 0x40de8b
cmp ecx, 3
je 0x40db86
add eax, 3
mov dword [esp + 0x14], eax
lea eax, [edx - 3]
mov dword [esp + 0x50], eax
cmp esi, eax
ja 0x40ceb0
mov ecx, dword [esp + 0x34]
sub ecx, edi
cmp ebx, 2
je 0x40de66
cmp esi, ecx
ja 0x40d5d1
test edi, edi
je 0x40de31
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 0x40de4a
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 0x40d8c6
mov ebx, dword [ebp + 0x72c4]
mov ecx, dword [ebp + 0x72c0]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], edx
cmp ebx, 0xffffffff
je 0x40e020
mov esi, edi
sub esi, dword [esp + 0x20]
mov eax, esi
cdq
cmp ebx, edx
jne 0x40db86
cmp ecx, esi
jne 0x40db86
cmp dword [ebp + 0x72e0], 0
je 0x40d9eb
cmp dword [esp + 0x14], 3
jbe 0x40e013
cmp dword [ebp + 0x7360], 0
jne 0x40d9e1
lea eax, [ebp + 0x7300]
call fcn.004016a0
mov esi, dword [esp + 0x34]
cmp dword [esi], eax
jne 0x40e013
add dword [esp + 0x34], 4
sub dword [esp + 0x14], 4
mov eax, edi
sub eax, dword [esp + 0x20]
cmp eax, 0xffffff88
ja 0x40ded1
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 0x40d7aa
mov dword [esp + 0x1c], esi
jmp 0x40ceb8
test eax, eax
jne 0x40d23a
jmp 0x40d5b1
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 0x40da97
cmp dword [esp + 0x38], edi
je 0x40ce82
mov dword [ebp + 0x73d4], 0
mov eax, dword [ebp + 0x72bc]
test eax, eax
jne 0x40db10
mov eax, dword [ebp + 0x73d0]
mov esi, dword [ebp + 0x73b8]
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x73bc], esi
jne 0x40db5a
test eax, eax
je 0x40ceb8
cmp edx, dword [0x427078]
jb 0x40dc37
mov dword [ebp + 0x739c], 2
mov dword [esp + 0x1c], 1
jmp 0x40ceb8
mov edi, dword [esp + 0x3c]
mov eax, 0xffffffb8
jmp 0x40d6d8
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
jmp 0x40d550
mov esi, dword [ebp + 0x72f4]
xor ecx, ecx
lea edx, [esi - 2]
cmp edx, 5
ja 0x40db30
xor ecx, ecx
cmp dword [edx*4 + 0x417a20], 2
sete cl
lea ecx, [ecx + ecx*2]
sub eax, dword [ebp + 0x73a8]
add eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x40ceb8
mov dword [ebp + 0x739c], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov esi, eax
jmp 0x40da4a
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40dc1c
sub edx, 1
mov dword [esp + 0x1c], 1
mov dword [0x42707c], edx
mov dword [ebp + 0x73d0], 1
jmp 0x40ceb8
mov dword [esp + 0x1c], 0xffffffec
jmp 0x40ceb8
mov dword [esp + 0x1c], eax
jmp 0x40ceb8
mov edi, 4
jmp 0x40d69c
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
cmp eax, 0xfffffff7
ja 0x40dc88
add eax, 8
cmp dword [esp + 0x34], eax
jae 0x40d6e2
jmp 0x40daf6
mov dword [esp + 0x1c], esi
mov edx, eax
mov esi, ebx
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x40dc4d
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 0x40ceb8
mov dword [esp + 0x20], esi
jmp 0x40da4a
mov dword [esp + 0x1c], 0xfffffff0
jmp 0x40ceb8
mov dword [esp + 0x1c], 1
jmp 0x40ceb8
mov edi, dword [esp + 0x3c]
mov eax, 0xffffffec
jmp 0x40d6d8
add edx, 1
mov dword [esp + 0x1c], 0
mov dword [0x42707c], edx
jmp 0x40ceb8
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 0x40dbd8
mov eax, 0xfffffff2
jmp 0x40d6d8
mov esi, dword [esp + 0x14]
cmp esi, 7
jbe 0x40ceb0
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 4]
cmp eax, 0xfffffff7
ja 0x40deef
add eax, 8
cmp eax, esi
ja 0x40ceb0
cmp eax, 0xffffff88
ja 0x40db93
add edi, eax
sub esi, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], esi
jmp 0x40d7aa
cmp dword [esp + 0x14], 4
jbe 0x40ceb0
mov ecx, 1
jmp 0x40d840
mov dword [ebp + 0x72bc], eax
lea edx, [ebp + 0x1820]
lea eax, [ebp + 0x682c]
mov esi, 0x417b00
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 0x40d7f8
cmp dword [esp + 0x3c], 7
jbe 0x40df9e
mov esi, dword [esp + 0x40]
cmp dword [esi], 0xec30a437
je 0x40df30
mov dword [ebp + 0x72b4], esi
mov dword [ebp + 0x72b0], esi
add esi, dword [esp + 0x3c]
mov dword [ebp + 0x72ac], esi
mov eax, esi
jmp 0x40d7fe
mov dword [ebp + 0x7398], 0
mov eax, dword [ebp + 0x738c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40defc
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
jmp 0x40d76e
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x1c], 0xfffffff6
jne 0x40ceb8
cmp dword [esp + 0x48], 0
je 0x40ceb8
jmp 0x40ceb0
test esi, esi
jne 0x40dee2
xor ebx, ebx
cmp dword [ebp + 0x7364], 0
je 0x40d960
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 0x40d95c
mov eax, dword [esp + 0x14]
mov dword [esp + 4], esi
mov edx, edi
mov dword [esp], eax
mov eax, ebp
call fcn.00409620
mov ecx, eax
cmp eax, 0xffffff88
jbe 0x40d94d
mov dword [esp + 0x1c], eax
jmp 0x40de16
lea ecx, [eax + 3]
sub edx, 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], edx
je 0x40ceb0
mov edx, dword [esp + 0x34]
sub edx, edi
cmp esi, edx
ja 0x40d5d1
test edi, edi
je 0x40deda
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 0x40d94d
mov dword [esp + 0x1c], eax
jmp 0x40de16
test esi, esi
je 0x40de3b
mov dword [esp + 0x1c], 0xffffffb6
jmp 0x40ceb8
mov dword [esp + 0x1c], 0xfffffff2
jmp 0x40ceb8
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jmp 0x40d76e
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40d738
test esi, esi
jne 0x40d72f
jmp 0x40df19
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 0x40dfbd
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 0x40d7fe
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 0x40d7fe
mov dword [esp + 0x1c], 0xffffffe2
jmp 0x40ceb8
cmp dword [esp + 0x14], 0
jne 0x40ceb0
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffff88
ja 0x40ceb8
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 0x40da4a
mov dword [esp + 0x1c], 0xffffffea
jmp 0x40ceb8
cmp ecx, 0xffffffff
jne 0x40d994
jmp 0x40d9ad
mov dword [esp + 0x1c], 0xffffffff
jmp 0x40ceb8