Function at 0x511c20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x14], edi
mov eax, dword [esi]
call dword [eax + 0x54]
mov ebx, eax
test ebx, ebx
jne 0x511c72
push dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, esi
push edi
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
call fcn.00511b10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edi]
xor ecx, ecx
test eax, eax
cmovle eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
call fcn.00512de0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x511ca7
push 0x5f0984
push dword [eax]
call edi
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1c], eax
mov ecx, eax
push 2
push ebx
call ecx
call fcn.00512de0
mov dword [ebp - 0xc], eax
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x511ccc
push 0x5f095c
push dword [eax]
call edi
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov ecx, eax
push 4
push ebx
call ecx
fild dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fmul qword [0x5d7780]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fchs
fild dword [ebp + 8]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fsub st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
fst dword [ebp - 0x10]
fstp dword [ebp - 0x18]
fild dword [ebp + 0xc]
fstp dword [ebp - 4]
fld dword [ebp - 4]
mov eax, dword [ebp + 0x10]
fsub st(1)
sub eax, dword [ebp + 8]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fst dword [ebp - 0x20]
fstp dword [ebp - 0x30]
mov dword [ebp - 4], eax
fadd st(0), st(0)
fild dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp - 4]
mov eax, dword [ebp + 0x14]
fadd st(1)
sub eax, dword [ebp + 0xc]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fst dword [ebp - 0x1c]
fstp dword [ebp - 0x2c]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
mov eax, dword [ebp - 8]
fstp dword [ebp - 4]
fadd dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fst dword [ebp - 0xc]
fstp dword [ebp - 0x28]
test eax, eax
je 0x511dd5
lea ecx, [ebp + 8]
push ecx
push eax
mov ecx, esi
call fcn.00510700
mov dword [ebp - 8], eax
call fcn.00512de0
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x511d8c
push 0x5f0acc
push dword [eax]
call edi
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x64], eax
mov ecx, eax
fld dword [ebp - 0xc]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [ebp - 0x1c]
fstp dword [esp + 8]
fld dword [ebp - 0x20]
fstp dword [esp + 4]
fld dword [ebp - 0x10]
fstp dword [esp]
push dword [ebp - 8]
push ebx
call ecx
call fcn.00512de0
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x511dd0
push 0x5f0a48
push dword [eax]
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x44], eax
mov ecx, eax
push dword [ebp - 8]
call ecx
cmp dword [ebp - 0x24], 0
jle 0x511e55
lea eax, [ebp + 8]
mov ecx, esi
push eax
push dword [ebp - 0x14]
call fcn.00510ae0
mov dword [ebp - 8], eax
call fcn.00512de0
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 0x50]
test ecx, ecx
jne 0x511e0c
push 0x5f0a78
push dword [eax]
call edi
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], eax
mov ecx, eax
fld dword [ebp - 0x28]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [ebp - 0x2c]
fstp dword [esp + 8]
fld dword [ebp - 0x30]
fstp dword [esp + 4]
fld dword [ebp - 0x18]
fstp dword [esp]
push dword [ebp - 8]
push ebx
call ecx
call fcn.00512de0
mov dword [ebp - 0x18], eax
mov ecx, dword [eax + 0x48]
test ecx, ecx
jne 0x511e50
push 0x5f0a58
push dword [eax]
call edi
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48], eax
mov ecx, eax
push dword [ebp - 8]
call ecx
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x58]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18