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

Disassembly:
sub esp, 0x59c
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x38]
push edi
push eax
mov dword [esp + 0x94], ebx
call fcn.005c475e
mov edi, eax
mov eax, dword [esp + 0x5b4]
add esp, 4
lea esi, [ebx + 8]
mov edx, dword [edi + 8]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
lea ebp, [ebx + 0x14]
lea eax, [edx + ecx*4]
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x48]
and ecx, 0x10000
push ecx
push edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5bc]
push esi
push ebp
push 1
push eax
call fcn.005d0045
mov ecx, dword [ebx + 0x70]
mov eax, dword [esp + 0x70]
add esp, 0x18
mov edx, dword [eax + ecx*4 + 4]
xor ecx, ecx
mov cx, word [eax + 0x58]
mov dword [esp + 0x5c], edx
push ecx
call fcn.005c22bd
mov edx, dword [eax + 0x1d]
lea eax, [ebx + 0x3c]
mov dword [esp + 0x24], edx
add esp, 4
mov ecx, dword [eax]
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x1ec]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x78], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x1c]
call fcn.0045d2af
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add ecx, 0x28
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
jne 0x5c7caf
lea edx, [edi + 0x24]
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x1f0], 0
call fcn.005da066
test byte [ebx + 0x50], 4
jne 0x5c7d49
fld dword [esi]
fadd dword [esp + 0x60]
sub esp, 0xc
lea edx, [esp + 0x8c]
mov ecx, esp
push edx
fstp dword [esp + 0x90]
fld dword [esi + 4]
fadd dword [esp + 0x74]
fstp dword [esp + 0x94]
fld dword [esi + 8]
fadd dword [esp + 0x78]
fstp dword [esp + 0x98]
call fcn.0046bd69
sub esp, 0x24
mov ecx, esp
push ebp
call fcn.005c7ab2
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x5c]
push eax
push ecx
lea ecx, [esp + 0x220]
call fcn.005c18f9
mov edx, dword [ebx + 0x70]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x8c], 0
mov cl, byte [eax + edx + 0x44]
test cl, cl
jbe 0x5c8629
mov ecx, dword [esp + 0x5c]
xor ebx, ebx
xor eax, eax
xor edx, edx
mov bl, byte [ecx]
mov al, byte [ecx + 1]
mov dl, byte [ecx + 2]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], edx
lea edx, [ebx + ebx*4]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
lea edx, [ecx + edx*4]
mov dword [esp + 0x6c], edx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*4]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x2c]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x5c]
add edx, 3
mov dword [esp + 0x28], ecx
mov dword [esp + 0x5c], edx
xor edx, edx
mov dl, byte [eax + 0x75dad8]
xor ecx, ecx
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x2c]
mov cl, byte [edx + 0x75dad8]
mov dword [esp + 0x30], ecx
mov cl, byte [ebx + 0x75dad8]
test cl, cl
jne 0x5c7e00
mov eax, dword [esp + 0x6c]
mov edx, dword [edi + 0xc]
mov eax, dword [eax]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4]
push eax
push ebx
call dword [0x757978]
mov eax, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0xac]
test ecx, ecx
jne 0x5c7e29
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx]
lea edx, [ecx + ecx*2]
mov ecx, dword [edi + 0xc]
lea edx, [ecx + edx*4]
push edx
push eax
call dword [0x757978]
mov eax, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x5c7e53
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 0xc]
mov eax, dword [eax]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [0x757978]
mov eax, dword [esp + 0x24]
add esp, 8
mov edx, dword [esp + 0x2c]
push edx
push eax
push ebx
call dword [0x75dac4]
mov al, byte [ebx + 0x75dad8]
add esp, 0xc
test al, 2
je 0x5c80e3
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [edi + 0xc]
mov eax, dword [eax]
lea ebx, [esp + 0x1c4]
mov ecx, ebp
lea eax, [eax + eax*2]
lea edx, [edx + eax*4]
push edx
push ebx
call fcn.005da066
fld dword [eax + 8]
fld dword [eax + 4]
fadd dword [esi + 4]
fxch st(1)
fadd dword [esi + 8]
fld dword [esi]
fadd dword [eax]
fxch st(1)
fst dword [esp + 0x148]
fxch st(1)
fstp dword [esp + 0x128]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x194]
fxch st(1)
fstp dword [esp + 0x12c]
push ecx
push 0x73f098
fstp dword [esp + 0x138]
push edx
lea ecx, [esp + 0x134]
call fcn.0046bdce
push eax
mov ecx, 0x73f0a4
call fcn.005da0bf
fld dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
fld dword [esp + 0x34]
fxch st(2)
fmul dword [esp + 0x3c]
fxch st(2)
fmul dword [esp + 0x34]
fxch st(2)
faddp st(1)
fxch st(1)
mov ebx, dword [esp + 0x6c]
lea ecx, [esp + 0x17c]
faddp st(1)
lea eax, [ebx + 4]
mov dword [esp + 0x30], eax
push eax
fsqrt
fdivr dword [0x7dc86c]
fld st(0)
fld st(1)
fxch st(1)
fmul dword [esp + 0x38]
fxch st(1)
fmul dword [esp + 0x3c]
fxch st(2)
fmul dword [esp + 0x40]
fxch st(1)
fxch st(2)
fxch st(1)
fxch st(1)
fstp dword [esp + 0x10c]
mov edx, dword [esp + 0x10c]
fstp dword [esp + 0x110]
mov eax, dword [esp + 0x110]
mov dword [esp + 0x3c], edx
fstp dword [esp + 0x38]
push ecx
mov ecx, ebp
mov dword [esp + 0x44], eax
call fcn.005da066
mov ecx, dword [ebx]
mov edx, dword [edi + 0xc]
fld dword [eax]
fld dword [eax + 4]
lea ecx, [ecx + ecx*2]
lea ebx, [esp + 0xec]
fld dword [edx + ecx*4 + 8]
fld dword [edx + ecx*4 + 4]
fsub dword [esp + 0x64]
fxch st(1)
fsub dword [esp + 0x68]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x30]
fld dword [eax + 8]
fld dword [ecx]
fxch st(5)
fmul dword [0x7dc864]
push edx
lea edx, [esp + 0x14]
push ebx
push edx
fstp dword [esp + 0xac]
fxch st(3)
fmul dword [0x7dc864]
fxch st(4)
fsub dword [esp + 0x6c]
fxch st(3)
fmul dword [0x7dc864]
fld st(2)
fxch st(2)
fst dword [esp + 0x160]
fxch st(5)
fstp dword [esp + 0xb0]
lea ecx, [esp + 0x1f4]
fstp dword [esp + 0xb4]
fxch st(2)
fstp dword [esp + 0xf8]
fxch st(1)
fstp dword [esp + 0xfc]
fxch st(1)
fstp dword [esp + 0x100]
fstp st(0)
call fcn.005c1d09
fld dword [esp + 0xa8]
fld dword [esp + 0xa0]
fld dword [esp + 0xa8]
fld dword [esp + 0xa4]
fxch st(3)
fmul dword [esp + 0x34]
fld dword [esp + 0x10]
fxch st(3)
fmul dword [esp + 0x3c]
fld dword [esp + 0x14]
fxch st(4)
fmul dword [esp + 0x20]
lea eax, [esp + 0xc0]
lea ecx, [esp + 0x10]
fstp dword [esp + 0x10]
fxch st(2)
fmul dword [esp + 0x38]
fxch st(2)
fsubp st(1)
fxch st(3)
fmul dword [esp + 0x3c]
fld dword [esp + 0x18]
fxch st(4)
fsub qword [0x7dc8bc]
fxch st(1)
fsubp st(2)
fxch st(2)
fmul dword [esp + 0x20]
fxch st(1)
fsub qword [0x7dc8bc]
fxch st(3)
fmul dword [esp + 0x20]
fld st(2)
fxch st(4)
fst dword [esp + 0x30]
fxch st(2)
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push eax
fstp dword [esp + 0x1c]
fxch st(2)
fstp dword [esp + 0xc4]
fxch st(1)
fstp dword [esp + 0xc8]
push ecx
push edx
fstp st(0)
call dword [0x757938]
add esp, 0xc
mov eax, dword [esp + 0x1c]
test byte [eax + 0x75dad8], 2
je 0x5c8368
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
lea ebx, [esp + 0x1ac]
mov ecx, ebp
lea eax, [eax + eax*2]
lea edx, [edx + eax*4]
push edx
push ebx
call fcn.005da066
fld dword [esi + 4]
fld dword [eax + 8]
fxch st(1)
fadd dword [eax + 4]
fxch st(1)
fadd dword [esi + 8]
fld dword [eax]
fadd dword [esi]
fxch st(1)
fst dword [esp + 0x16c]
fxch st(1)
fstp dword [esp + 0x11c]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x1dc]
fxch st(1)
fstp dword [esp + 0x120]
push ecx
push 0x73f098
fstp dword [esp + 0x12c]
push edx
lea ecx, [esp + 0x128]
call fcn.0046bdce
push eax
mov ecx, 0x73f0a4
call fcn.005da0bf
fld dword [esp + 0x54]
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
fld dword [esp + 0x4c]
fxch st(2)
fmul dword [esp + 0x54]
fxch st(2)
fmul dword [esp + 0x4c]
fxch st(2)
faddp st(1)
fxch st(1)
mov ebx, dword [esp + 0x70]
lea ecx, [esp + 0x188]
faddp st(1)
lea eax, [ebx + 4]
mov dword [esp + 0x24], eax
push eax
fsqrt
fdivr dword [0x7dc86c]
fld st(0)
fld st(1)
fxch st(1)
fmul dword [esp + 0x50]
fxch st(1)
fmul dword [esp + 0x54]
fxch st(2)
fmul dword [esp + 0x58]
fxch st(1)
fxch st(2)
fxch st(1)
fxch st(1)
fstp dword [esp + 0xdc]
mov edx, dword [esp + 0xdc]
fstp dword [esp + 0xe0]
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0xe0]
push ecx
fstp dword [esp + 0x54]
mov ecx, ebp
mov dword [esp + 0x5c], eax
call fcn.005da066
mov ecx, dword [ebx]
mov edx, dword [edi + 0xc]
fld dword [eax]
fld dword [eax + 4]
lea ecx, [ecx + ecx*2]
lea ebx, [esp + 0xe0]
fld dword [edx + ecx*4 + 8]
fld dword [edx + ecx*4 + 4]
fsub dword [esp + 0x64]
fxch st(1)
fsub dword [esp + 0x68]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x24]
fld dword [eax + 8]
fld dword [ecx]
fxch st(5)
fmul dword [0x7dc864]
push edx
lea edx, [esp + 0x14]
push ebx
push edx
fstp dword [esp + 0xa0]
fxch st(3)
fmul dword [0x7dc864]
fxch st(4)
fsub dword [esp + 0x6c]
fxch st(3)
fmul dword [0x7dc864]
fld st(2)
fxch st(2)
fst dword [esp + 0x148]
fxch st(5)
fstp dword [esp + 0xa4]
lea ecx, [esp + 0x1f4]
fstp dword [esp + 0xa8]
fxch st(2)
fstp dword [esp + 0xec]
fxch st(1)
fstp dword [esp + 0xf0]
fxch st(1)
fstp dword [esp + 0xf4]
fstp st(0)
call fcn.005c1d09
fld dword [esp + 0x9c]
fld dword [esp + 0x94]
fld dword [esp + 0x9c]
fld dword [esp + 0x98]
fxch st(3)
fmul dword [esp + 0x4c]
fld dword [esp + 0x10]
fxch st(3)
fmul dword [esp + 0x54]
fld dword [esp + 0x14]
fxch st(4)
fmul dword [esp + 0x20]
lea eax, [esp + 0xb0]
fstp dword [esp + 0x10]
fxch st(2)
fmul dword [esp + 0x50]
fxch st(2)
fsubp st(1)
fxch st(3)
fmul dword [esp + 0x54]
fld dword [esp + 0x18]
fxch st(4)
fsub qword [0x7dc8bc]
fxch st(1)
fsubp st(2)
fxch st(2)
fmul dword [esp + 0x20]
fxch st(1)
fsub qword [0x7dc8bc]
fxch st(3)
fmul dword [esp + 0x20]
fld st(2)
fxch st(4)
fst dword [esp + 0x24]
fxch st(2)
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
fstp dword [esp + 0x18]
fxch st(2)
fstp dword [esp + 0xb0]
fxch st(1)
fstp dword [esp + 0xb4]
push eax
push ecx
push edx
fstp st(0)
call dword [0x757938]
add esp, 0xc
mov eax, dword [esp + 0x2c]
test byte [eax + 0x75dad8], 2
je 0x5c85f7
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
lea ebx, [esp + 0x1a0]
mov ecx, ebp
lea eax, [eax + eax*2]
lea edx, [edx + eax*4]
push edx
push ebx
call fcn.005da066
fld dword [eax + 8]
fld dword [eax + 4]
fadd dword [esi + 4]
fxch st(1)
fadd dword [esi + 8]
fld dword [esi]
fadd dword [eax]
fxch st(1)
fst dword [esp + 0x160]
fxch st(1)
fstp dword [esp + 0xf8]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x1b8]
fxch st(1)
fstp dword [esp + 0xfc]
push ecx
push 0x73f098
fstp dword [esp + 0x108]
push edx
lea ecx, [esp + 0x104]
call fcn.0046bdce
push eax
mov ecx, 0x73f0a4
call fcn.005da0bf
fld dword [esp + 0x48]
fld dword [esp + 0x44]
fmul dword [esp + 0x44]
fld dword [esp + 0x40]
fxch st(2)
fmul dword [esp + 0x48]
fxch st(2)
fmul dword [esp + 0x40]
fxch st(2)
faddp st(1)
fxch st(1)
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x1d0]
faddp st(1)
lea eax, [ebx + 4]
mov dword [esp + 0x24], eax
push eax
fsqrt
fdivr dword [0x7dc86c]
fld st(0)
fld st(1)
fxch st(1)
fmul dword [esp + 0x44]
fxch st(1)
fmul dword [esp + 0x48]
fxch st(2)
fmul dword [esp + 0x4c]
fxch st(1)
fxch st(2)
fxch st(1)
fxch st(1)
fstp dword [esp + 0x118]
mov edx, dword [esp + 0x118]
fstp dword [esp + 0x11c]
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x48], edx
fstp dword [esp + 0x44]
push ecx
mov ecx, ebp
mov dword [esp + 0x50], eax
call fcn.005da066
mov ecx, dword [ebx]
mov edx, dword [edi + 0xc]
fld dword [eax]
fld dword [eax + 4]
fld dword [eax + 8]
fxch st(2)
fmul dword [0x7dc864]
lea ecx, [ecx + ecx*2]
lea ebx, [esp + 0xc8]
push ebx
fld dword [edx + ecx*4]
fld dword [edx + ecx*4 + 4]
fld dword [edx + ecx*4 + 8]
fxch st(3)
fstp dword [esp + 0x84]
lea eax, [edx + ecx*4]
lea ecx, [esp + 0x174]
fxch st(3)
fmul dword [0x7dc864]
fxch st(1)
fsub dword [esp + 0x64]
fxch st(4)
fmul dword [0x7dc864]
fxch st(3)
fsub dword [esp + 0x68]
fxch st(2)
fsub dword [esp + 0x6c]
fxch st(1)
fstp dword [esp + 0x88]
fxch st(2)
fstp dword [esp + 0x8c]
fxch st(2)
fstp dword [esp + 0xcc]
fxch st(1)
fstp dword [esp + 0xd0]
fstp dword [esp + 0xd4]
call fcn.0046bd69
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x170]
push eax
lea ecx, [esp + 0x14]
push edx
push ecx
lea ecx, [esp + 0x1f4]
call fcn.005c1d09
fld dword [esp + 0x88]
fld dword [esp + 0x80]
fld dword [esp + 0x88]
fld dword [esp + 0x84]
fxch st(3)
fmul dword [esp + 0x40]
fld dword [esp + 0x10]
fxch st(3)
fmul dword [esp + 0x48]
fld dword [esp + 0x14]
fxch st(4)
fmul dword [esp + 0x20]
lea edx, [esp + 0xb8]
fstp dword [esp + 0x10]
fxch st(2)
fmul dword [esp + 0x44]
fxch st(2)
fsubp st(1)
fxch st(3)
fmul dword [esp + 0x48]
fld dword [esp + 0x18]
fxch st(4)
fsub qword [0x7dc8bc]
fxch st(1)
fsubp st(2)
fxch st(2)
fmul dword [esp + 0x20]
fxch st(1)
fsub qword [0x7dc8bc]
fxch st(3)
fmul dword [esp + 0x20]
fld st(2)
fxch st(4)
fst dword [esp + 0x24]
fxch st(2)
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
fstp dword [esp + 0x18]
fxch st(2)
fstp dword [esp + 0xb8]
fxch st(1)
fstp dword [esp + 0xbc]
push edx
push eax
push ecx
fstp st(0)
call dword [0x757938]
add esp, 0xc
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x8c]
mov ecx, dword [edx + 0x70]
xor edx, edx
inc eax
mov dl, byte [ebx + ecx + 0x44]
mov dword [esp + 0x8c], eax
cmp eax, edx
jl 0x5c7d67
mov ebx, dword [esp + 0x90]
call fcn.005d02ea
mov ecx, dword [ebx + 0x38]
call fcn.005c471f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x59c
ret 8