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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x60], ebx
test eax, eax
je 0x501436
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x501436
lea ecx, [esp + 0x34]
call fcn.0064dc20
mov ecx, esi
call fcn.00500c50
mov dword [esp + 0x4c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xa4]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x18], eax
call dword [edx + 0xb8]
fst qword [esp + 0x50]
fcomp qword [0x691f50]
fnstsw ax
test ah, 1
jne 0x501436
mov edi, dword [ebp + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x80]
push edi
push ecx
mov ecx, esi
call dword [eax + 0xa8]
fld qword [eax]
push edi
fst qword [esp + 0x38]
fld qword [ebp + 0x10]
fsub st(1)
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
fstp qword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x48], edx
fstp st(0)
fld qword [ebp + 0x18]
fsub qword [esp + 0x40]
mov dword [esp + 0x4c], eax
fstp qword [esp + 0x24]
call fcn.004f2d10
fstp qword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xc4]
fst qword [esp + 0x58]
fld qword [esp + 0x28]
fdiv st(1)
fstp qword [esp + 0x70]
fld qword [esp + 0x20]
fdiv st(1)
fstp qword [esp + 0x78]
fsubr qword [esp + 0x50]
fld st(0)
fabs
fcomp qword [0x691f50]
fnstsw ax
test ah, 1
je 0x5012dd
mov edx, dword [esp + 0x18]
dec edx
cmp edi, edx
fstp st(0)
jne 0x501436
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x5012f3
fld qword [esp + 0x28]
fdiv st(1)
fstp qword [esp + 0x68]
fld qword [esp + 0x20]
fdiv st(1)
fstp qword [esp + 0x50]
fstp st(0)
mov edi, dword [ebx]
sub esp, 0x18
lea edx, [ebp + 0x10]
mov ecx, esp
push edx
call fcn.0064dc70
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
call dword [edi + 0xac]
mov ecx, dword [esp + 0x18]
mov edi, 1
lea eax, [ecx - 1]
cmp eax, edi
mov dword [esp + 0x64], eax
jle 0x50142f
cmp edi, dword [ebp + 8]
je 0x501426
mov edx, dword [esi]
lea eax, [esp + 0x80]
push edi
push eax
mov ecx, esi
call dword [edx + 0xa8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x4c]
push edi
mov dword [esp + 0x4c], edx
call fcn.004f2d10
fstp qword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xc4]
fcom qword [esp + 0x58]
fsubr qword [esp + 0x58]
fabs
fld qword [esp + 0x34]
fadd qword [esp + 0x28]
fnstsw ax
test ah, 1
fld st(1)
je 0x5013c3
fmul qword [esp + 0x70]
fsubp st(1)
fstp qword [esp + 0x18]
fld qword [esp + 0x3c]
fadd qword [esp + 0x20]
fxch st(1)
fmul qword [esp + 0x78]
jmp 0x5013db
fmul qword [esp + 0x68]
fsubp st(1)
fstp qword [esp + 0x18]
fld qword [esp + 0x3c]
fadd qword [esp + 0x20]
fxch st(1)
fmul qword [esp + 0x50]
fsubp st(1)
mov edx, dword [esp + 0x1c]
push 0
push 0
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0064dd00
mov ebx, dword [ebx]
sub esp, 0x18
lea edx, [esp + 0x4c]
mov ecx, esp
push edx
call fcn.0064dc70
mov eax, ebx
mov ebx, dword [esp + 0x78]
push edi
mov ecx, ebx
call dword [eax + 0xac]
mov eax, dword [esp + 0x64]
inc edi
cmp edi, eax
jl 0x501327
mov ecx, ebx
call fcn.005034f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20