Function at 0x5049c0
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 0x504a12
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.005048b0
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.00505b80
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x504a47
push 0x5e1ff4
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.00505b80
mov dword [ebp - 0xc], eax
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x504a6c
push 0x5e1fcc
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 [0x5cbda0]
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 0x504b75
lea ecx, [ebp + 8]
push ecx
push eax
mov ecx, esi
call fcn.005034a0
mov dword [ebp - 8], eax
call fcn.00505b80
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x504b2c
push 0x5e213c
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.00505b80
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x504b70
push 0x5e20b8
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 0x504bf5
lea eax, [ebp + 8]
mov ecx, esi
push eax
push dword [ebp - 0x14]
call fcn.00503880
mov dword [ebp - 8], eax
call fcn.00505b80
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 0x50]
test ecx, ecx
jne 0x504bac
push 0x5e20e8
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.00505b80
mov dword [ebp - 0x18], eax
mov ecx, dword [eax + 0x48]
test ecx, ecx
jne 0x504bf0
push 0x5e20c8
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