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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x5e1040]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0x34], 0x41e120
mov dword [ebx + 0x30], 0
push edi
cmp ebx, eax
je 0x404610
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x404605
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00403550
lea ecx, [ebx + 0x18]
cmp ecx, esi
je 0x40462a
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x404621
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00403550
mov ecx, dword [esi + 0x14]
mov edx, esi
cmp ecx, 7
jbe 0x404636
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
cmp word [edx + eax*2 - 2], 0x5c
je 0x40465f
cmp ecx, 7
jbe 0x404648
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
je 0x40465f
push 1
push 0x5d0248
lea ecx, [ebx + 0x18]
call fcn.00403790
cmp dword [ebx + 0x14], 7
mov eax, ebx
mov dword [esp + 0x28], 0x404cb0
mov dword [esp + 0x34], 0x404d40
mov dword [esp + 0x38], 0x404d50
mov dword [esp + 0x2c], 0x404da0
mov dword [esp + 0x30], 0x404dc0
mov dword [esp + 0x3c], 0x404de0
mov dword [esp + 0x40], 0x404df0
mov dword [esp + 0x44], 0
jbe 0x4046a9
mov eax, dword [ebx]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00546080
mov edi, eax
add esp, 8
test edi, edi
jne 0x4046d7
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004224b5
mov esp, ebp
pop ebp
ret 0x14
xorps xmm0, xmm0
push edi
movlpd qword [esp + 0x1c], xmm0
call fcn.00545f70
add esp, 4
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00545f50
add esp, 8
test eax, eax
je 0x404711
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jmp 0x4047b0
cmp dword [esp + 0x4c], 0
jb 0x404704
ja 0x404721
cmp dword [esp + 0x48], 0
jbe 0x404704
mov eax, dword [esp + 0x1c]
mov esi, 1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x70]
push eax
push edi
call fcn.00545f20
add esp, 0x20
test eax, eax
jne 0x4047a8
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
test ecx, ecx
jne 0x404764
test eax, eax
je 0x40476c
add dword [esp + 0x14], eax
adc dword [esp + 0x10], ecx
mov eax, dword [esp + 0x4c]
xor edx, edx
mov ecx, esi
mov dword [esp + 0x18], ecx
cmp edx, eax
ja 0x40479b
jb 0x404784
cmp esi, dword [esp + 0x48]
jae 0x40479b
push edi
call fcn.00545fd0
add esp, 4
test eax, eax
jne 0x4047a8
mov eax, dword [esp + 0x4c]
xor edx, edx
mov ecx, dword [esp + 0x18]
inc esi
cmp edx, eax
jb 0x404736
ja 0x4047a8
cmp ecx, dword [esp + 0x48]
jb 0x404736
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], eax
call fcn.00545f70
add esp, 4
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00545f50
mov esi, eax
add esp, 8
test esi, esi
jne 0x404835
cmp dword [esp + 0x4c], eax
jb 0x404835
ja 0x4047e1
cmp dword [esp + 0x48], eax
jbe 0x404835
mov ebx, 1
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.00404860
mov esi, eax
test esi, esi
jne 0x404835
mov eax, dword [esp + 0x4c]
xor edx, edx
mov ecx, ebx
mov dword [esp + 0x18], ecx
cmp edx, eax
ja 0x404828
jb 0x40480f
cmp ebx, dword [esp + 0x48]
jae 0x404828
push edi
call fcn.00545fd0
mov esi, eax
add esp, 4
test esi, esi
jne 0x404835
mov eax, dword [esp + 0x4c]
xor edx, edx
mov ecx, dword [esp + 0x18]
inc ebx
cmp edx, eax
jb 0x4047e6
ja 0x404835
cmp ecx, dword [esp + 0x48]
jb 0x4047e6
push edi
call fcn.00545e50
mov ecx, dword [esp + 0xb8]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004224b5
mov esp, ebp
pop ebp
ret 0x14