Function at 0x40bef0
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 [0x43e0a8]
mov edx, dword [0x43e0b4]
mov edi, dword [0x43e0b0]
mov ebx, dword [0x43e0ac]
mov dword [esp + 0x18], eax
mov eax, dword [0x43e0bc]
mov esi, dword [0x43e0b8]
mov dword [esp + 0x30], edi
lea ecx, [edx + eax]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x64], ecx
cmp ebx, edi
jb 0x40ccc5
cmp esi, eax
jb 0x40c2c3
mov ecx, dword [ebp + 0x73e0]
mov esi, dword [ebp + 0x739c]
cmp dword [ebp + 0x73d8], 1
mov edi, dword [ebp + 0x73dc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x73e4]
mov dword [esp + 0x38], esi
je 0x40c240
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
add eax, edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x48], eax
add esi, edi
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x27408]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
add esi, edx
mov dword [esp + 0x28], esi
cmp ebx, 4
ja case.default.0x40bfb7
jmp dword [ebx*4 + 0x417160]
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 0x40c22c
mov edx, dword [ebp + 0x73a4]
sub edx, eax
cmp edx, edi
jb 0x40cbea
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub ebx, edx
cmp ebx, edi
cmova ebx, edi
test ebx, ebx
jne 0x40c588
add eax, ebx
add dword [esp + 0x18], ebx
mov dword [ebp + 0x73a8], eax
cmp ebx, edi
jb 0x40caa0
mov dword [ebp + 0x73a8], 0
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x64]
mov dword [esp + 4], esi
mov eax, dword [ebp + 0x73a0]
mov dword [esp], eax
mov eax, ebp
call fcn.0040be00
cmp eax, 0xffffff88
ja 0x40cba5
mov ebx, dword [ebp + 0x739c]
jmp 0x40bfae
mov ebx, dword [ebp + 0x73c0]
mov esi, dword [ebp + 0x735c]
mov edx, dword [esp + 0x2c]
lea eax, [ebp + 0x72c0]
mov ecx, ebx
mov dword [esp], esi
call fcn.00401b00
mov edi, eax
cmp eax, 0xffffff88
ja 0x40cbae
test eax, eax
je 0x40c280
mov ecx, eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub ecx, ebx
sub edx, eax
cmp edx, ecx
jb 0x40cc08
mov esi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
add ebx, eax
mov dword [esp + 0x38], ecx
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x38]
mov eax, esi
mov dword [ebp + 0x73c0], edi
mov ebx, dword [ebp + 0x739c]
add eax, ecx
mov dword [esp + 0x18], eax
jmp 0x40bfae
mov dword [ebp + 0x739c], 1
mov eax, dword [0x43e0b4]
mov dword [ebp + 0x73bc], 0
mov dword [ebp + 0x73dc], eax
mov eax, dword [0x43e0b8]
mov dword [ebp + 0x73b8], 0
mov dword [ebp + 0x73e0], eax
mov eax, dword [0x43e0bc]
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 0x40c05e
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 ecx, edi
cmovbe ecx, ebx
test ecx, ecx
jne 0x40c648
add esi, ecx
add eax, ecx
mov dword [esp + 0x64], esi
mov dword [ebp + 0x73b8], eax
cmp edi, ebx
jb 0x40cc01
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 0x40c4f0
lea esi, [esi]
nop
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x72f4]
sub eax, esi
mov esi, dword [ebp + 0x72bc]
lea ecx, [edx - 3]
mov ebx, esi
cmp ecx, 1
ja 0x40c1f1
mov ecx, dword [ebp + 0x72f0]
test ecx, ecx
jne 0x40c1f1
test eax, eax
mov ebx, 1
cmovne ebx, eax
cmp ebx, esi
cmova ebx, esi
test ebx, ebx
je 0x40cbb7
cmp eax, ebx
jae 0x40c550
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x1c], edi
je 0x40caa0
mov eax, dword [ebp + 0x73a8]
mov edi, esi
mov dword [ebp + 0x739c], 3
sub edi, eax
cmp edx, 7
jne 0x40bfdf
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub ebx, edx
cmp ebx, edi
cmova ebx, edi
jmp 0x40c006
test esi, esi
je 0x40bf76
cmp eax, ecx
sete al
cmp edx, edi
sete bl
test al, bl
je 0x40c264
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x28], ecx
je 0x40bf76
mov dword [esp + 0x20], 0xffffff98
mov eax, dword [esp + 0x20]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 0x72c0]
mov ecx, dword [ebp + 0x72c4]
mov eax, esi
and eax, ecx
cmp eax, 0xffffffff
je 0x40c2e0
cmp dword [ebp + 0x72d4], 1
je 0x40c2e0
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x28]
xor edx, edx
sub ebx, eax
mov dword [esp + 0x38], eax
mov eax, edx
cmp ebx, esi
sbb eax, ecx
jae 0x40c6a0
cmp dword [ebp + 0x73d8], 1
jne 0x40c2e0
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 [ebp + 0x7398]
cmp eax, 0xffffffff
je 0x40c362
cmp eax, 1
je 0x40c358
mov ebx, dword [ebp + 0x7388]
test ebx, ebx
je 0x40c332
mov eax, dword [ebx]
mov esi, dword [ebx + 0x6ab4]
mov edx, dword [ebx + 0x6ab8]
test eax, eax
je 0x40ca90
test esi, esi
je 0x40c671
mov dword [esp], edx
mov dword [esp + 0x38], edx
mov dword [esp + 4], eax
call esi
mov edx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov dword [esp], edx
call esi
mov dword [ebp + 0x7388], 0
xor edx, edx
mov dword [ebp + 0x738c], 0
mov dword [ebp + 0x7398], 0
jmp 0x40c368
mov dword [ebp + 0x7398], 0
mov edx, dword [ebp + 0x738c]
mov eax, ebp
call fcn.004022e0
cmp eax, 0xffffff88
ja 0x40cc68
mov eax, dword [ebp + 0x27408]
and eax, 0xfffffff0
cmp eax, 0x184d2a50
jne 0x40c520
mov edx, dword [ebp + 0x2740c]
mov eax, 7
mov ebx, dword [ebp + 0x72c8]
mov dword [ebp + 0x72bc], edx
mov ecx, 0x400
mov edx, dword [ebp + 0x72cc]
mov dword [ebp + 0x72f4], eax
xor eax, eax
cmp ebx, ecx
mov esi, edx
sbb esi, eax
cmovae ecx, ebx
cmovae eax, edx
xor edx, edx
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x24]
mov eax, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
cmp dword [ebp + 0x73ac], ecx
sbb eax, dword [esp + 0x24]
mov dword [ebp + 0x72cc], ebx
mov dword [ebp + 0x72c8], ecx
jb 0x40cc71
mov edx, dword [ebp + 0x72d0]
mov eax, 4
cmp edx, eax
cmovae eax, edx
mov esi, eax
mov ebx, eax
mov eax, dword [ebp + 0x73d8]
test eax, eax
jne 0x40c469
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
xor eax, eax
mov edx, 0x20000
mov edi, eax
cmp edx, ecx
sbb edi, ebx
mov edi, dword [ebp + 0x72c0]
cmovae eax, ebx
cmovae edx, ecx
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, dword [ebp + 0x72c4]
mov dword [esp + 0x40], edx
add eax, 0x40
mov edx, ebx
adc edx, 0
add eax, dword [esp + 0x40]
mov ebx, ecx
adc edx, dword [esp + 0x44]
cmp edi, eax
sbb ebx, edx
cmovae edi, eax
cmovae ecx, edx
lea ebx, [esi + edi]
cmp ecx, 0
ja 0x40ca80
mov eax, dword [ebp + 0x73a4]
cmp eax, esi
setb cl
cmp dword [ebp + 0x73b4], edi
setb dl
add eax, dword [ebp + 0x73b4]
or edx, ecx
lea ecx, [ebx + ebx*2]
cmp eax, ecx
jb 0x40c5b0
mov eax, dword [ebp + 0x2741c]
add eax, 1
mov dword [ebp + 0x2741c], eax
test dl, dl
je 0x40ca68
mov eax, dword [ebp + 0x7380]
test eax, eax
je 0x40c5d0
sub eax, 0x27420
cmp eax, ebx
jb 0x40c636
mov eax, dword [ebp + 0x73a0]
add eax, esi
mov dword [ebp + 0x73a4], esi
mov dword [ebp + 0x73b0], eax
mov dword [ebp + 0x73b4], edi
mov dword [ebp + 0x739c], 2
jmp case.0x40bfb7.2
add eax, dword [ebp + 0x72d0]
cmp edx, eax
jae case.0x40bfb7.2
mov dword [ebp + 0x73bc], 0
mov dword [ebp + 0x73b8], 0
jmp case.0x40bfb7.2
mov ecx, dword [ebp + 0x73c0]
mov edx, dword [esp + 0x2c]
mov eax, ebp
call fcn.00401e80
cmp eax, 0xffffff88
ja 0x40cce6
mov edx, 3
mov eax, 2
jmp 0x40c397
mov esi, dword [esp + 0x18]
mov dword [esp + 4], ebx
lea edx, [esp + 0x64]
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword [esp], esi
call fcn.0040be00
cmp eax, 0xffffff88
ja 0x40cc7e
add esi, ebx
mov ebx, dword [ebp + 0x739c]
mov dword [esp + 0x18], esi
jmp 0x40bfae
add eax, dword [ebp + 0x73a0]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x73a8]
jmp 0x40c006
mov dword [ebp + 0x2741c], 0
test dl, dl
je 0x40c4dc
mov eax, dword [ebp + 0x7380]
test eax, eax
jne 0x40c4b5
mov edx, dword [ebp + 0x73a0]
mov eax, dword [ebp + 0x7374]
test edx, edx
je 0x40c5fd
mov ecx, dword [ebp + 0x7370]
test ecx, ecx
je 0x40c686
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 0x40cb60
mov dword [esp + 4], ebx
mov dword [esp], eax
call edx
mov dword [ebp + 0x73a0], eax
test eax, eax
jne 0x40c4c8
mov dword [esp + 0x20], 0xffffffc0
jmp 0x40c26c
add eax, dword [ebp + 0x73b0]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x38], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x73b8]
mov ecx, dword [esp + 0x38]
jmp 0x40c177
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40c332
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0x7374]
jmp 0x40c5fd
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
sub esi, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
cmp esi, 7
jbe 0x40c6e7
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
and eax, 0xfffffff0
cmp eax, 0x184d2a50
je 0x40cc48
mov dword [esp], 0
mov edx, dword [esp + 0x48]
mov ecx, esi
lea eax, [esp + 0x78]
call fcn.00401b00
mov ecx, eax
cmp eax, 0xffffff88
ja 0x40c7a8
test eax, eax
jne 0x40cb54
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
lea ecx, [edx + eax]
mov edx, esi
sub edx, eax
mov ebx, ecx
cmp edx, 2
jbe 0x40cb4c
movzx eax, byte [ebx + 2]
movzx ecx, word [ebx]
shl eax, 0x10
lea esi, [eax + ecx]
and ecx, 1
mov eax, esi
shr eax, 1
and eax, 3
cmp eax, 1
je 0x40cbf7
cmp eax, 3
je 0x40cc87
mov eax, esi
shr eax, 3
lea esi, [eax + 3]
cmp edx, esi
jb 0x40cb4c
sub edx, 3
add ebx, esi
sub edx, eax
test ecx, ecx
je 0x40c72c
cmp dword [esp + 0x98], 0
mov eax, ebx
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
je 0x40c79a
mov ecx, 0xffffffb8
cmp edx, 3
jbe 0x40c7a8
add eax, 4
mov ecx, eax
mov eax, dword [esp + 0x48]
sub ecx, eax
lea esi, [esi]
cmp esi, ecx
jb 0x40c2e0
mov eax, dword [ebp + 0x7398]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], edi
cmp eax, 0xffffffff
je 0x40cd8b
sub eax, 1
je 0x40cd83
mov edi, dword [ebp + 0x7388]
test edi, edi
je 0x40c81a
mov eax, dword [edi]
mov ebx, dword [edi + 0x6ab4]
mov esi, dword [edi + 0x6ab8]
test eax, eax
je 0x40d07c
mov dword [esp + 0x18], ecx
test ebx, ebx
je 0x40d05b
mov dword [esp + 4], eax
mov dword [esp], esi
call ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
call ebx
mov ecx, dword [esp + 0x18]
xor esi, esi
mov dword [ebp + 0x7388], esi
mov dword [ebp + 0x738c], esi
mov dword [ebp + 0x7398], esi
mov dword [esp + 0x34], esi
xor esi, esi
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov ebx, dword [ebp + 0x735c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x4c], eax
mov ecx, ebx
mov ebx, esi
mov dword [esp + 0x30], edx
cmp ecx, 1
mov dword [esp + 0x50], ecx
sbb eax, eax
and eax, 4
add eax, 1
cmp dword [esp + 0x18], eax
jb 0x40cfe7
mov esi, dword [esp + 0x2c]
mov esi, dword [esi]
mov edx, esi
mov dword [esp + 0x54], esi
and edx, 0xfffffff0
cmp edx, 0x184d2a50
je 0x40cd38
mov edx, dword [esp + 0x34]
test edx, edx
je 0x40cdd7
mov eax, ebp
call fcn.004022e0
cmp eax, 0xffffff88
ja 0x40cd65
mov eax, dword [ebp + 0x72ac]
mov esi, dword [esp + 0x30]
cmp eax, esi
je 0x40c8dc
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
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40cd6e
cmp dword [esp + 0x18], 4
jbe 0x40ccc5
mov ecx, 1
mov eax, dword [esp + 0x2c]
movzx edi, byte [eax + ecx - 1]
mov eax, edi
mov edx, edi
and edi, 3
shr al, 6
shr dl, 5
movzx eax, al
mov esi, dword [eax*4 + 0x417ee0]
add esi, dword [edi*4 + 0x417ef0]
add esi, ecx
mov ecx, edx
not ecx
and ecx, 1
add esi, ecx
test eax, eax
sete al
movzx eax, al
and eax, edx
add esi, eax
cmp esi, 0xffffff88
ja 0x40cdb0
lea eax, [esi + 3]
cmp dword [esp + 0x18], eax
jb 0x40cea9
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov eax, ebp
mov edx, edi
call fcn.00401e80
cmp eax, 0xffffff88
ja 0x40ceb6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], ebx
sub dword [esp + 0x18], esi
mov ecx, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, edi
mov edi, edx
add eax, esi
cmp ecx, 2
jbe 0x40cf5c
movzx ebx, byte [eax + 2]
movzx esi, word [eax]
shl ebx, 0x10
add esi, ebx
mov ebx, esi
mov dword [esp + 0x54], esi
shr esi, 1
and esi, 3
shr ebx, 3
cmp esi, 1
je 0x40cf19
cmp esi, 3
je 0x40d093
add eax, 3
lea edx, [ecx - 3]
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], edx
cmp edx, ebx
jb 0x40d086
mov ecx, dword [esp + 0x2c]
sub ecx, edi
cmp esi, 2
jne 0x40ceee
mov dword [esp], eax
mov edx, edi
mov eax, ebp
mov dword [esp + 4], ebx
call fcn.00408570
cmp eax, 0xffffff88
ja 0x40ceb6
mov esi, ebx
mov ebx, eax
cmp dword [ebp + 0x7364], 0
jne 0x40ceda
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 0x40c984
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 0x40d142
mov eax, dword [esp + 0x30]
mov ecx, edi
sub ecx, eax
mov eax, ecx
cdq
cmp esi, edx
je 0x40d0bc
mov eax, 0xffffffec
jmp 0x40cd65
cmp eax, 0x7f
jbe 0x40c4dc
jmp 0x40c4a7
lea ebx, [esi - 0x10]
mov edi, 0xfffffff0
jmp 0x40c469
test esi, esi
jne 0x40c329
jmp 0x40c679
mov edx, dword [esp + 0x64]
mov ecx, dword [0x43e0b4]
mov esi, dword [esp + 0x18]
mov eax, edx
sub eax, dword [0x43e0b4]
mov dword [ebp + 0x73dc], ecx
mov ecx, dword [0x43e0b8]
mov ebx, esi
sub ebx, dword [0x43e0a8]
mov dword [0x43e0bc], eax
mov dword [0x43e0b0], ebx
mov dword [ebp + 0x73e0], ecx
mov dword [ebp + 0x73e4], eax
cmp dword [esp + 0x48], esi
jne 0x40caf1
cmp dword [esp + 0x3c], edx
je 0x40cc99
mov dword [ebp + 0x73d4], 0
mov eax, dword [ebp + 0x72bc]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40cb70
mov eax, dword [ebp + 0x73d0]
mov esi, dword [ebp + 0x73b8]
cmp dword [ebp + 0x73bc], esi
jne 0x40cbca
test eax, eax
je 0x40c26c
cmp ebx, dword [0x43e0ac]
jb 0x40ccd8
mov dword [ebp + 0x739c], 2
mov dword [esp + 0x20], 1
jmp 0x40c26c
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov ecx, 0xffffffb8
jmp 0x40c7a8
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
jmp 0x40c628
mov eax, dword [ebp + 0x72f4]
xor edx, edx
sub eax, 2
cmp eax, 5
ja 0x40cb90
xor edx, edx
cmp dword [eax*4 + 0x4179e0], 2
sete dl
lea edx, [edx + edx*2]
mov eax, dword [esp + 0x20]
sub eax, dword [ebp + 0x73a8]
add eax, edx
mov dword [esp + 0x20], eax
jmp 0x40c26c
mov dword [esp + 0x20], eax
jmp 0x40c26c
mov dword [esp + 0x20], eax
jmp 0x40c26c
mov dword [ebp + 0x739c], 0
mov edx, dword [esp + 0x64]
jmp 0x40caa4
test eax, eax
jne 0x40cb3f
mov dword [ebp + 0x73d0], 1
lea edx, [ebx - 1]
mov dword [0x43e0b0], edx
jmp 0x40cb3f
mov dword [esp + 0x20], 0xffffffec
jmp 0x40c26c
mov esi, 4
jmp 0x40c766
mov edx, esi
jmp 0x40caa4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], edi
test edx, edx
jne 0x40ccef
mov eax, dword [0x43e0ac]
cmp esi, 1
mov esi, dword [esp + 0x20]
mov dword [0x43e0b0], eax
sbb eax, eax
and eax, 4
add eax, 2
cmp esi, eax
cmovae eax, esi
mov esi, dword [esp + 0x38]
sub eax, esi
add eax, 3
mov dword [esp + 0x20], eax
jmp 0x40c26c
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
cmp ecx, 0xfffffff7
ja 0x40cd2e
add ecx, 8
cmp esi, ecx
jae 0x40c7b0
jmp 0x40cb54
mov dword [esp + 0x20], eax
jmp 0x40c26c
mov dword [esp + 0x20], 0xfffffff0
jmp 0x40c26c
mov dword [esp + 0x20], eax
jmp 0x40c26c
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov ecx, 0xffffffec
jmp 0x40c7a8
mov eax, dword [ebp + 0x73d4]
add eax, 1
mov dword [ebp + 0x73d4], eax
cmp eax, 0xf
jle 0x40cafb
cmp dword [esp + 0x28], edx
je 0x40c2c3
cmp dword [esp + 0x1c], esi
jne 0x40cafb
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c26c
lea edx, [ebx + 1]
mov dword [0x43e0b0], edx
jmp 0x40c26c
mov dword [esp + 0x20], eax
jmp 0x40c26c
mov eax, ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0x1c], edx
add ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
add edx, dword [ebp + 0x73c0]
mov dword [esp + 0x38], edx
mov esi, dword [ebp + 0x735c]
mov dword [ebp + 0x73c0], edx
jmp 0x40cc18
mov ecx, 0xfffffff2
jmp 0x40c7a8
mov esi, dword [esp + 0x18]
cmp esi, 7
jbe 0x40ccc5
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 4]
cmp eax, 0xfffffff7
ja 0x40ced0
add eax, 8
cmp esi, eax
jb 0x40ccc5
cmp eax, 0xffffff88
jbe 0x40cebf
mov dword [esp + 0x20], eax
jmp 0x40c26c
cmp dword [esp + 0x18], 8
jbe 0x40ccc5
mov ecx, 5
jmp 0x40c8f8
xor ebx, ebx
mov dword [ebp + 0x7398], ebx
mov eax, dword [ebp + 0x738c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40cfd6
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
jmp 0x40c834
mov dword [esp + 0x20], esi
cmp dword [esp + 0x20], 0xfffffff6
jne 0x40c26c
cmp dword [esp + 0x4c], 1
mov dword [esp + 0x20], 0xfffffff6
jne 0x40c26c
jmp 0x40ccc5
xor edx, edx
mov dword [ebp + 0x72bc], eax
xor eax, eax
mov esi, 0x417ac0
mov dword [ebp + 0x72f4], eax
mov ecx, 3
mov dword [ebp + 0x72e8], eax
mov dword [ebp + 0x72ec], eax
mov dword [ebp + 0x72ac], eax
mov dword [ebp + 0x72b0], eax
mov dword [ebp + 0x72b4], eax
mov dword [ebp + 0x72b8], eax
lea eax, [ebp + 0x682c]
mov dword [ebp + 0x72fc], edx
mov edi, eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x72f8], edx
mov dword [ebp + 0x7390], edx
lea edx, [ebp + 0x1820]
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
test ebx, ebx
je 0x40c8ac
cmp dword [esp + 0x20], 0
je 0x40c8ac
cmp dword [esp + 0x20], 7
jbe 0x40ce8c
cmp dword [ebx], 0xec30a437
je 0x40cf69
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x72b4], ebx
mov dword [ebp + 0x72b0], ebx
add eax, ebx
mov dword [ebp + 0x72ac], eax
jmp 0x40c8b2
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c26c
mov dword [esp + 0x20], eax
jmp 0x40cdb4
add edi, eax
sub esi, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], esi
jmp 0x40c85c
mov eax, 0xfffffff2
jmp 0x40cd65
lea eax, [ebp + 0x7300]
mov ecx, ebx
mov edx, edi
call fcn.00402800
jmp 0x40ca08
cmp ecx, ebx
jb 0x40d0af
test edi, edi
je 0x40d0a0
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 0x40c9fb
lea edx, [eax + 3]
sub ecx, 3
mov dword [esp + 0x18], edx
mov dword [esp + 0x50], ecx
je 0x40d04e
mov ecx, dword [esp + 0x2c]
sub ecx, edi
cmp ecx, ebx
jb 0x40d041
test edi, edi
je 0x40d02c
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 0x40c9fb
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c26c
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x20]
mov dword [ebp + 0x7390], edx
mov ecx, edi
mov edx, ebx
call fcn.004074f0
mov edx, eax
cmp eax, 0xffffff88
ja 0x40cfdd
mov eax, dword [ebp + 0x72ac]
add edx, ebx
mov dword [ebp + 0x72fc], 1
mov dword [ebp + 0x72f8], 1
mov esi, edx
mov dword [ebp + 0x72b8], eax
sub eax, dword [ebp + 0x72b0]
sub esi, eax
lea eax, [ebx + edi]
mov dword [ebp + 0x72b0], edx
mov dword [ebp + 0x72b4], esi
mov esi, dword [ebp + 0x735c]
mov dword [ebp + 0x72ac], eax
mov dword [esp + 0x50], esi
jmp 0x40c8b2
xor esi, esi
jmp 0x40c834
mov eax, 0xffffffe2
jmp 0x40cd65
cmp dword [esp + 0x18], 0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
jne 0x40ccc5
mov esi, dword [esp + 0x38]
mov eax, edx
sub eax, esi
mov dword [esp + 0x20], eax
cmp eax, 0xffffff88
ja 0x40c26c
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 0x40caa4
test ebx, ebx
je 0x40c9fb
mov dword [esp + 0x20], 0xffffffb6
jmp 0x40c26c
mov dword [esp + 0x20], 0xffffffba
jmp 0x40c26c
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c26c
mov dword [esp], eax
call sub.msvcrt.dll_free
mov ecx, dword [esp + 0x18]
mov dword [esp], edi
mov dword [esp + 0x18], ecx
call sub.msvcrt.dll_free
mov ecx, dword [esp + 0x18]
jmp 0x40c81a
test ebx, ebx
jne 0x40c809
jmp 0x40d067
mov dword [esp + 0x20], 0xffffffb8
jmp 0x40c26c
mov dword [esp + 0x20], 0xffffffec
jmp 0x40c26c
test ebx, ebx
jne 0x40d135
xor esi, esi
jmp 0x40c9fb
mov dword [esp + 0x20], 0xffffffba
jmp 0x40c26c
cmp dword [esp + 0x50], ecx
jne 0x40ca59
cmp dword [ebp + 0x72e0], 0
je 0x40d0fc
cmp dword [esp + 0x18], 3
jbe 0x40d128
cmp dword [ebp + 0x7360], 0
jne 0x40d0f2
lea eax, [ebp + 0x7300]
call fcn.00401590
mov esi, dword [esp + 0x2c]
cmp dword [esi], eax
jne 0x40d150
add dword [esp + 0x2c], 4
sub dword [esp + 0x18], 4
mov esi, dword [esp + 0x30]
mov eax, edi
sub eax, esi
cmp eax, 0xffffff88
ja 0x40ceb6
sub dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], edi
mov ecx, dword [ebp + 0x735c]
mov dword [esp + 0x4c], eax
jmp 0x40c85c
mov dword [esp + 0x20], 0xffffffea
jmp 0x40c26c
mov dword [esp + 0x20], 0xffffffb6
jmp 0x40c26c
add eax, 1
jne 0x40ca46
jmp 0x40d0c6
mov eax, 0xffffffea
jmp 0x40cd65
mov dword [esp + 0x20], 0xffffffff
jmp 0x40c26c