Function at 0x4ae1d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x519c10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.0040a240
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], esi
fld qword [esi + 0x68]
fild dword [ebp + 0xc]
lea ecx, [eax + eax]
mov dword [esp + 0x20], ecx
fstp qword [esp + 0xc]
fild dword [esp + 0x20]
fstp qword [esp + 0x2c]
fld qword [esp + 0xc]
fmul st(1)
fadd qword [esp + 0x2c]
call fcn.0050c116
fstp st(0)
fld qword [esi + 0x70]
fld qword [esp + 0xc]
fmul st(1)
mov ebx, eax
add ebx, 8
fadd qword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.0050c116
add eax, 8
mov edi, eax
mov dword [esp + 0x54], eax
imul edi, ebx
fstp st(0)
push edi
call fcn.0050b264
mov edx, eax
mov ecx, edi
mov dword [esp + 0x3c], edx
mov edi, edx
mov edx, ecx
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x50]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call fcn.0047ded0
mov ecx, dword [ebp + 0x10]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0xc0], 0
mov dword [esp + 0x20], eax
jl 0x4ae647
mov dword [esp + 0x24], 0x80
mov ecx, esi
call fcn.004f7aa0
fild dword [esp + 0x20]
lea edx, [esp + 0x70]
mov esi, eax
push edx
fdiv qword [esp + 0x10]
mov ecx, dword [esi + 0x3c]
fchs
fstp qword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push edi
push ebx
call fcn.0047ee30
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
fld qword [esi + 0x48]
fld qword [0x529660]
fsub st(1)
fcomp qword [0x520870]
fnstsw ax
test ah, 1
fstp st(0)
je 0x4ae42b
lea ecx, [esp + 0x70]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.0047ee30
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xb4], edx
mov ecx, dword [esp + 0x78]
cdq
fild dword [ebp + 0x10]
idiv dword [ebp + 0x10]
fld qword [esp + 0x78]
fsub qword [esp + 0x4c]
fmul qword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xb0], ecx
mov cl, 0x80
fadd st(1)
fadd qword [0x5296c0]
sub cl, al
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.0050c116
fld qword [esp + 0x7c]
fsub qword [esp + 0x38]
push eax
fmul qword [esp + 0x1c]
fadd st(1)
fadd qword [0x5296c0]
call fcn.0050c116
fld qword [esp + 0x54]
fsub qword [esp + 0x5c]
push eax
fmul qword [esp + 0x20]
fadd st(1)
fadd qword [0x5296c0]
call fcn.0050c116
fld qword [esp + 0x50]
fsub qword [esp + 0x40]
push eax
fmul qword [esp + 0x24]
fadd st(1)
fadd qword [0x5296c0]
call fcn.0050c116
push eax
fstp st(0)
call fcn.004adf30
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xd0]
add esp, 0x1c
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
jmp 0x4ae609
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
lea edx, [esp + 0x70]
push edx
push edi
test eax, eax
push ebx
je 0x4ae532
call fcn.0047ee30
mov eax, dword [esp + 0x24]
mov cl, 0x80
cdq
fld qword [esp + 0x88]
idiv dword [ebp + 0x10]
fmul qword [0x5296b8]
fadd qword [esp + 0x70]
fld qword [esp + 0x90]
fmul qword [0x5296b8]
fadd qword [esp + 0x78]
fild dword [ebp + 0x10]
fstp qword [esp + 0x14]
fsub qword [esp + 0x4c]
fmul qword [esp + 0xc]
mov edx, dword [esp + 0x28]
fadd qword [esp + 0x14]
fadd qword [0x5296c0]
sub cl, al
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.0050c116
fsub qword [esp + 0x38]
push eax
fmul qword [esp + 0x1c]
fadd qword [esp + 0x24]
fadd qword [0x5296c0]
call fcn.0050c116
fld qword [esp + 0x54]
fsub qword [esp + 0x5c]
push eax
fmul qword [esp + 0x20]
fadd qword [esp + 0x28]
fadd qword [0x5296c0]
call fcn.0050c116
fld qword [esp + 0x50]
fsub qword [esp + 0x40]
push eax
fmul qword [esp + 0x24]
fadd qword [esp + 0x2c]
fadd qword [0x5296c0]
call fcn.0050c116
push eax
call fcn.004adf30
add esp, 0x1c
lea ecx, [esp + 0x70]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.0047ee30
fld qword [esp + 0x88]
fmul qword [0x520870]
fadd qword [esp + 0x70]
fstp qword [esp + 0x3c]
fld qword [esp + 0x90]
fmul qword [0x520870]
fadd qword [esp + 0x78]
fstp qword [esp + 0x44]
jmp 0x4ae609
call fcn.0047ee30
mov eax, dword [esp + 0x24]
mov cl, 0x80
cdq
fld qword [esp + 0x88]
idiv dword [ebp + 0x10]
fadd qword [esp + 0x70]
fld qword [esp + 0x90]
fadd qword [esp + 0x78]
fild dword [ebp + 0x10]
fstp qword [esp + 0x14]
fsub qword [esp + 0x4c]
fmul qword [esp + 0xc]
mov edx, dword [esp + 0x28]
fadd qword [esp + 0x14]
fadd qword [0x5296c0]
sub cl, al
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.0050c116
fsub qword [esp + 0x38]
push eax
fmul qword [esp + 0x1c]
fadd qword [esp + 0x24]
fadd qword [0x5296c0]
call fcn.0050c116
fld qword [esp + 0x54]
fsub qword [esp + 0x5c]
push eax
fmul qword [esp + 0x20]
fadd qword [esp + 0x28]
fadd qword [0x5296c0]
call fcn.0050c116
fld qword [esp + 0x50]
fsub qword [esp + 0x40]
push eax
fmul qword [esp + 0x24]
fadd qword [esp + 0x2c]
fadd qword [0x5296c0]
call fcn.0050c116
push eax
call fcn.004adf30
add esp, 0x1c
lea ecx, [esp + 0x70]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.0047ee30
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esi + 0x38]
call fcn.004f7aa0
cmp esi, eax
jne 0x4ae316
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0x1c]
inc eax
add edx, 0x80
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jle 0x4ae2c8
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.0050b372
push 0
mov byte [esp + 0xc4], 1
nop
call fcn.00608f53
push eax
lea ecx, [esp + 0x64]
call fcn.0050b3f0
push 0
push 1
push 0
lea ecx, [esp + 0xa4]
call fcn.0050b3ae
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0x521184
mov edi, dword [esp + 0x54]
push 0
push 1
push 1
push edi
push ebx
mov byte [esp + 0xd4], 3
nop
call fcn.00608f5c
push eax
lea ecx, [esp + 0x5c]
call fcn.0050b3ea
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x58]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x68]
push eax
call fcn.0050b38a
lea ecx, [esp + 0x98]
mov dword [esp + 0x24], eax
push ecx
lea ecx, [esp + 0x64]
call fcn.0050b3a8
mov edx, dword [esp + 0x64]
push 0xff0062
push edi
push ebx
push 0
push 0
push edx
mov dword [esp + 0x40], eax
nop
call fcn.00608f65
mov ecx, esi
call fcn.004f7aa0
fild dword [ebp + 0x10]
mov edi, eax
fstp qword [esp + 0x14]
fld qword [edi + 8]
fsub qword [esp + 0x4c]
fmul qword [esp + 0xc]
fadd qword [esp + 0x14]
fadd qword [0x5296c0]
call fcn.0050c116
fld qword [edi]
fsub qword [esp + 0x2c]
push eax
fmul qword [esp + 0x10]
fadd qword [esp + 0x18]
fadd qword [0x5296c0]
call fcn.0050c116
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x6c]
call fcn.0050b3a2
mov edi, dword [edi + 0x38]
fld qword [edi + 8]
fsub qword [esp + 0x4c]
fmul qword [esp + 0xc]
fadd qword [esp + 0x14]
fadd qword [0x5296c0]
call fcn.0050c116
fld qword [edi]
fsub qword [esp + 0x2c]
push eax
fmul qword [esp + 0x10]
fadd qword [esp + 0x18]
fadd qword [0x5296c0]
call fcn.0050c116
push eax
lea ecx, [esp + 0x68]
call fcn.0050b39c
mov ecx, esi
call fcn.004f7aa0
cmp edi, eax
jne 0x4ae74b
push 0
lea ecx, [esp + 0xa4]
call fcn.0050b3b4
lea ecx, [esp + 0xa0]
mov byte [esp + 0xc0], 4
push ecx
lea ecx, [esp + 0x64]
call fcn.0050ba2c
mov edx, dword [esp + 0x64]
push 0
push 0
push 0
push edx
mov dword [esp + 0x30], eax
nop
call fcn.00608f6e
xor edi, edi
test ebx, ebx
jle 0x4ae81e
mov eax, dword [esp + 0x54]
xor esi, esi
test eax, eax
jle 0x4ae819
mov eax, dword [esp + 0x38]
lea ecx, [edi + eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x64]
push esi
push edi
push edx
nop
call 0x608f77
test eax, eax
je 0x4ae806
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
inc esi
add ecx, ebx
cmp esi, eax
mov dword [esp + 0x1c], ecx
jl 0x4ae7ee
inc edi
cmp edi, ebx
jl 0x4ae7d9
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x64]
call fcn.0050ba2c
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x60]
push edx
call fcn.0050b3a8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ae845
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x68]
push eax
call fcn.0050b38a
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x54]
mov edi, 0x52125c
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [esp + 0xa0], edi
lea ecx, [esp + 0xa0]
mov byte [esp + 0xc0], 5
call fcn.0050b384
mov esi, 0x520384
mov dword [esp + 0x58], edi
mov dword [esp + 0xa0], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0xc0], 6
call fcn.0050b384
mov dword [esp + 0x58], esi
mov dword [esp + 0x98], edi
lea ecx, [esp + 0x98]
mov byte [esp + 0xc0], 7
call fcn.0050b384
lea ecx, [esp + 0x60]
mov dword [esp + 0x98], esi
mov byte [esp + 0xc0], 0
call fcn.0050b360
lea ecx, [esp + 0x70]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00507a00
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret