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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x70]
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
xor edi, edi
mov dword [esp + 0x2c], 0x3e
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], edi
mov eax, dword [esi + 0x4808]
mov dword [esp + 0x18], edi
lea ebp, [ebx + 0x44]
push 3
lea ecx, [eax + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 4
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 0x12
mov edx, dword [eax + 0x10]
lea eax, [esp + 0x30]
mov dword [esp + 0x20], edi
push eax
push esi
mov dword [esp + 0x5c], edx
call fcn.00412d50
add esp, 0xc
cmp eax, edi
je 0x457668
mov ecx, dword [esi + 0x4808]
push eax
push 2
mov edx, dword [ecx + 0x10]
push edx
push edi
push esi
call fcn.004114c0
add esp, 0x14
jmp 0x4578e7
mov ebp, dword [ebp]
cmp ebp, edi
jne 0x457690
cmp dword [ebx], 5
je 0x4578e7
push edi
push 1
push 1
push 0x863
push esi
call fcn.004157b0
add esp, 0x14
jmp 0x4578e7
lea eax, [ebp + ebp*4]
shl eax, 3
push eax
push esi
call fcn.00408a60
add esp, 8
cmp eax, edi
mov dword [esp + 0x7c], eax
je 0x4578e7
mov ecx, dword [ebx + 0x44]
mov ebp, 1
cmp ecx, ebp
mov edi, eax
jb 0x457789
push edi
push esi
call fcn.00459880
mov eax, dword [esi + 0x4808]
mov dword [esp + 0x34], 0x20
push 3
lea ecx, [eax + 8]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], 4
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x38]
lea eax, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebp
call fcn.00412d50
add esp, 0x14
test eax, eax
jne 0x4577af
mov edx, dword [esp + 0x18]
push ebp
push edi
push edx
push esi
call fcn.00459200
add esp, 0x10
test eax, eax
jne 0x4577cc
cmp word [edi], 8
jne 0x457760
mov eax, dword [esi + 0x2500]
cmp eax, 0x7fffffff
jae 0x45774e
cmp eax, 0x7fff
jb 0x457753
mov eax, 0x7fff
mov dword [esi + 0x2500], eax
mov dword [ebx + 0x38], 1
mov ax, word [edi]
cmp ax, 0x70
je 0x45776f
cmp ax, 0x74
jne 0x457776
mov dword [ebx + 0x38], 1
mov eax, dword [ebx + 0x44]
inc ebp
add edi, 0x28
cmp ebp, eax
jbe 0x4576bf
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 0x25c4]
mov edx, dword [esi + 0x2508]
neg ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 0x1c]
test ch, 2
je 0x4577e9
mov ecx, dword [esi + 0x2574]
mov dword [esp + 0x28], ecx
jmp 0x4577f3
push eax
mov eax, dword [esi + 0x4808]
push 2
mov ecx, dword [eax + 0x10]
push ecx
push 0
push esi
call fcn.004114c0
add esp, 0x14
jmp 0x4578d7
mov edx, dword [esi + 0x4808]
push eax
push 2
mov eax, dword [edx + 0x10]
push eax
push 0
push esi
call fcn.004114c0
add esp, 0x14
jmp 0x4578d7
mov edx, dword [esi + 0x2578]
mov dword [esp + 0x28], edx
mov ecx, dword [ebx + 0x44]
mov edi, 1
cmp ecx, edi
mov ebp, eax
jb 0x4578af
mov eax, dword [ebx + 0x38]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x80]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
push ebp
push esi
call fcn.00457a60
add esp, 0x1c
test eax, eax
je 0x4578d7
mov eax, dword [esp + 0x78]
xor edx, edx
cmp eax, edx
je 0x4578c6
cmp edi, 1
jne 0x45784a
mov dword [ebx + 0x48], eax
jmp 0x457864
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
cmp eax, edx
je 0x457860
mov eax, dword [ecx + 0x50]
or al, 1
mov dword [ecx + 0x50], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp eax, edx
je 0x457890
cmp dword [ebx + 0x4c], edx
jne 0x45787a
mov dword [ebx + 0x4c], eax
jmp 0x457885
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 0x44]
inc edi
add ebp, 0x28
cmp edi, eax
jbe 0x457805
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4578ab
or dword [eax + 0x50], 1
mov eax, dword [esp + 0x7c]
push eax
push esi
call fcn.0040f330
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push edx
push 1
push 0x862
push esi
call fcn.004157b0
add esp, 0x10
mov edx, dword [esp + 0x7c]
push edx
push esi
call fcn.0040f330
add esp, 8
xor edi, edi
mov eax, dword [ebx + 0x48]
push eax
push esi
call fcn.00457910
add esp, 8
mov dword [ebx + 0x48], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret