Function at 0x505b3c
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x505b44
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x506083
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x506027
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd8d4
push dword [ebp - 8]
push 0x5060a0
mov eax, dword [0x539358]
mov eax, dword [eax + 0x18]
push dword [eax + 0x20]
lea eax, [ebx + 8]
mov edx, 3
call fcn.00407198
mov eax, dword [ebx + 8]
call fcn.00413b80
test al, al
jne 0x505bb6
mov edx, dword [ebx + 8]
mov eax, dword [0x539358]
call fcn.005114c8
push dword [ebx + 8]
push 0x5060a0
push 0x5060b0
lea eax, [ebx + 4]
mov edx, 3
call fcn.00407198
push 1
lea edx, [ebp - 0xc]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 4]
mov eax, dword [0x539358]
call fcn.0050ef8c
mov eax, dword [ebp - 4]
call fcn.00408404
test eax, eax
jle 0x505d3d
mov eax, dword [ebp - 4]
call fcn.00408404
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 - 4]
lea ecx, [ebp - 0x10]
mov eax, dword [0x539358]
call fcn.0050ed8c
push dword [ebp - 0x10]
push 0x5060a0
push 0x5060d4
lea eax, [ebx + 0x14]
mov edx, 3
call fcn.00407198
mov eax, dword [ebp - 4]
call fcn.00408404
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 - 4]
lea ecx, [ebp - 0x14]
mov eax, dword [0x539358]
call fcn.0050ed8c
push dword [ebp - 0x14]
push 0x5060a0
push 0x5060f4
push 0x5060a0
push 0x506114
lea eax, [ebx + 0x1c]
mov edx, 5
call fcn.00407198
mov eax, dword [ebp - 4]
call fcn.00408404
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 - 4]
lea ecx, [ebp - 0x18]
mov eax, dword [0x539358]
call fcn.0050ed8c
push dword [ebp - 0x18]
push 0x5060a0
push 0x506144
push 0x5060a0
push 0x50615c
lea eax, [ebx + 0x20]
mov edx, 5
call fcn.00407198
mov eax, dword [ebp - 4]
call fcn.00408404
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 - 4]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x539358]
call fcn.0050ed8c
push dword [ebp - 0x1c]
push 0x5060a0
push 0x506184
push 0x5060a0
push 0x5061a8
lea eax, [ebx + 0x24]
mov edx, 5
call fcn.00407198
mov eax, dword [ebp - 4]
call fcn.00408404
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 - 4]
lea ecx, [ebp - 0x20]
mov eax, dword [0x539358]
call fcn.0050ed8c
push dword [ebp - 0x20]
push 0x5060a0
push 0x506184
push 0x5060a0
push 0x5061e4
lea eax, [ebx + 0x28]
mov edx, 5
call fcn.00407198
jmp 0x505e37
lea edx, [ebp - 0x24]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
push dword [ebp - 0x24]
push 0x5060a0
push 0x5060d4
lea eax, [ebx + 0x14]
mov edx, 3
call fcn.00407198
lea edx, [ebp - 0x28]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
push dword [ebp - 0x28]
push 0x5060a0
push 0x5060f4
push 0x5060a0
push 0x506114
lea eax, [ebx + 0x1c]
mov edx, 5
call fcn.00407198
lea edx, [ebp - 0x2c]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
push dword [ebp - 0x2c]
push 0x5060a0
push 0x506144
push 0x5060a0
push 0x50615c
lea eax, [ebx + 0x20]
mov edx, 5
call fcn.00407198
lea edx, [ebp - 0x30]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
push dword [ebp - 0x30]
push 0x5060a0
push 0x506184
push 0x5060a0
push 0x5061a8
lea eax, [ebx + 0x24]
mov edx, 5
call fcn.00407198
lea edx, [ebp - 0x34]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
push dword [ebp - 0x34]
push 0x5060a0
push 0x506184
push 0x5060a0
push 0x5061e4
lea eax, [ebx + 0x28]
mov edx, 5
call fcn.00407198
lea edx, [ebp - 0x38]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
push dword [ebp - 0x38]
push 0x5060a0
push 0x506220
lea eax, [ebx + 0x18]
mov edx, 3
call fcn.00407198
lea edx, [ebp - 0x3c]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
push dword [ebp - 0x3c]
push 0x5060a0
push 0x506240
lea eax, [ebx + 0x30]
mov edx, 3
call fcn.00407198
lea edx, [ebp - 0x40]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
push dword [ebp - 0x40]
push 0x5060a0
push 0x506264
lea eax, [ebx + 0x34]
mov edx, 3
call fcn.00407198
lea edx, [ebp - 0x44]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fe348
push dword [ebp - 0x44]
push 0x5060a0
push 0x50629c
lea eax, [ebx + 0x38]
mov edx, 3
call fcn.00407198
lea edx, [ebp - 0x48]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fdafc
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0xc]
mov ecx, 0x5062c8
call fcn.004070b4
lea edx, [ebp - 0x4c]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fdafc
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0x10]
mov ecx, 0x5062f0
call fcn.004070b4
lea edx, [ebp - 0x50]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x3c]
call fcn.00406bf8
lea edx, [ebp - 0x58]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fe348
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
mov eax, dword [0x539358]
call fcn.005112cc
push dword [ebp - 0x54]
push 0x5060a0
push 0x506318
lea eax, [ebx + 0x40]
mov edx, 3
call fcn.00407198
lea edx, [ebp - 0x5c]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd598
mov edx, dword [ebp - 0x5c]
lea eax, [ebx + 0x48]
call fcn.00406bf8
lea edx, [ebp - 0x60]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fdc94
push dword [ebp - 0x60]
push 0x5060a0
push 0x506358
lea eax, [ebx + 0x11c]
mov edx, 3
call fcn.00407198
lea eax, [ebx + 0x120]
mov edx, 0x50637c
call fcn.00406bf8
lea edx, [ebp - 0x64]
mov eax, dword [0x539358]
mov eax, dword [eax + 0x20]
call fcn.004fd250
push dword [ebp - 0x64]
push 0x5060a0
push 0x506398
push 0x5060a0
push 0x5063b4
push 0x5060a0
push 0x5063d0
lea eax, [ebx + 0x124]
mov edx, 7
call fcn.00407198
lea eax, [ebx + 0x128]
mov edx, 0x5063f4
call fcn.00406bf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50605a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50608a
lea eax, [ebp - 0x64]
mov edx, 0x18
call fcn.00406bf0
lea eax, [ebp - 4]
mov edx, dword [0x4de91c]
call fcn.004085d0
ret