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

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
test eax, eax
push ebp
push esi
je 0x578e4f
push eax
call fcn.005d28c2
add esp, 4
mov dword [ebx], 0
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x10], eax
je 0x578eb5
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x578e60
sub eax, edx
sar eax, 1
mov esi, eax
xor ecx, ecx
lea ebp, [esi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005d1ef5
add esp, 4
lea ecx, [ebp + ebp]
push ecx
push 0
push eax
mov dword [ebx], eax
call fcn.005da970
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
add esp, 0xc
lea edx, [esi + esi]
push edx
push eax
push ecx
call fcn.005d8ed0
add esp, 0xc
mov eax, dword [edi + 8]
test eax, eax
je 0x578eff
mov edx, dword [edi + 0xc]
sub edx, eax
sar edx, 2
je 0x578eff
test eax, eax
je 0x578ed4
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
jne 0x578ed9
call fcn.005d29f1
mov edx, dword [edi + 8]
cmp dword [edx], 0
je 0x578eff
mov eax, edx
test eax, eax
je 0x578ef1
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
jne 0x578ef6
call fcn.005d29f1
mov edx, dword [edi + 8]
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x578f04
mov eax, 0xff00ff
mov dword [ebx + 4], eax
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
push ecx
mov ecx, dword [edi + 0x24]
push edx
mov edx, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x18]
push edx
push eax
mov eax, dword [edi + 0x14]
push ecx
lea esi, [ebx + 8]
call fcn.00577980
mov edx, dword [edi + 0x58]
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
push edx
mov edx, dword [edi + 0x4c]
push eax
mov eax, dword [edi + 0x48]
push ecx
mov ecx, dword [edi + 0x44]
push edx
mov edx, dword [edi + 0x40]
push eax
mov eax, dword [edi + 0x3c]
push ecx
push edx
lea esi, [ebx + 0x30]
call fcn.00577980
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x7c]
mov edx, dword [edi + 0x78]
push eax
mov eax, dword [edi + 0x74]
push ecx
mov ecx, dword [edi + 0x70]
push edx
mov edx, dword [edi + 0x6c]
push eax
mov eax, dword [edi + 0x68]
push ecx
push edx
push eax
mov eax, dword [edi + 0x64]
lea esi, [ebx + 0x58]
call fcn.00577980
mov ecx, dword [edi + 0xa8]
mov edx, dword [edi + 0xa4]
mov eax, dword [edi + 0xa0]
push ecx
mov ecx, dword [edi + 0x9c]
push edx
mov edx, dword [edi + 0x98]
push eax
mov eax, dword [edi + 0x94]
push ecx
mov ecx, dword [edi + 0x90]
push edx
push eax
mov eax, dword [edi + 0x8c]
push ecx
lea esi, [ebx + 0x80]
call fcn.00577980
mov edx, dword [edi + 0xd0]
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0xc8]
push edx
mov edx, dword [edi + 0xc4]
push eax
mov eax, dword [edi + 0xc0]
push ecx
mov ecx, dword [edi + 0xbc]
push edx
push eax
push ecx
mov edx, dword [edi + 0xb8]
mov eax, dword [edi + 0xb4]
push edx
lea esi, [ebx + 0xa8]
call fcn.00577980
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x57905d
mov ecx, dword [edi + 0xe4]
sub ecx, eax
sar ecx, 2
je 0x57905d
test eax, eax
je 0x57902b
mov edx, dword [edi + 0xe4]
sub edx, eax
sar edx, 2
jne 0x579030
call fcn.005d29f1
mov eax, dword [edi + 0xe0]
cmp dword [eax], 0
je 0x57905d
test eax, eax
je 0x57904c
mov ecx, dword [edi + 0xe4]
sub ecx, eax
sar ecx, 2
jne 0x579051
call fcn.005d29f1
mov edx, dword [edi + 0xe0]
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x579062
mov eax, 0xff00ff
mov dword [ebx + 0xd0], eax
mov ecx, dword [edi + 0xec]
lea eax, [ebx + 0xd8]
mov dword [ebx + 0xd4], ecx
lea ebp, [edi + 0xf0]
mov dword [esp + 0x14], eax
call fcn.004449b0
xor esi, esi
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.0057a810
test eax, eax
jle 0x5790e5
jmp 0x5790a4
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5790b7
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x5790bc
call fcn.005d29f1
mov edx, dword [ebp + 4]
lea ebx, [edx + esi*4]
mov esi, dword [esp + 0x14]
call fcn.00444930
mov esi, dword [esp + 0x10]
add esi, 1
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.0057a810
cmp esi, eax
jl 0x5790a0
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + 0xe8]
lea ebp, [edi + 0x100]
mov dword [esp + 0x14], eax
call fcn.004449b0
xor esi, esi
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.0057a810
test eax, eax
jle 0x579155
jmp 0x579114
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x579127
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x57912c
call fcn.005d29f1
mov eax, dword [ebp + 4]
lea ebx, [eax + esi*4]
mov esi, dword [esp + 0x14]
call fcn.00444930
mov esi, dword [esp + 0x10]
add esi, 1
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.0057a810
cmp esi, eax
jl 0x579110
mov ebx, dword [esp + 0x1c]
fld qword [edi + 0x110]
pop esi
fstp qword [ebx + 0xf8]
pop ebp
fld qword [edi + 0x118]
mov eax, 1
fstp qword [ebx + 0x100]
fld qword [edi + 0x120]
fstp qword [ebx + 0x108]
pop ebx
add esp, 0xc
ret 4