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

Disassembly:
sub esp, 0xfc
push ebx
mov ebx, dword [esp + 0x104]
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov edi, dword [esp + 0x114]
cmp edi, ebp
mov eax, 1
mov dword [esi], ebx
mov dword [esi + 4], ebp
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 8], ebp
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
je 0x58582b
cmp dword [edi + 0x78], eax
jne 0x58582b
mov cl, byte [edi + 0x29]
test cl, cl
jne 0x585663
cmp dword [edi], ebp
mov dword [esp + 0x14], ebp
je 0x585667
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0x68]
push edi
call fcn.005d6fac
cmp dword [edi + 0x20], ebp
mov dword [esp + 0x10], 7
je 0x585685
mov dword [esp + 0x10], 8
cmp dword [edi + 0x10], ebp
jle 0x5856c8
cmp dword [edi + 0x14], ebp
jle 0x5856c8
push 0x40
call fcn.0071528c
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x5856c3
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
push 0
push 4
push 0
push edx
push eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x3c]
push eax
mov ecx, ebp
call fcn.0062595c
jmp 0x5856c5
xor eax, eax
mov dword [esi + 4], eax
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x585824
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x585810
mov ecx, ebp
call fcn.006251ac
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x18], ecx
mov ecx, dword [eax + 0x3c]
sar ecx, 2
mov dword [esi + 0x1c], ecx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x585717
mov edx, dword [eax + 0x28]
mov ebx, dword [esi + 0x18]
dec edx
imul edx, ecx
shl edx, 2
add ebx, edx
mov eax, ecx
neg eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x540]
mov edx, dword [ecx]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], edx
call fcn.00543f8c
fild dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
fstp qword [esp + 0x1c]
call fcn.005753dc
fmul qword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
fmul qword [0x5f6e98]
fstp qword [esp]
push ecx
call fcn.0057545c
lea edx, [esp + 0x3c]
push edx
call fcn.0057543c
fmul qword [esp + 0x28]
add esp, 8
lea eax, [esp + 0x38]
fmul qword [0x5f6e98]
fstp qword [esp]
push eax
call fcn.005754ec
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
push 0
push 0
call fcn.00574e2c
mov edx, dword [esi + 4]
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.0057da4c
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x64]
push ecx
push edi
push edx
call fcn.0058494c
mov eax, dword [esp + 0x54]
add esp, 0x40
test eax, eax
jne 0x5857cb
mov ecx, edi
call fcn.005ad68c
cmp dword [esp + 0x10], 7
jne 0x58582b
mov eax, dword [esi + 4]
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
test eax, eax
mov edx, dword [esi + 0x18]
jle 0x58582b
mov ebx, eax
test edi, edi
mov eax, edx
je 0x5857f8
mov ecx, edi
or dword [eax], 0xff000000
add eax, 4
dec ecx
jne 0x5857ec
dec ebx
mov eax, dword [esi + 0x1c]
lea edx, [edx + eax*4]
jne 0x5857e4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 8
test ebp, ebp
je 0x585824
mov ecx, ebp
call fcn.006259ac
push ebp
call fcn.007152ac
add esp, 4
mov dword [esi + 4], 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 8