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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eebe2
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
lea esi, [edi + 4]
mov dword [ebp + 8], esi
mov ecx, dword [ebx + 4]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
lea esi, [edi + 8]
mov dword [ebp - 0x18], esi
mov ecx, dword [ebx + 8]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
lea esi, [edi + 0xc]
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebx + 0xc]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
lea esi, [edi + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ebx + 0x14]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
lea esi, [edi + 0x18]
mov dword [ebp - 0x24], esi
mov ecx, dword [ebx + 0x18]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xb
lea esi, [edi + 0x1c]
mov dword [ebp - 0x28], esi
mov ecx, dword [ebx + 0x1c]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xd
lea esi, [edi + 0x20]
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebx + 0x20]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xf
lea esi, [edi + 0x24]
mov dword [ebp - 0x30], esi
mov ecx, dword [ebx + 0x24]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x11
lea esi, [edi + 0x2c]
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x28], eax
mov dword [ebp - 0x34], esi
mov ecx, dword [ebx + 0x2c]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x13
lea esi, [edi + 0x30]
mov dword [ebp - 0x38], esi
mov ecx, dword [ebx + 0x30]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x15
lea esi, [edi + 0x34]
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebx + 0x34]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x17
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x508c37
push 0x1c
push eax
call fcn.0059b835
add esp, 8
mov dword [edi + 0x3c], eax
test eax, eax
je 0x508c37
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x44], eax
xor edi, edi
mov eax, dword [ebx + 0x40]
test eax, eax
jle 0x508c34
xor esi, esi
test esi, esi
js 0x508ca6
cmp edi, eax
jge 0x508ca6
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x10]
add eax, esi
push eax
lea ecx, [ecx + 0x3c]
call fcn.00508cc0
mov eax, dword [ebx + 0x40]
inc edi
add esi, 0x1c
cmp edi, eax
jl 0x508c08
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 0x18
add edi, 0x48
mov dword [ebp + 8], edi
mov ecx, dword [ebx + 0x48]
sub ecx, 0x10
mov dword [ebp - 0x3c], edi
call fcn.00409460
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x1a
lea esi, [edi + 4]
mov dword [ebp - 0x38], esi
mov ecx, dword [ebx + 0x4c]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x1c
lea esi, [edi + 8]
mov dword [ebp - 0x34], esi
mov ecx, dword [ebx + 0x50]
sub ecx, 0x10
call fcn.00409460
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.00412920
int3