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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52ec17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
mov ecx, dword [ebp + 0x28]
push ebx
push esi
push edi
call fcn.0047ab90
lea ecx, [esp + 0xa8]
mov esi, eax
call fcn.00488210
xor eax, eax
mov dword [esp + 0xc], 0x534238
mov dword [esp + 0x210], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 8]
mov ebx, 1
cmp ecx, 0xffffffff
mov byte [esp + 0x210], bl
je 0x5057d3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
cmp dword [esi + 8], ebx
jle 0x5058cb
mov edi, 0xc
mov eax, dword [esi + 4]
sub esp, 8
add eax, edi
sub esp, 8
mov ecx, eax
sub esp, 8
sub esp, 8
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x58], edx
mov edx, eax
mov ecx, dword [ecx + 8]
add eax, 0xfffffff4
mov dword [esp + 0x5c], ecx
mov ecx, dword [edx]
fld dword [esp + 0x5c]
mov dword [esp + 0xb0], ecx
mov ecx, dword [edx + 4]
fstp qword [esp + 0x18]
mov edx, dword [edx + 8]
mov dword [esp + 0xb4], ecx
fld dword [esp + 0xb4]
mov ecx, eax
mov dword [esp + 0xb8], edx
fstp qword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x98], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x9c], edx
mov edx, dword [eax]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x80], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xa0], ecx
fld dword [esp + 0xa0]
mov ecx, dword [eax + 4]
mov dword [esp + 0x88], edx
fstp qword [esp + 8]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0xc8]
fld dword [esp + 0x84]
fstp qword [esp]
call fcn.00488a90
test al, al
je 0x5058bc
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xa8]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00436bd0
mov eax, dword [esi + 8]
inc ebx
add edi, 0xc
cmp ebx, eax
jl 0x5057e9
mov eax, dword [esi + 4]
mov esi, dword [esi + 8]
mov edx, eax
sub esp, 8
sub esp, 8
mov ecx, dword [edx]
sub esp, 8
mov dword [esp + 0x78], ecx
sub esp, 8
mov ecx, dword [edx + 4]
mov dword [esp + 0x84], ecx
mov ecx, eax
mov edx, dword [edx + 8]
mov dword [esp + 0x88], edx
mov edx, dword [ecx]
mov dword [esp + 0x98], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x9c], edx
lea edx, [esi + esi*2 - 3]
mov ecx, dword [ecx + 8]
fld dword [esp + 0x88]
mov dword [esp + 0xa0], ecx
lea ecx, [eax + edx*4]
fstp qword [esp + 0x18]
mov edx, dword [ecx]
fld dword [esp + 0x9c]
mov dword [esp + 0xb0], edx
mov edx, dword [ecx + 4]
fstp qword [esp + 0x10]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xb4], edx
lea edx, [esi + esi*2 - 3]
mov dword [esp + 0xb8], ecx
fld dword [esp + 0xb8]
lea eax, [eax + edx*4]
fstp qword [esp + 8]
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0xc8]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], edx
fld dword [esp + 0x58]
mov eax, dword [eax + 8]
fstp qword [esp]
mov dword [esp + 0x5c], eax
call fcn.00488a90
test al, al
je 0x5059a5
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xa8]
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00436bd0
xor edi, edi
mov dword [esp + 0x20], 0x53290c
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x210], 2
call fcn.00484410
mov ebx, dword [ebp + 0x28]
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x44], esi
call fcn.0047b3d0
test eax, eax
jle 0x505e28
push esi
mov ecx, ebx
call fcn.0047b3e0
mov ebx, eax
mov ecx, ebx
call fcn.004834e0
cmp eax, 7
je 0x505a0e
mov ecx, ebx
call fcn.004834e0
cmp eax, 8
jne 0x505e0d
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 4
cmp eax, edi
je 0x505a2b
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x24], edi
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push eax
lea edx, [esp + 0x94]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
call fcn.00483490
push eax
lea eax, [esp + 0x184]
push eax
call fcn.00483f90
push eax
lea ecx, [esp + 0x204]
push ebx
push ecx
call fcn.00484550
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x64]
add esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004834e0
cmp eax, 7
jne 0x505bbb
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jle 0x505ad4
xor esi, esi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x24]
push ecx
add eax, esi
push edx
push eax
call fcn.00505570
add esp, 0x20
cmp eax, 2
je 0x505ad4
mov eax, dword [esp + 0x14]
inc edi
add esi, 0x28
cmp edi, eax
jl 0x505a93
cmp dword [esp + 0x28], 2
jne 0x505b1f
mov eax, dword [esp + 0x24]
push 0
push 0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea ecx, [ebx + 0x18]
call fcn.004844e0
mov eax, dword [esp + 0x24]
push 0
push 0
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x10]
push ecx
push edx
lea ecx, [ebx + 0x60]
call fcn.004844e0
jmp 0x505e0b
fld qword [ebp + 0x10]
fmul qword [0x531170]
sub esp, 8
lea eax, [esp + 0xd8]
mov ecx, ebx
fstp qword [esp]
push 0x40568000
push 0
push eax
call fcn.00483490
sub esp, 0x18
mov ecx, 6
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x140]
push ecx
call fcn.00482850
add esp, 0x24
lea edx, [esp + 0x80]
push eax
push edx
call fcn.00483f90
lea eax, [esp + 0x88]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x1ec]
push ecx
push edx
call fcn.00484510
lea edi, [ebx + 0x18]
mov ecx, 6
mov esi, eax
lea eax, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x64]
push eax
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.00484550
add esp, 0x28
lea edi, [ebx + 0x60]
jmp 0x505e02
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jle 0x505c16
fld qword [ebp + 0x10]
fadd st(0), st(0)
xor esi, esi
fadd qword [ebp + 0x18]
fstp qword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x24]
push edx
add ecx, esi
push eax
push ecx
call fcn.00505570
add esp, 0x20
cmp eax, 2
je 0x505c16
mov eax, dword [esp + 0x14]
inc edi
add esi, 0x28
cmp edi, eax
jl 0x505bd3
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jle 0x505c63
xor esi, esi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x24]
push ecx
add eax, esi
push edx
push eax
call fcn.00505570
add esp, 0x20
cmp eax, 4
je 0x505c63
mov eax, dword [esp + 0x14]
inc edi
add esi, 0x28
cmp edi, eax
jl 0x505c22
cmp dword [esp + 0x28], 4
jne 0x505cf5
mov eax, dword [esp + 0x24]
push 0
push 0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea ecx, [ebx + 0x18]
call fcn.004844e0
mov eax, dword [esp + 0x24]
push 0
push 0
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, dword [eax + 0x24]
push edx
mov edx, dword [eax + 0x20]
push ecx
push edx
lea ecx, [ebx + 0x60]
call fcn.004844e0
mov eax, dword [esp + 0x24]
push 0
push 0
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
push ecx
mov ecx, dword [eax + 0x34]
push edx
mov edx, dword [eax + 0x30]
push ecx
push edx
lea ecx, [ebx + 0x78]
call fcn.004844e0
mov eax, dword [esp + 0x24]
push 0
push 0
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x10]
push ecx
push edx
lea ecx, [ebx + 0xc0]
call fcn.004844e0
jmp 0x505e0b
fld qword [ebp + 0x10]
fadd qword [ebp + 0x18]
sub esp, 8
lea eax, [esp + 0x1b0]
mov ecx, ebx
fst qword [esp + 0x3c]
fmul qword [0x531170]
fstp qword [esp]
push 0x40568000
push 0
push eax
call fcn.00483490
sub esp, 0x18
mov ecx, 6
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x110]
push ecx
call fcn.00482850
add esp, 0x24
lea edx, [esp + 0x68]
push eax
push edx
call fcn.00483f90
lea eax, [esp + 0x70]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x114]
push ecx
push edx
lea edi, [ebx + 0x18]
call fcn.00484510
mov ecx, 6
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x64]
push eax
lea edx, [esp + 0x150]
push ecx
push edx
lea edi, [ebx + 0xc0]
call fcn.00484550
fld qword [ebp + 0x10]
fdiv qword [esp + 0x5c]
mov ecx, 6
mov esi, eax
add esp, 0x20
lea eax, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x168]
fadd st(0), st(0)
fstp qword [esp]
push eax
push ecx
call fcn.00483f90
mov esi, eax
lea edx, [esp + 0x70]
lea eax, [ebx + 0x18]
push edx
push eax
mov ecx, 6
lea edi, [esp + 0x78]
lea eax, [esp + 0x1a8]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00484550
lea edi, [ebx + 0x60]
mov ecx, 6
mov esi, eax
lea eax, [ebx + 0xc0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x1dc]
push ecx
push eax
push edx
call fcn.00484510
add esp, 0x28
lea edi, [ebx + 0x78]
mov ecx, 6
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov esi, dword [esp + 0x44]
mov ebx, dword [ebp + 0x28]
inc esi
mov ecx, ebx
mov dword [esp + 0x44], esi
call fcn.0047b3d0
cmp esi, eax
jl 0x5059e8
mov dword [esp + 0x20], 0x53290c
mov eax, dword [esp + 0x24]
mov byte [esp + 0x210], 3
cmp eax, edi
je 0x505e49
push eax
call fcn.0051aee4
add esp, 4
mov ebx, 0x53138c
mov dword [esp + 0xc], 0x534238
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0x10]
mov byte [esp + 0x210], 4
cmp esi, edi
je 0x505e8e
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x505e85
lea edi, [eax]
mov ecx, esi
call fcn.00519440
add esi, 0x28
dec edi
jne 0x505e74
mov esi, dword [esp + 0x10]
push esi
call fcn.0051aee4
add esp, 4
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x210], 0xffffffff
call fcn.00519440
mov ecx, dword [esp + 0x208]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret