Function at 0x58ac40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5edefb
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push eax
lea esi, [ebx + 0xc]
lea edi, [ebx + 4]
push esi
push edi
call fcn.004fa9f0
fstp qword [esp + 0x30]
add esp, 0xc
push edi
lea ecx, [esp + 0xa8]
call fcn.005c0190
push esi
lea ecx, [esp + 0x68]
call fcn.005c0190
fild dword [ebx + 0x14]
sub esp, 8
lea ecx, [esp + 0x3c]
fmul qword [0x5f3df0]
lea edx, [esp + 0x4c]
lea eax, [esp + 0xac]
fst qword [esp + 0x34]
fstp qword [esp]
push ecx
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.005c57b0
push esi
push edi
call fcn.00500fc0
fdivr qword [esp + 0x44]
add esp, 0x18
fstp qword [esp]
call fcn.004fa780
add esp, 8
test eax, eax
jne 0x58ae4b
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00500fc0
fdivr qword [esp + 0x2c]
fstp qword [esp]
call fcn.004fa780
add esp, 8
test eax, eax
jne 0x58ae4b
push ebx
lea ecx, [esp + 0x78]
call fcn.005c0190
fld qword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.005c57b0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.005c5830
add esp, 0x28
push eax
lea ecx, [esp + 0x38]
call fcn.005c58d0
fldz
fld qword [esp + 0x3c]
fcom st(1)
fnstsw ax
fld qword [0x5f3df0]
test ah, 1
jne 0x58ad8f
fadd st(1), st(0)
jmp 0x58ad91
fsub st(1), st(0)
fld qword [esp + 0x34]
fcom st(3)
fnstsw ax
fstp st(3)
test ah, 1
jne 0x58ada4
faddp st(2)
jmp 0x58ada6
fsubp st(2)
fxch st(1)
call fcn.005c3ce0
mov esi, eax
call fcn.005c3ce0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov dword [ecx], esi
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0xc0]
push ecx
call fcn.005c5830
add esp, 0x10
push eax
lea ecx, [esp + 0x48]
call fcn.005c58d0
fldz
fld qword [esp + 0x4c]
fcom st(1)
fnstsw ax
fld qword [0x5f3df0]
test ah, 1
jne 0x58ae01
fadd st(1), st(0)
jmp 0x58ae03
fsub st(1), st(0)
fld qword [esp + 0x44]
fcom st(3)
fnstsw ax
fstp st(3)
test ah, 1
jne 0x58ae16
faddp st(2)
jmp 0x58ae18
fsubp st(2)
fxch st(1)
call fcn.005c3ce0
mov esi, eax
call fcn.005c3ce0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], esi
mov eax, 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
fldz
fld qword [esp + 0x3c]
fcom st(1)
fnstsw ax
fld qword [0x5f3df0]
test ah, 1
jne 0x58ae64
fadd st(1), st(0)
jmp 0x58ae66
fsub st(1), st(0)
fld qword [esp + 0x34]
fcom st(3)
fnstsw ax
test ah, 1
jne 0x58ae77
fadd st(1)
jmp 0x58ae79
fsub st(1)
call fcn.005c3ce0
fxch st(1)
mov ebx, eax
call fcn.005c3ce0
fld qword [esp + 0x4c]
mov ecx, dword [ebp + 0xc]
fcom st(2)
mov dword [ecx + 4], eax
mov dword [ecx], ebx
fnstsw ax
test ah, 1
jne 0x58aea0
fadd st(1)
jmp 0x58aea2
fsub st(1)
fld qword [esp + 0x44]
fcom st(3)
fnstsw ax
fstp st(3)
fxch st(2)
test ah, 1
jne 0x58aeb7
faddp st(1)
jmp 0x58aeb9
fsubrp st(1)
call fcn.005c3ce0
mov ebx, eax
call fcn.005c3ce0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
mov dword [esp + 0x24], edx
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x30], eax
call fcn.004f73e0
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], ecx
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x104], 0
mov dword [esp + 0x30], eax
call fcn.004f7620
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x54]
test eax, eax
je 0x58af47
call fcn.004f74a0
mov eax, 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004f74a0
xor eax, eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc