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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e4533
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov edi, ecx
fld qword [0x601fa8]
lea eax, [esp + 0xf4]
push eax
fstp qword [esp + 0x18]
call fcn.004f2ea0
fld qword [eax]
fstp qword [esp + 0x4c]
lea ecx, [esp + 0x4c]
fld qword [eax + 8]
push ecx
lea ecx, [esp + 0x20]
fstp qword [esp + 0x58]
call fcn.005bef10
lea ecx, [esp + 0x28]
call fcn.004f8520
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
dec ecx
cmp ecx, eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ecx
jle 0x50190a
add ebx, 8
mov dword [esp + 0x3c], ebx
mov edx, dword [ebx]
cmp edx, dword [ebx - 8]
jne 0x5015c9
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx - 4]
je 0x5018f1
mov eax, dword [ebx + 4]
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0x38], edx
lea edx, [esp + 0x2c]
push edi
push edx
mov dword [esp + 0x44], eax
call fcn.00503060
add esp, 0xc
test eax, eax
jg 0x501969
fld qword [esp + 0x4c]
lea eax, [esp + 0x44]
push eax
fstp qword [esp + 0xc8]
fld qword [esp + 0x58]
lea ecx, [esp + 0xc8]
push ecx
fstp qword [esp + 0xd4]
lea eax, [ebx - 8]
push eax
mov ecx, edi
call fcn.00501260
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fcom qword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x501652
mov eax, dword [esp + 0x48]
fstp qword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [ebx - 8]
mov dword [esi + 8], ecx
mov eax, dword [ebx - 4]
mov dword [esi + 0xc], eax
jmp 0x501654
fstp st(0)
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
call fcn.004f9700
test eax, eax
je 0x501798
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], edx
push ecx
lea edx, [esp + 0x108]
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0xa8], eax
call fcn.004f87a0
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xdc], eax
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x94]
mov dword [esp + 0x8c], eax
push edx
lea eax, [esp + 0x90]
mov dword [esp + 0x94], ecx
push eax
lea ecx, [esp + 0xe8]
mov dword [esp + 0x9c], ebx
call fcn.004f8540
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0xe4]
push edx
push edi
mov byte [esp + 0x12c], 1
call fcn.00503890
add esp, 0xc
cmp eax, 1
jne 0x501780
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x74]
mov dword [esp + 0x78], ecx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], eax
call fcn.004f9810
sub eax, dword [edi + 0x1c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fcom qword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x50177e
mov eax, dword [esp + 0xac]
fstp qword [esp + 0x14]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xdc]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edx
jmp 0x501780
fstp st(0)
lea ecx, [esp + 0xe0]
mov byte [esp + 0x120], 0
call fcn.004f85b0
mov ebx, dword [esp + 0x3c]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
lea edx, [esp + 0xbc]
mov dword [esp + 0xc0], ecx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc0], eax
call fcn.004f9700
test eax, eax
je 0x50183b
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
lea edx, [esp + 0x5c]
mov dword [esp + 0x60], ecx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], eax
call fcn.004f9810
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fcom qword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x501839
mov eax, dword [edi + 4]
fstp qword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [edi + 8]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0xa4], ecx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xb0], edx
call fcn.004f87a0
mov edx, dword [eax]
mov dword [esi + 8], edx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x50183b
fstp st(0)
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x64]
mov dword [esp + 0x68], ecx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], eax
call fcn.004f9700
test eax, eax
je 0x5018cf
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x6c]
mov dword [esp + 0x70], ecx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x70], eax
call fcn.004f9810
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fcom qword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x5018cd
mov eax, dword [edi + 0xc]
fstp qword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 4], eax
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x7c], ecx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x88], edx
call fcn.004f87a0
mov edx, dword [eax]
mov dword [esi + 8], edx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x5018cf
fstp st(0)
fldz
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x44
jnp 0x501982
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], ecx
inc eax
add ebx, 8
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
jl 0x5015b6
mov ebx, dword [ebp + 8]
fld qword [esp + 0x4c]
lea ebx, [ebx + eax*8]
lea edx, [esp + 0x44]
fstp qword [esp + 0xc4]
fld qword [esp + 0x54]
push edx
lea eax, [esp + 0xc8]
fstp qword [esp + 0xd0]
push eax
push ebx
mov ecx, edi
call fcn.00501260
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld qword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x5019b0
mov ecx, dword [esp + 0x44]
fstp st(0)
mov edx, dword [esp + 0x48]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov ebx, dword [ebx + 4]
mov dword [esi + 0xc], ebx
jmp 0x5019b2
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x120], 0xffffffff
call fcn.004f85b0
xor eax, eax
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
fstp st(1)
fadd qword [0x5f3df0]
call fcn.005c3ce0
lea ecx, [esp + 0x28]
mov esi, eax
mov dword [esp + 0x120], 0xffffffff
call fcn.004f85b0
mov eax, esi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc