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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0xac
mov eax, dword [0x43e0a8]
mov edx, dword [0x43e0b4]
mov ecx, dword [0x43e0b0]
mov esi, dword [0x43e0ac]
mov dword [esp + 0x18], eax
mov eax, dword [0x43e0bc]
mov edi, dword [0x43e0b8]
mov dword [esp + 0x30], ecx
lea ebp, [edx + eax]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x64], ebp
cmp esi, ecx
jb 0x40d36a
cmp edi, eax
jb 0x40c99b
cmp dword [ebx + 0x73d8], 1
mov esi, dword [ebx + 0x739c]
je 0x40c910
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add eax, edi
add edi, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x27408]
add edi, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
cmp esi, 4
ja case.default.0x40c685
jmp dword [esi*4 + 0x41717c]
mov edi, dword [ebx + 0x72bc]
mov eax, dword [ebx + 0x73a8]
mov edx, dword [ebx + 0x72f4]
mov ebp, edi
sub ebp, eax
cmp edx, 7
je 0x40c8f5
mov edx, dword [ebx + 0x73a4]
sub edx, eax
cmp edx, ebp
jb 0x40d2bb
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub esi, ecx
cmp esi, ebp
cmova esi, ebp
test esi, esi
jne 0x40cc60
add eax, esi
add dword [esp + 0x18], esi
mov dword [ebx + 0x73a8], eax
cmp esi, ebp
jb 0x40d170
mov dword [ebx + 0x73a8], 0
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x64]
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x73a0]
mov dword [esp], eax
mov eax, ebx
call fcn.0040c4f0
cmp eax, 0xffffff88
ja 0x40d276
mov esi, dword [ebx + 0x739c]
jmp 0x40c67c
mov esi, dword [ebx + 0x73c0]
mov edi, dword [ebx + 0x735c]
mov edx, dword [esp + 0x2c]
lea eax, [ebx + 0x72c0]
mov ecx, esi
mov dword [esp], edi
call fcn.00401a90
mov ebp, eax
cmp eax, 0xffffff88
ja 0x40d27f
test eax, eax
je 0x40c958
mov ecx, eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub ecx, esi
sub edx, eax
cmp edx, ecx
jb 0x40d2d2
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
add esi, eax
mov dword [esp + 0x3c], ecx
mov dword [esp], esi
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x3c]
mov eax, edi
mov dword [ebx + 0x73c0], ebp
mov esi, dword [ebx + 0x739c]
add eax, ecx
mov dword [esp + 0x18], eax
jmp 0x40c67c
mov dword [ebx + 0x739c], 1
mov eax, dword [0x43e0b4]
mov dword [ebx + 0x73bc], 0
mov dword [ebx + 0x73dc], eax
mov eax, dword [0x43e0b8]
mov dword [ebx + 0x73b8], 0
mov dword [ebx + 0x73e0], eax
mov eax, dword [0x43e0bc]
mov dword [ebx + 0x73a8], 0
mov dword [ebx + 0x73c0], 0
mov dword [ebx + 0x73cc], 0
mov dword [ebx + 0x73d0], 0
mov dword [ebx + 0x73e4], eax
jmp 0x40c72e
mov eax, dword [ebx + 0x73b8]
mov esi, dword [ebx + 0x73bc]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x28]
sub esi, eax
sub ebp, edi
cmp esi, ebp
mov ecx, ebp
cmovbe ecx, esi
test ecx, ecx
jne 0x40cd20
add edi, ecx
add eax, ecx
mov dword [esp + 0x64], edi
mov dword [ebx + 0x73b8], eax
cmp ebp, esi
jb 0x40d30a
xor edi, edi
mov edx, dword [ebx + 0x73b4]
cmp edx, dword [ebx + 0x72c0]
mov dword [ebx + 0x739c], 2
sbb edi, dword [ebx + 0x72c4]
jb 0x40cc00
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0x72f4]
sub eax, edi
mov edi, dword [ebx + 0x72bc]
lea ecx, [edx - 3]
mov esi, edi
cmp ecx, 1
ja 0x40c8ba
mov ecx, dword [ebx + 0x72f0]
test ecx, ecx
jne 0x40c8ba
test eax, eax
mov esi, 1
cmovne esi, eax
cmp esi, edi
cmova esi, edi
test esi, esi
je 0x40d288
cmp eax, esi
jae 0x40cbc8
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x1c], ecx
je 0x40d170
mov eax, dword [ebx + 0x73a8]
mov ebp, edi
mov dword [ebx + 0x739c], 3
sub ebp, eax
cmp edx, 7
jne 0x40c6af
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub esi, edx
cmp esi, ebp
cmova esi, ebp
jmp 0x40c6d6
test esi, esi
je 0x40c64c
cmp dword [ebx + 0x73dc], edx
sete cl
cmp dword [ebx + 0x73e4], eax
sete al
test cl, al
je 0x40c93a
cmp dword [ebx + 0x73e0], edi
je 0x40c64c
mov dword [esp + 0x20], 0xffffff98
mov eax, dword [esp + 0x20]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebx + 0x72c0]
mov ecx, dword [ebx + 0x72c4]
mov eax, edi
and eax, ecx
cmp eax, 0xffffffff
je 0x40c9b8
cmp dword [ebx + 0x72d4], 1
je 0x40c9b8
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x28]
xor edx, edx
sub esi, eax
mov dword [esp + 0x3c], eax
mov eax, edx
cmp esi, edi
sbb eax, ecx
jae 0x40cd80
cmp dword [ebx + 0x73d8], 1
jne 0x40c9b8
mov dword [esp + 0x20], 0xffffffba
mov eax, dword [esp + 0x20]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x7398]
cmp eax, 0xffffffff
je 0x40ca3a
cmp eax, 1
je 0x40ca30
mov esi, dword [ebx + 0x7388]
test esi, esi
je 0x40ca0a
mov eax, dword [esi]
mov edi, dword [esi + 0x6ab4]
mov edx, dword [esi + 0x6ab8]
test eax, eax
je 0x40d160
test edi, edi
je 0x40cd49
mov dword [esp], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 4], eax
call edi
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], esi
mov dword [esp], edx
call edi
mov dword [ebx + 0x7388], 0
xor edx, edx
mov dword [ebx + 0x738c], 0
mov dword [ebx + 0x7398], 0
jmp 0x40ca40
mov dword [ebx + 0x7398], 0
mov edx, dword [ebx + 0x738c]
mov eax, ebx
call fcn.00407130
mov eax, dword [ebx + 0x27408]
and eax, 0xfffffff0
cmp eax, 0x184d2a50
jne 0x40cc30
mov edx, dword [ebx + 0x2740c]
mov eax, 7
mov esi, dword [ebx + 0x72c8]
mov dword [ebx + 0x72bc], edx
mov ecx, 0x400
mov edx, dword [ebx + 0x72cc]
mov dword [ebx + 0x72f4], eax
xor eax, eax
cmp esi, ecx
mov edi, edx
sbb edi, eax
cmovae ecx, esi
cmovae eax, edx
xor edx, edx
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x24]
mov eax, edx
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0x20]
cmp dword [ebx + 0x73ac], esi
sbb eax, dword [esp + 0x24]
mov dword [ebx + 0x72cc], edi
mov dword [ebx + 0x72c8], esi
jb 0x40d331
mov edx, dword [ebx + 0x72d0]
mov eax, 4
cmp edx, eax
cmovae eax, edx
mov edi, eax
mov esi, eax
mov eax, dword [ebx + 0x73d8]
test eax, eax
jne 0x40cb40
mov ecx, dword [esp + 0x20]
mov edx, 0x20000
xor eax, eax
mov ebp, edx
cmp edx, ecx
mov ecx, eax
sbb ecx, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmovae eax, ecx
cmovae ebp, edx
mov dword [esp + 0x44], eax
mov eax, edx
mov edx, ecx
mov ecx, dword [ebx + 0x72c4]
mov dword [esp + 0x40], ebp
add eax, 0x40
mov ebp, dword [ebx + 0x72c0]
adc edx, 0
add eax, dword [esp + 0x40]
mov esi, ecx
adc edx, dword [esp + 0x44]
cmp ebp, eax
sbb esi, edx
cmovae ebp, eax
cmovae ecx, edx
lea esi, [edi + ebp]
cmp ecx, 0
ja 0x40d150
mov eax, dword [ebx + 0x73a4]
cmp eax, edi
setb cl
cmp dword [ebx + 0x73b4], ebp
setb dl
add eax, dword [ebx + 0x73b4]
or edx, ecx
lea ecx, [esi + esi*2]
cmp eax, ecx
jb 0x40cc88
mov eax, dword [ebx + 0x2741c]
add eax, 1
mov dword [ebx + 0x2741c], eax
test dl, dl
je 0x40d140
mov eax, dword [ebx + 0x7380]
test eax, eax
je 0x40cca8
sub eax, 0x27420
cmp eax, esi
jb 0x40cd0e
mov eax, dword [ebx + 0x73a0]
add eax, edi
mov dword [ebx + 0x73a4], edi
mov dword [ebx + 0x73b0], eax
mov dword [ebx + 0x73b4], ebp
mov dword [ebx + 0x739c], 2
jmp case.0x40c685.2
mov edi, dword [esp + 0x18]
mov dword [esp + 4], esi
lea edx, [esp + 0x64]
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword [esp], edi
call fcn.0040c4f0
cmp eax, 0xffffff88
ja 0x40cd71
add edi, esi
mov esi, dword [ebx + 0x739c]
mov dword [esp + 0x18], edi
jmp 0x40c67c
add eax, dword [ebx + 0x72d0]
cmp edx, eax
jae case.0x40c685.2
mov dword [ebx + 0x73bc], 0
mov dword [ebx + 0x73b8], 0
jmp case.0x40c685.2
mov ecx, dword [ebx + 0x73c0]
mov edx, dword [esp + 0x2c]
mov eax, ebx
call fcn.00406920
cmp eax, 0xffffff88
ja 0x40d397
mov edx, 3
mov eax, 2
jmp 0x40ca66
add eax, dword [ebx + 0x73a0]
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0x73a8]
jmp 0x40c6d6
mov dword [ebx + 0x2741c], 0
test dl, dl
je 0x40cbb3
mov eax, dword [ebx + 0x7380]
test eax, eax
jne 0x40cb8c
mov edx, dword [ebx + 0x73a0]
mov eax, dword [ebx + 0x7374]
test edx, edx
je 0x40ccd5
mov ecx, dword [ebx + 0x7370]
test ecx, ecx
je 0x40cd5e
mov dword [esp], eax
mov dword [esp + 4], edx
call ecx
mov eax, dword [ebx + 0x7374]
mov dword [ebx + 0x73a4], 0
mov edx, dword [ebx + 0x736c]
mov dword [ebx + 0x73b4], 0
test edx, edx
je 0x40d220
mov dword [esp + 4], esi
mov dword [esp], eax
call edx
mov dword [ebx + 0x73a0], eax
test eax, eax
jne 0x40cb9f
mov dword [esp + 0x20], 0xffffffc0
jmp 0x40c942
add eax, dword [ebx + 0x73b0]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x3c], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0x73b8]
mov ecx, dword [esp + 0x3c]
jmp 0x40c847
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.msvcrt.dll_free
jmp 0x40ca0a
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x7374]
jmp 0x40ccd5
mov dword [esp + 0x20], eax
jmp 0x40c942
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
sub edi, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
cmp edi, 7
jbe 0x40cdc7
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
and eax, 0xfffffff0
cmp eax, 0x184d2a50
je 0x40d311
mov dword [esp], 0
mov edx, dword [esp + 0x48]
mov ecx, edi
lea eax, [esp + 0x78]
call fcn.00401a90
mov ecx, eax
cmp eax, 0xffffff88
ja 0x40ce90
test eax, eax
jne 0x40d235
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
lea ecx, [edx + eax]
mov edx, edi
sub edx, eax
mov esi, ecx
cmp edx, 2
jbe 0x40d22d
movzx eax, byte [esi + 2]
movzx ecx, word [esi]
shl eax, 0x10
lea edi, [eax + ecx]
and ecx, 1
mov eax, edi
shr eax, 1
and eax, 3
cmp eax, 1
je 0x40d2c8
cmp eax, 3
je 0x40d377
mov eax, edi
shr eax, 3
lea edi, [eax + 3]
cmp edx, edi
jb 0x40d22d
sub edx, 3
add esi, edi
sub edx, eax
test ecx, ecx
je 0x40ce0c
cmp dword [esp + 0x98], 0
mov eax, esi
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
je 0x40ce7a
mov ecx, 0xffffffb8
cmp edx, 3
jbe 0x40ce90
add eax, 4
mov ecx, eax
mov eax, dword [esp + 0x48]
sub ecx, eax
lea esi, cs:[esi]
lea esi, [esi]
cmp edi, ecx
jb 0x40c9b8
mov eax, dword [ebx + 0x7398]
mov dword [esp + 0x40], esi
mov dword [esp + 0x20], ebp
cmp eax, 0xffffffff
je 0x40d532
sub eax, 1
je 0x40d52a
mov ebp, dword [ebx + 0x7388]
test ebp, ebp
je 0x40cf03
mov eax, dword [ebp]
mov esi, dword [ebp + 0x6ab4]
mov edi, dword [ebp + 0x6ab8]
test eax, eax
je 0x40d720
mov dword [esp + 0x18], ecx
test esi, esi
je 0x40d6ff
mov dword [esp + 4], eax
mov dword [esp], edi
call esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], ebp
mov dword [esp], edi
call esi
mov ecx, dword [esp + 0x18]
xor edi, edi
mov dword [ebx + 0x7388], edi
mov dword [ebx + 0x738c], edi
mov dword [ebx + 0x7398], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov ebp, ebx
mov dword [esp + 0x58], ecx
mov esi, dword [ebx + 0x735c]
mov dword [esp + 0x2c], eax
xor eax, eax
mov ebx, edx
mov dword [esp + 0x4c], eax
cmp esi, 1
mov dword [esp + 0x50], esi
sbb eax, eax
and eax, 4
add eax, 1
cmp dword [esp + 0x18], eax
jb 0x40d72a
mov edi, dword [esp + 0x2c]
mov edi, dword [edi]
mov edx, edi
mov dword [esp + 0x54], edi
and edx, 0xfffffff0
cmp edx, 0x184d2a50
je 0x40d3e7
mov edx, dword [esp + 0x34]
test edx, edx
je 0x40d455
mov eax, ebp
call fcn.00407130
mov eax, dword [ebp + 0x72ac]
cmp eax, ebx
je 0x40cfb6
mov dword [ebp + 0x72b8], eax
mov edx, ebx
sub eax, dword [ebp + 0x72b0]
sub edx, eax
mov dword [ebp + 0x72b0], ebx
mov dword [ebp + 0x72b4], edx
mov dword [ebp + 0x72ac], ebx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40d421
cmp dword [esp + 0x18], 4
jbe 0x40d36a
mov ecx, 1
mov eax, dword [esp + 0x2c]
movzx edi, byte [eax + ecx - 1]
mov edx, edi
mov eax, edi
and edi, 3
shr dl, 6
shr al, 5
movzx esi, dl
mov esi, dword [esi*4 + 0x417f20]
add esi, dword [edi*4 + 0x417f30]
add esi, ecx
mov ecx, eax
not ecx
and ecx, 1
add esi, ecx
test dl, dl
sete dl
movzx edx, dl
and eax, edx
add esi, eax
cmp esi, 0xffffff88
ja 0x40d436
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jb 0x40d55b
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov eax, ebp
mov edx, edi
call fcn.00406920
cmp eax, 0xffffff88
ja 0x40d61d
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], ebx
sub dword [esp + 0x18], esi
mov ecx, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x2c], eax
mov eax, edi
mov edi, ebx
add eax, esi
cmp ecx, 2
jbe 0x40d5f5
movzx ebx, byte [eax + 2]
movzx esi, word [eax]
shl ebx, 0x10
lea edx, [ebx + esi]
mov ebx, edx
mov dword [esp + 0x54], edx
shr edx, 1
mov esi, edx
shr ebx, 3
and esi, 3
cmp esi, 1
je 0x40d5b2
cmp esi, 3
je 0x40d63e
add eax, 3
lea edx, [ecx - 3]
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], edx
cmp edx, ebx
jb 0x40d631
mov ecx, dword [esp + 0x2c]
sub ecx, edi
cmp esi, 2
jne 0x40d587
mov dword [esp], eax
mov edx, edi
mov eax, ebp
mov dword [esp + 4], ebx
call fcn.00408a60
cmp eax, 0xffffff88
ja 0x40d61d
mov esi, ebx
mov ebx, eax
cmp dword [ebp + 0x7364], 0
jne 0x40d573
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
add edi, ebx
add eax, esi
sub ecx, esi
and dword [esp + 0x54], 1
je 0x40d05a
mov esi, dword [ebp + 0x72c4]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x72c0]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x50], eax
cmp esi, 0xffffffff
je 0x40d6e7
mov ecx, edi
sub ecx, ebx
mov eax, ecx
cdq
cmp esi, edx
je 0x40d667
mov eax, 0xffffffec
jmp 0x40d418
cmp eax, 0x7f
jbe 0x40cbb3
jmp 0x40cb7e
lea esi, [edi - 0x10]
mov ebp, 0xfffffff0
jmp 0x40cb40
test edi, edi
jne 0x40ca01
jmp 0x40cd51
mov edx, dword [esp + 0x64]
mov ecx, dword [0x43e0b4]
mov edi, dword [esp + 0x18]
mov eax, edx
sub eax, dword [0x43e0b4]
mov dword [ebx + 0x73dc], ecx
mov ecx, dword [0x43e0b8]
mov esi, edi
sub esi, dword [0x43e0a8]
mov dword [0x43e0bc], eax
mov dword [0x43e0b0], esi
mov dword [ebx + 0x73e0], ecx
mov dword [ebx + 0x73e4], eax
cmp dword [esp + 0x48], edi
jne 0x40d1c1
cmp dword [esp + 0x38], edx
je 0x40d33e
mov dword [ebx + 0x73d4], 0
mov eax, dword [ebx + 0x72bc]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40d240
mov eax, dword [ebx + 0x73d0]
mov edi, dword [ebx + 0x73b8]
cmp dword [ebx + 0x73bc], edi
jne 0x40d29b
test eax, eax
je 0x40c942
cmp esi, dword [0x43e0ac]
jb 0x40d389
mov dword [ebx + 0x739c], 2
mov dword [esp + 0x20], 1
jmp 0x40c942
mov dword [esp], esi
call sub.msvcrt.dll_malloc
jmp 0x40cd00
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov ecx, 0xffffffb8
jmp 0x40ce90
mov eax, dword [ebx + 0x72f4]
xor edx, edx
sub eax, 2
cmp eax, 5
ja 0x40d261
cmp dword [eax*4 + 0x417aac], 2
mov edx, 3
je 0x40d261
xor edx, edx
mov eax, dword [esp + 0x20]
sub eax, dword [ebx + 0x73a8]
add eax, edx
mov dword [esp + 0x20], eax
jmp 0x40c942
mov dword [esp + 0x20], eax
jmp 0x40c942
mov dword [esp + 0x20], eax
jmp 0x40c942
mov dword [ebx + 0x739c], 0
mov edx, dword [esp + 0x64]
jmp 0x40d174
test eax, eax
jne 0x40d20f
mov dword [ebx + 0x73d0], 1
lea edx, [esi - 1]
mov dword [0x43e0b0], edx
jmp 0x40d20f
mov dword [esp + 0x20], 0xffffffec
jmp 0x40c942
mov edi, 4
jmp 0x40ce46
mov dword [esp + 0x20], ebp
test edx, edx
jne 0x40d3a0
mov eax, dword [0x43e0ac]
cmp edi, 1
mov edi, dword [esp + 0x20]
mov dword [0x43e0b0], eax
sbb eax, eax
and eax, 4
add eax, 2
cmp edi, eax
cmovae eax, edi
sub eax, esi
add eax, 3
mov dword [esp + 0x20], eax
jmp 0x40c942
mov edx, edi
jmp 0x40d174
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
cmp ecx, 0xfffffff7
ja 0x40d3dd
add ecx, 8
cmp edi, ecx
jae 0x40ce98
jmp 0x40d235
mov dword [esp + 0x20], 0xfffffff0
jmp 0x40c942
mov eax, dword [ebx + 0x73d4]
add eax, 1
mov dword [ebx + 0x73d4], eax
cmp eax, 0xf
jle 0x40d1cb
cmp dword [esp + 0x28], edx
je 0x40c99b
cmp dword [esp + 0x1c], edi
jne 0x40d1cb
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c942
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov ecx, 0xffffffec
jmp 0x40ce90
lea edx, [esi + 1]
mov dword [0x43e0b0], edx
jmp 0x40c942
mov dword [esp + 0x20], eax
jmp 0x40c942
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0x1c], edx
add eax, esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
add edx, dword [ebx + 0x73c0]
mov dword [ebx + 0x73c0], edx
mov edi, dword [ebx + 0x735c]
mov esi, edx
jmp 0x40d2de
mov ecx, 0xfffffff2
jmp 0x40ce90
mov edi, dword [esp + 0x18]
cmp edi, 7
jbe 0x40d36a
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
cmp eax, 0xfffffff7
ja 0x40d613
add eax, 8
cmp edi, eax
jb 0x40d36a
cmp eax, 0xffffff88
jbe 0x40d602
mov dword [esp + 0x20], eax
jmp 0x40c942
cmp dword [esp + 0x18], 8
jbe 0x40d36a
mov ecx, 5
jmp 0x40cfd2
mov dword [esp + 0x20], esi
cmp dword [esp + 0x20], 0xfffffff6
jne 0x40c942
cmp dword [esp + 0x4c], 1
jne 0x40c942
jmp 0x40d36a
xor edx, edx
xor ecx, ecx
mov dword [ebp + 0x72bc], eax
lea eax, [ebp + 0x682c]
mov dword [ebp + 0x72f4], edx
mov edi, eax
mov esi, 0x417aa0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x72e8], edx
cmp dword [esp + 0x30], 0
mov dword [ebp + 0x72ec], edx
mov dword [ebp + 0x72ac], edx
mov dword [ebp + 0x72b0], edx
mov dword [ebp + 0x72b4], edx
mov dword [ebp + 0x72b8], edx
lea edx, [ebp + 0x1820]
mov dword [ebp + 0x72fc], ecx
mov dword [ebp + 0x72f8], ecx
mov dword [ebp + 0x7390], ecx
mov ecx, 3
mov dword [ebp + 0x2828], 0xc00000c
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 0x40d568
cmp dword [esp + 0x20], 0
je 0x40d568
cmp dword [esp + 0x20], 7
jbe 0x40d7e4
mov edi, dword [esp + 0x30]
cmp dword [edi], 0xec30a437
je 0x40d76f
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x72b4], edi
mov dword [ebp + 0x72b0], edi
add eax, edi
mov dword [ebp + 0x72ac], eax
jmp 0x40cf90
xor esi, esi
mov dword [ebx + 0x7398], esi
mov eax, dword [ebx + 0x738c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40d626
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], eax
jmp 0x40cf1f
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c942
mov eax, dword [ebp + 0x72ac]
jmp 0x40cf90
lea eax, [ebp + 0x7300]
mov ecx, ebx
mov edx, edi
call fcn.004072c0
jmp 0x40d0e1
cmp ecx, ebx
jb 0x40d65a
test edi, edi
je 0x40d64b
mov eax, dword [esp + 0x18]
mov dword [esp + 8], ebx
mov esi, ebx
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
jmp 0x40d0d4
lea edx, [eax + 3]
sub ecx, 3
mov dword [esp + 0x18], edx
mov dword [esp + 0x50], ecx
je 0x40d812
mov ecx, dword [esp + 0x2c]
sub ecx, edi
cmp ecx, ebx
jb 0x40d805
test edi, edi
je 0x40d81f
mov dword [esp + 8], ebx
movzx eax, byte [eax + 3]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memset
jmp 0x40d0d4
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c942
add edx, eax
sub edi, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], edi
jmp 0x40cf43
mov eax, 0xfffffff2
jmp 0x40d418
mov dword [esp + 0x20], eax
jmp 0x40d43a
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x40cf1f
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c942
mov dword [esp + 0x20], 0xffffffec
jmp 0x40c942
test ebx, ebx
jne 0x40d6da
xor esi, esi
jmp 0x40d0d4
mov dword [esp + 0x20], 0xffffffba
jmp 0x40c942
cmp dword [esp + 0x50], ecx
jne 0x40d12e
cmp dword [ebp + 0x72e0], 0
je 0x40d6a7
cmp dword [esp + 0x18], 3
jbe 0x40d6cd
cmp dword [ebp + 0x7360], 0
jne 0x40d69d
lea eax, [ebp + 0x7300]
call fcn.004015c0
mov edx, dword [esp + 0x2c]
cmp dword [edx], eax
jne 0x40d6f5
add dword [esp + 0x2c], 4
sub dword [esp + 0x18], 4
mov eax, edi
sub eax, ebx
cmp eax, 0xffffff88
ja 0x40d61d
sub dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov ebx, edi
mov esi, dword [ebp + 0x735c]
mov dword [esp + 0x4c], eax
jmp 0x40cf43
mov dword [esp + 0x20], 0xffffffea
jmp 0x40c942
mov dword [esp + 0x20], 0xffffffb6
jmp 0x40c942
add eax, 1
jne 0x40d11f
jmp 0x40d671
mov eax, 0xffffffea
jmp 0x40d418
mov dword [esp], eax
call sub.msvcrt.dll_free
mov ecx, dword [esp + 0x18]
mov dword [esp], ebp
mov dword [esp + 0x18], ecx
call sub.msvcrt.dll_free
mov ecx, dword [esp + 0x18]
jmp 0x40cf03
test esi, esi
jne 0x40cef2
jmp 0x40d70b
cmp dword [esp + 0x18], 0
mov edx, ebx
mov ecx, dword [esp + 0x58]
mov ebx, ebp
jne 0x40d36a
mov edi, dword [esp + 0x3c]
mov eax, edx
sub eax, edi
mov dword [esp + 0x20], eax
cmp eax, 0xffffff88
ja 0x40c942
mov eax, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [ebp + 0x72bc], eax
mov dword [ebp + 0x739c], eax
jmp 0x40d174
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov ecx, esi
mov dword [ebp + 0x7390], edx
mov edx, edi
call fcn.00407a20
mov edx, eax
cmp eax, 0xffffff88
ja 0x40d834
mov eax, dword [ebp + 0x72ac]
add edx, edi
mov dword [ebp + 0x72fc], 1
mov dword [ebp + 0x72f8], 1
mov ecx, edx
mov dword [ebp + 0x72b8], eax
sub eax, dword [ebp + 0x72b0]
sub ecx, eax
lea eax, [edi + esi]
mov edi, dword [ebp + 0x735c]
mov dword [ebp + 0x72b0], edx
mov dword [ebp + 0x72b4], ecx
mov dword [ebp + 0x72ac], eax
mov dword [esp + 0x50], edi
jmp 0x40cf90
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov dword [ebp + 0x72b4], eax
mov dword [ebp + 0x72b0], eax
add eax, edi
mov dword [ebp + 0x72ac], eax
jmp 0x40cf90
mov dword [esp + 0x20], 0xffffffba
jmp 0x40c942
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c942
test ebx, ebx
je 0x40d0d4
mov dword [esp + 0x20], 0xffffffb6
jmp 0x40c942
mov eax, 0xffffffe2
jmp 0x40d418
mov dword [esp + 0x20], 0xffffffff
jmp 0x40c942