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

Disassembly:
jmp 0x4ac160
sub esp, 0x174
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x184]
push edi
mov eax, dword [ebp + 0x14]
mov ecx, eax
shl ecx, 0x1d
sar ecx, 0x1d
mov dword [esp + 0x5c], esi
sub ecx, 0
je 0x4aca92
sub ecx, 1
je 0x4aca7e
sub ecx, 2
je 0x4ac9c2
shr eax, 3
test al, 1
je 0x4ac1d5
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x4ac1cc
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0x2d
inc dword [esi + 4]
mov eax, dword [ebp]
mov ecx, ebp
mov ebx, dword [ebp + 0x10]
mov edi, dword [eax + 8]
sub ebx, edi
lea eax, [edi + 0x3f]
shr eax, 6
push eax
call fcn.00414a01
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040f4e3
add esp, 0xc
lea ecx, [esp + 0x1c]
push dword [eax + 4]
push dword [eax]
push edi
call fcn.004104ec
mov eax, dword [esp + 0x18c]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4ac234
mov eax, dword [ebp]
imul ecx, dword [eax + 8], 0x3b
mov eax, 0x5397829d
mul ecx
mov eax, edx
shr eax, 6
add eax, 2
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x24]
cmp edi, 0x40
ja 0x4ac256
push 2
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0040dea4
add esp, 0xc
cmp edi, eax
cmovb eax, edi
jmp 0x4ac263
lea ecx, [esp + 0x1c]
call fcn.0040b8c0
mov edi, dword [esp + 0x24]
inc ebx
add ebx, eax
mov dword [esp + 0x18], ebx
cmp edi, 0x40
ja 0x4ac294
cmp eax, edi
jne 0x4ac27e
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
jmp 0x4ac29e
movq xmm1, qword [esp + 0x1c]
movd xmm0, eax
psrlq xmm1, xmm0
movq qword [esp + 0x1c], xmm1
jmp 0x4ac29e
push eax
lea ecx, [esp + 0x20]
call fcn.004034fe
test ebx, ebx
je 0x4ac389
mov eax, dword [ebp]
mov ebp, dword [eax + 8]
jle 0x4ac2f4
lea eax, [ebx + ebp]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call fcn.00401654
push eax
lea ecx, [esp + 0x20]
call fcn.0040afbf
cmp dword [esp + 0x34], 0x40
jbe 0x4ac2dd
push dword [esp + 0x2c]
call fcn.0040dae4
add esp, 4
push ebx
lea ecx, [esp + 0x20]
call fcn.0040cbcb
mov dword [esp + 0x18], 0
jmp 0x4ac389
neg ebx
mov eax, 0x22b63cbf
imul ecx, ebx, 0x89
add ecx, 0x88
imul ecx
lea eax, [esp + 0x60]
sar edx, 3
lea ecx, [esp + 0x1c]
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, ebp
push edi
push eax
call fcn.00401654
push eax
lea ecx, [esp + 0x20]
call fcn.0040afbf
cmp dword [esp + 0x68], 0x40
jbe 0x4ac341
push dword [esp + 0x60]
call fcn.0040dae4
add esp, 4
push 0
push 0
push 5
push edi
lea ecx, [esp + 0x3c]
call fcn.00414f8d
test bl, 1
je 0x4ac364
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call fcn.004120f8
sar ebx, 1
je 0x4ac376
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
call fcn.004120f8
jmp 0x4ac351
cmp dword [esp + 0x34], 0x40
jbe 0x4ac389
push dword [esp + 0x2c]
call fcn.0040dae4
add esp, 4
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004a1fb0
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x8c]
add esp, 0xc
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x100
mov dword [esp + 0x54], edi
cmp edi, 0x40
ja 0x4ac3fd
lea eax, [edi - 1]
mov ecx, 0x3f
and eax, 0x3f
or edx, 0xffffffff
sub ecx, eax
or eax, 0xffffffff
call fcn.00403bcf
and eax, 0xa
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edi
movlpd qword [esp + 0x3c], xmm0
jmp 0x4ac41f
push 0
push 0
push 0xa
lea ecx, [esp + 0x58]
call fcn.004148fd
push 0
push 0
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x50], edi
call fcn.004148fd
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], 1
cmp dword [esp + 0x24], 0x40
jbe 0x4ac455
lea ecx, [esp + 0x1c]
call fcn.00412b61
mov edx, dword [esp + 0x24]
mov ecx, edx
sub ecx, eax
cmp ecx, 0x40
ja 0x4ac461
cmp edx, 0x40
jbe 0x4ac455
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4ac45d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
or ecx, eax
je 0x4ac4dd
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00404566
add esp, 0x10
cmp dword [esp + 0x44], 0x40
ja 0x4ac48a
mov ebx, dword [esp + 0x3c]
jmp 0x4ac490
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
cmp byte [esp + 0x13], 0
je 0x4ac49e
test ebx, ebx
jne 0x4ac49e
inc edi
jmp 0x4ac428
mov ecx, dword [esp + 0x78]
add bl, 0x30
cmp ecx, dword [esp + 0x7c]
jb 0x4ac4c7
push 1
push 0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x80]
call fcn.00405e1b
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov byte [eax + ecx], bl
inc dword [esp + 0x78]
xor al, al
mov byte [esp + 0x13], al
jmp 0x4ac428
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.004a1ed0
mov ecx, dword [esp + 0x19c]
add esp, 0xc
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x18]
test ecx, ecx
je 0x4ac74d
test edi, edi
js 0x4ac523
cmp edi, ecx
ja 0x4ac74d
lea ebp, [ebx + edi]
cmp ebp, dword [esp + 0x14]
jmp 0x4ac533
lea ebp, [ebx + edi]
test ebp, ebp
jg 0x4ac539
mov eax, 1
sub eax, ebp
cmp eax, ecx
ja 0x4ac74d
test edi, edi
js 0x4ac616
xor ebp, ebp
test ebx, ebx
je 0x4ac58a
mov edx, dword [esi + 4]
nop word [eax + eax]
mov eax, dword [esp + 0x74]
sub eax, ebp
dec eax
add eax, ebx
mov dword [esp + 0x14], eax
cmp edx, dword [esi + 8]
jb 0x4ac578
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
inc ebp
mov al, byte [eax]
mov byte [edx + ecx], al
inc dword [esi + 4]
mov edx, dword [esi + 4]
cmp ebp, ebx
jne 0x4ac550
test edi, edi
je 0x4ac5b9
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x4ac5a8
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0x30
inc dword [esi + 4]
mov ecx, dword [esi + 4]
sub edi, 1
jne 0x4ac591
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [esp + 0x44], 0x40
jbe 0x4ac5d2
push dword [esp + 0x3c]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x54], 0x40
jbe 0x4ac5e5
push dword [esp + 0x4c]
call fcn.0040dae4
add esp, 4
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x80]
cmp eax, ecx
je 0x4ac5fa
push eax
call esi
add esp, 4
cmp dword [esp + 0x24], 0x40
jbe 0x4acabc
push dword [esp + 0x1c]
call fcn.0040dae4
add esp, 4
jmp 0x4acabc
xor edi, edi
test ebp, ebp
jle 0x4ac67d
mov edx, dword [esi + 4]
nop
mov eax, dword [esp + 0x74]
sub eax, edi
dec eax
add eax, ebx
mov dword [esp + 0x14], eax
cmp edx, dword [esi + 8]
jb 0x4ac648
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
inc edi
mov al, byte [eax]
mov byte [edx + ecx], al
mov edx, dword [esi + 4]
inc edx
mov dword [esi + 4], edx
cmp edi, ebp
jne 0x4ac620
cmp edx, dword [esi + 8]
jb 0x4ac672
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov byte [edx + eax], 0x2e
inc dword [esi + 4]
jmp 0x4ac6d0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0x30
push eax
mov ecx, esi
call fcn.004041a1
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0x2e
push eax
mov ecx, esi
call fcn.004041a1
test ebp, ebp
je 0x4ac6d0
mov ecx, dword [esi + 4]
neg ebp
cmp ecx, dword [esi + 8]
jb 0x4ac6bf
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0x30
inc dword [esi + 4]
mov ecx, dword [esi + 4]
sub ebp, 1
jne 0x4ac6a8
cmp edi, ebx
je 0x4ac708
mov edx, dword [esi + 4]
mov ebp, dword [esp + 0x74]
sub ebp, edi
cmp edx, dword [esi + 8]
jb 0x4ac6f4
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov edx, dword [esi + 4]
mov ecx, dword [esi]
inc edi
mov al, byte [ebp + ebx - 1]
mov byte [edx + ecx], al
inc dword [esi + 4]
mov edx, dword [esi + 4]
cmp edi, ebx
jne 0x4ac6d7
cmp dword [esp + 0x44], 0x40
jbe 0x4ac71b
push dword [esp + 0x3c]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x54], 0x40
jbe 0x4ac72e
push dword [esp + 0x4c]
call fcn.0040dae4
add esp, 4
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x80]
cmp eax, ecx
je 0x4ac5fa
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x4ac5f7
mov edx, dword [esi + 4]
lea eax, [edi - 1]
mov edi, dword [esp + 0x74]
lea ebp, [esi + 0xc]
add eax, ebx
mov dword [esp + 0x2c], eax
cmp edx, dword [esi + 8]
jb 0x4ac774
push 1
push 0
push ebp
mov ecx, esi
call fcn.00405e1b
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov al, byte [edi + ebx - 1]
mov byte [edx + ecx], al
mov ecx, dword [esi + 4]
inc ecx
mov dword [esi + 4], ecx
cmp ecx, dword [esi + 8]
jb 0x4ac798
push 1
push 0
push ebp
mov ecx, esi
call fcn.00405e1b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0x2e
mov edx, dword [esi + 4]
inc edx
mov dword [esi + 4], edx
cmp ebx, 1
jne 0x4ac7c7
cmp byte [esp + 0x194], 0
je 0x4ac7c7
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0x30
push eax
mov ecx, esi
call fcn.004041a1
jmp 0x4ac831
mov edi, 1
cmp ebx, edi
je 0x4ac807
mov eax, dword [esp + 0x74]
sub eax, edi
dec eax
add eax, ebx
mov dword [esp + 0x18], eax
cmp edx, dword [esi + 8]
jb 0x4ac7f5
push 1
push 0
push ebp
mov ecx, esi
call fcn.00405e1b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
inc edi
mov al, byte [eax]
mov byte [edx + ecx], al
inc dword [esi + 4]
mov edx, dword [esi + 4]
cmp edi, ebx
jne 0x4ac7d0
cmp byte [esp + 0x194], 0
jne 0x4ac831
mov ecx, dword [esp + 0x14]
lea eax, [ebx - 1]
cmp ecx, eax
jbe 0x4ac831
sub ecx, ebx
mov byte [esp + 0x13], 0x30
lea eax, [esp + 0x13]
inc ecx
push eax
push ecx
mov ecx, esi
call fcn.00411004
mov bl, byte [esp + 0x194]
mov ecx, dword [esi + 4]
xor bl, 1
shl bl, 5
add bl, 0x45
cmp ecx, dword [esi + 8]
jb 0x4ac858
push 1
push 0
push ebp
mov ecx, esi
call fcn.00405e1b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], bl
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x2c]
inc ecx
test ebx, ebx
mov dword [esi + 4], ecx
sets al
lea eax, [eax*2 + 0x2b]
mov dword [esp + 0x2c], eax
cmp ecx, dword [esi + 8]
jb 0x4ac88c
push 1
push 0
push ebp
mov ecx, esi
call fcn.00405e1b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esp + 0x2c]
mov byte [ecx + eax], dl
inc dword [esi + 4]
test ebx, ebx
jns 0x4ac89e
neg ebx
xor edi, edi
lea eax, [esp + 0x6c]
mov ebp, 6
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edi
xor esi, esi
mov dword [esp + 0x68], ebp
nop word [eax + eax]
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
mov dword [esp + 0x2c], ecx
shl al, 2
add cl, al
add cl, cl
sub bl, cl
add bl, 0x30
cmp esi, ebp
jb 0x4ac8fd
push 1
push 0
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x6c]
call fcn.00405e1b
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov byte [eax + edi], bl
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x2c]
inc edi
mov dword [esp + 0x64], edi
mov esi, edi
test ebx, ebx
je 0x4ac91d
mov ebp, dword [esp + 0x68]
jmp 0x4ac8c0
cmp byte [esp + 0x194], 0
mov esi, dword [esp + 0x5c]
jne 0x4ac95f
mov eax, edi
cmp eax, 2
jae 0x4ac95f
cmp eax, dword [esp + 0x68]
jb 0x4ac94e
push 1
push 0
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x6c]
call fcn.00405e1b
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov byte [eax + edi], 0x30
mov edi, dword [esp + 0x64]
inc edi
mov dword [esp + 0x64], edi
xor ebx, ebx
test edi, edi
je 0x4ac9a1
mov edx, dword [esi + 4]
nop dword [eax + eax]
mov ebp, dword [esp + 0x60]
sub ebp, ebx
cmp edx, dword [esi + 8]
jb 0x4ac98d
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov edx, dword [esi + 4]
mov ecx, dword [esi]
inc ebx
mov al, byte [ebp + edi - 1]
mov byte [edx + ecx], al
inc dword [esi + 4]
mov edx, dword [esi + 4]
cmp ebx, edi
jne 0x4ac970
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x6c]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp eax, ecx
je 0x4ac5bf
push eax
call esi
add esp, 4
jmp 0x4ac5bf
shr eax, 3
test al, 1
je 0x4ac9ec
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x4ac9e3
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0x2d
inc dword [esi + 4]
cmp dword [esp + 0x190], 0
jne 0x4aca59
sub esp, 8
cmp byte [esp + 0x19c], 0
mov eax, esp
push esi
je 0x4aca18
mov dword [eax], str.0.0E0
mov dword [eax + 4], 6
jmp 0x4acab4
mov dword [eax], 0x927bfc
mov dword [eax + 4], 3
call fcn.004a3110
mov eax, dword [esp + 0x198]
add esp, 0xc
cmp eax, 1
jbe 0x4aca4c
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], 0x30
push ecx
dec eax
mov ecx, esi
push eax
call fcn.00411004
sub esp, 8
mov eax, esp
mov dword [eax], str.e00
jmp 0x4acaac
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x4aca73
push 1
push 0
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.00405e1b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0x30
inc dword [esi + 4]
jmp 0x4acabc
sub esp, 8
mov eax, esp
mov dword [eax], 0x927b9c
mov dword [eax + 4], 3
jmp 0x4acab3
shr eax, 3
sub esp, 8
test al, 1
mov eax, esp
je 0x4acaa6
mov dword [eax], str._Inf
jmp 0x4acaac
mov dword [eax], str.Inf
mov dword [eax + 4], 4
push esi
call fcn.004a3110
add esp, 0xc
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x174
ret 0x10