Function at 0x50c510
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5ddb08
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x14]
fld qword [esi + 8]
mov edi, dword [ebp + 0x10]
fsub qword [edi + 8]
sub esp, 8
lea ecx, [esp + 0x114]
fst qword [esp + 0x64]
fld qword [esi]
fsubr qword [edi]
fstp qword [esp + 0x4c]
fstp qword [esp]
call fcn.0050e3c0
fld qword [esp + 0x44]
sub esp, 8
lea ecx, [esp + 0xf0]
fstp qword [esp]
mov dword [esp + 0x348], 0
call fcn.0050e3c0
fld qword [ebp + 8]
sub esp, 8
lea ecx, [esp + 0xcc]
fstp qword [esp]
mov byte [esp + 0x348], 1
call fcn.0050e3c0
fld qword [edi]
sub esp, 8
lea ecx, [esp + 0x1c8]
fstp qword [esp]
mov byte [esp + 0x348], 2
call fcn.0050e3c0
fld qword [edi + 8]
sub esp, 8
lea ecx, [esp + 0x180]
fstp qword [esp]
mov byte [esp + 0x348], 3
call fcn.0050e3c0
fld qword [esi]
sub esp, 8
lea ecx, [esp + 0x15c]
fstp qword [esp]
mov byte [esp + 0x348], 4
call fcn.0050e3c0
fld qword [esi + 8]
sub esp, 8
lea ecx, [esp + 0x1a4]
fstp qword [esp]
mov byte [esp + 0x348], 5
call fcn.0050e3c0
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x158]
push ecx
lea edx, [esp + 0x1ec]
push edx
mov byte [esp + 0x34c], 6
call fcn.0050e8c0
mov esi, eax
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x1d0]
push ecx
lea edx, [esp + 0x240]
push edx
mov byte [esp + 0x358], 7
call fcn.0050e8c0
push esi
push eax
lea eax, [esp + 0xa0]
push eax
mov byte [esp + 0x364], 8
call fcn.0050e890
add esp, 0x24
lea ecx, [esp + 0x22c]
mov byte [esp + 0x340], 0xa
call fcn.0045c490
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x340], 0xb
call fcn.0045c490
lea ecx, [esp + 0x80]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x2e8]
push eax
call fcn.0050e8c0
mov esi, eax
lea ecx, [esp + 0xf4]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x2ac]
push eax
mov byte [esp + 0x358], 0xc
call fcn.0050e8c0
mov edi, eax
lea ecx, [esp + 0x124]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x270]
push eax
mov byte [esp + 0x364], 0xd
call fcn.0050e8c0
push edi
push eax
lea ecx, [esp + 0x234]
push ecx
mov byte [esp + 0x370], 0xe
call fcn.0050e6b0
mov edi, eax
lea edx, [esp + 0xf4]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x2ac]
push ecx
mov byte [esp + 0x37c], 0xf
call fcn.0050e8c0
push edi
push eax
lea edx, [esp + 0x300]
push edx
mov byte [esp + 0x388], 0x10
call fcn.0050e8c0
add esp, 0x48
push esi
push eax
lea eax, [esp + 0x138]
push eax
mov byte [esp + 0x34c], 0x11
call fcn.0050e890
add esp, 0xc
lea ecx, [esp + 0x2bc]
mov byte [esp + 0x340], 0x13
call fcn.0045c490
lea ecx, [esp + 0x274]
mov byte [esp + 0x340], 0x14
call fcn.0045c490
mov byte [esp + 0x340], 0x15
lea ecx, [esp + 0x208]
call fcn.0045c490
lea ecx, [esp + 0x250]
mov byte [esp + 0x340], 0x16
call fcn.0045c490
lea ecx, [esp + 0x298]
mov byte [esp + 0x340], 0x17
call fcn.0045c490
lea ecx, [esp + 0x2e0]
mov byte [esp + 0x340], 0x18
call fcn.0045c490
lea ecx, [esp + 0x80]
call fcn.0050e250
fstp st(0)
lea ecx, [esp + 0x130]
call fcn.0050e250
fst qword [esp + 0x24]
lea ecx, [esp + 0xa4]
fstp qword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00505d30
fld qword [esp + 0x5c]
lea edx, [esp + 0x34]
fst qword [esp + 0x4c]
push edx
fstp qword [esp + 0x58]
fld qword [esp + 0x48]
mov eax, edx
push eax
fst qword [esp + 0x3c]
lea ecx, [esp + 0x2c]
fstp qword [esp + 0x44]
push ecx
call fcn.00505f00
lea edx, [esp + 0x58]
mov esi, eax
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.00505f00
fld qword [esi + 8]
fadd qword [eax + 8]
add esp, 8
lea edx, [esp + 0xc4]
fstp qword [esp + 8]
fld qword [esi]
fadd qword [eax]
fstp qword [esp]
push edx
call fcn.00505e80
add esp, 0x14
lea ecx, [esp + 0x80]
call fcn.0050e250
fstp st(0)
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xb8]
call fcn.00505de0
push eax
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.00505f00
fld qword [esp + 0x48]
fchs
lea eax, [esp + 0x30]
fld qword [esp + 0x40]
push eax
fchs
lea ecx, [esp + 0x7c]
fxch st(1)
push ecx
fstp qword [esp + 0x38]
lea edx, [esp + 0x70]
fstp qword [esp + 0x40]
push edx
call fcn.00505f00
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00505f00
mov edx, dword [eax]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
inc dword [0x630adc]
add esp, 0x24
lea ecx, [esp + 0x130]
mov byte [esp + 0x340], 0xb
call fcn.0045c490
lea ecx, [esp + 0x80]
mov byte [esp + 0x340], 6
call fcn.0045c490
lea ecx, [esp + 0x19c]
mov byte [esp + 0x340], 5
call fcn.0045c490
lea ecx, [esp + 0x154]
mov byte [esp + 0x340], 4
call fcn.0045c490
lea ecx, [esp + 0x178]
mov byte [esp + 0x340], 3
call fcn.0045c490
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x340], 2
call fcn.0045c490
lea ecx, [esp + 0xc4]
mov byte [esp + 0x340], 1
call fcn.0045c490
lea ecx, [esp + 0xe8]
mov byte [esp + 0x340], 0
call fcn.0045c490
lea ecx, [esp + 0x10c]
mov dword [esp + 0x340], 0xffffffff
call fcn.0045c490
xor eax, eax
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret