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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5f138b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebx + 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x30]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0xc]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0xe]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x10]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x12]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x14]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x18]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x1c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x20]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x5f1246
sub eax, 4
mov eax, dword [eax]
mov word [ebp - 0xa], ax
lea edx, [ebp - 0xa]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5f126e
sub eax, 4
mov eax, dword [eax]
mov word [ebp - 6], ax
lea edx, [ebp - 6]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x5f128d
sub eax, 4
mov eax, dword [eax]
mov word [ebp - 8], ax
lea edx, [ebp - 8]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x32]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x34]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x38]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebx + 0x3c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
cmp word [ebp - 0xa], 0
jbe 0x5f1328
mov eax, ebx
call fcn.005f07f0
test al, al
je 0x5f1300
call fcn.00432474
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x24]
call fcn.00431838
jmp 0x5f1310
call fcn.00430d64
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x24]
call fcn.00431838
mov eax, dword [ebp - 4]
test eax, eax
je 0x5f131c
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004b3134
cmp word [ebp - 6], 0
jbe 0x5f1340
movzx ecx, word [ebp - 6]
mov eax, dword [ebx + 0x28]
mov edx, dword [eax + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
cmp word [ebp - 8], 0
jbe 0x5f136f
call fcn.00430d64
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x40]
call fcn.00431838
mov eax, dword [ebp - 4]
test eax, eax
je 0x5f1363
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004b3134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1392
lea eax, [ebp - 4]
mov edx, dword [0x404afc]
call fcn.0040c7a0
ret