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

Disassembly:
push 0xffffffffffffffff
push 0x542990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x13]
xor ebx, ebx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], ebx
call fcn.0050e020
mov esi, dword [esp + 0x7c]
push ecx
mov byte [esp + 0x78], 2
mov eax, dword [esi]
fld dword [eax + 0x14]
fsub dword [eax + 8]
fstp dword [esp]
fld dword [eax + 0x10]
fsub dword [eax + 4]
push ecx
fstp dword [esp]
fld dword [eax + 0xc]
fsub dword [eax]
push ecx
lea ecx, [esp + 0x40]
fstp dword [esp]
call fcn.004f2f00
mov eax, dword [esi]
push ecx
fld dword [eax + 8]
fsub dword [esp + 0x40]
fstp dword [esp]
fld dword [eax + 4]
fsub dword [esp + 0x3c]
push ecx
fstp dword [esp]
fld dword [eax]
fsub dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x4c]
fstp dword [esp]
call fcn.004f2f00
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x50ffa7
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.005050c0
mov eax, dword [esp + 0x34]
mov ebp, 0xc
add esp, 8
add eax, ebp
mov dword [esp + 0x2c], eax
jmp 0x50ffc7
push 1
lea edx, [esp + 0x80]
push 1
lea ecx, [esp + 0x48]
push edx
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004cdb20
mov ebp, 0xc
mov edi, dword [esi]
mov eax, dword [esi + 4]
cmp edi, eax
je 0x510012
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x50fff2
push edi
push eax
call fcn.005050c0
mov eax, dword [esp + 0x34]
add esp, 8
add eax, ebp
mov dword [esp + 0x2c], eax
jmp 0x510009
push 1
lea edx, [esp + 0x80]
push 1
push edx
push edi
push eax
lea ecx, [esp + 0x3c]
call fcn.004cdb20
mov eax, dword [esi + 4]
add edi, ebp
cmp edi, eax
jne 0x50ffd0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2 - 6]
lea edx, [edx + edx*2]
fld dword [ecx + edx*4 - 4]
fsub dword [ecx + eax*4 + 8]
lea eax, [ecx + eax*4]
lea ecx, [ecx + edx*4 - 0xc]
push ecx
fstp dword [esp]
fld dword [ecx + 4]
fsub dword [eax + 4]
push ecx
fstp dword [esp]
fld dword [ecx]
fsub dword [eax]
push ecx
lea ecx, [esp + 0x40]
fstp dword [esp]
call fcn.004f2f00
mov ecx, dword [esi]
mov esi, dword [esi + 4]
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
fld dword [esp + 0x3c]
sar edx, 1
mov eax, edx
push ecx
shr eax, 0x1f
add edx, eax
lea edx, [edx + edx*2]
fadd dword [ecx + edx*4 - 4]
lea eax, [ecx + edx*4 - 0xc]
fstp dword [esp]
fld dword [esp + 0x3c]
fadd dword [eax + 4]
push ecx
fstp dword [esp]
fld dword [esp + 0x3c]
fadd dword [eax]
push ecx
lea ecx, [esp + 0x4c]
fstp dword [esp]
call fcn.004f2f00
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x5100cc
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.005050c0
mov eax, dword [esp + 0x34]
add esp, 8
add eax, ebp
mov dword [esp + 0x2c], eax
jmp 0x5100e7
push 1
lea edx, [esp + 0x80]
push 1
lea ecx, [esp + 0x48]
push edx
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004cdb20
fld dword [esp + 0x84]
fsub dword [0x549200]
fstp dword [esp + 0x24]
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x78], 3
call fcn.00512460
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
mov byte [esp + 0x74], 5
shr eax, 0x1f
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edx, [edx + eax - 3]
test edx, edx
je 0x5101e3
mov esi, 0x18
mov eax, dword [esi + ecx + 0xc]
mov edx, dword [esi + ecx]
lea edi, [esi + ecx + 0xc]
lea ebx, [esi + ecx]
lea ebp, [esi + ecx - 0xc]
lea ecx, [esi + ecx - 0x18]
push eax
mov dword [esp + 0x24], ecx
mov eax, dword [ebp]
mov ecx, dword [ecx]
push edx
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00510310
mov edx, dword [edi + 4]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x68]
mov eax, dword [edx + 4]
push eax
call fcn.00510310
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.0050f910
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add edi, eax
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x2c]
add esp, 0x10
shr eax, 0x1f
inc edi
add esi, 0xc
lea edx, [edx + eax - 3]
mov dword [esp + 0x1c], edi
cmp edi, edx
jne 0x510141
mov eax, dword [esp + 0x14]
cmp dword [eax], eax
je 0x510209
lea eax, [esp + 0x84]
lea ecx, [esp + 0x14]
push eax
call fcn.005147e0
mov eax, dword [eax]
mov byte [eax + 0x28], 1
add eax, 8
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
cmp ebp, eax
je 0x5102a8
mov ebx, dword [esp + 0x80]
mov edi, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edi, eax
lea esi, [ebp + 8]
je 0x510238
test edi, edi
je 0x510232
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
jmp 0x51024d
push 1
lea ecx, [esp + 0x88]
push 1
push ecx
push esi
push edi
mov ecx, ebx
call fcn.005122e0
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, esi
mov eax, 0x66666667
imul ecx
fld dword [esp + 0x88]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
lea ecx, [edx + edx*4]
fstp dword [esi + ecx*8 - 0xc]
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, esi
imul ecx
fld dword [esp + 0x8c]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [edx + edx*4]
fstp dword [esi + ecx*8 - 4]
mov ebp, dword [ebp]
mov eax, dword [esp + 0x14]
cmp ebp, eax
jne 0x51021a
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 6
call fcn.00504e50
mov edx, dword [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.004fdfd0
mov esi, dword [esp + 0x28]
mov dword [esp + 0x74], 7
test esi, esi
je 0x5102f7
mov ecx, dword [esp + 0x30]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
lea ecx, [esp + 0x30]
shr eax, 0x1f
add edx, eax
push edx
push esi
call fcn.004fdfd0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret