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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5f1174
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
lea edx, [eax + 8]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x30]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0xc]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0xe]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x10]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x12]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x14]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x1c]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x20]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x22]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x1e]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x20]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x32]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x34]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x38]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x3c]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp word [ebp - 0x22], 0
jbe 0x5f1059
movzx eax, word [ebp - 0x22]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x2c
mov ecx, 1
mov edx, dword [0x404afc]
call fcn.0040c67c
add esp, 4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5f0ef9
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
add edx, 0x2c
mov ecx, eax
mov eax, dword [ebp - 0x1c]
call fcn.004b3124
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
call fcn.005d8704
sub al, 1
jb 0x5f0f27
je 0x5f0f8d
dec al
je 0x5f0ff3
jmp 0x5f1075
xor eax, eax
push ebp
push 0x5f0f86
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00430da4
mov esi, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x5f0f51
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.004322ac
mov eax, dword [ebp - 0x18]
add eax, 0x24
mov edx, dword [ebp - 8]
call fcn.0040a79c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1075
lea eax, [ebp - 8]
call fcn.0040a3bc
ret
xor eax, eax
push ebp
push 0x5f0fec
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00430d64
mov esi, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x5f0fb7
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.004322ac
mov eax, dword [ebp - 0x18]
add eax, 0x24
mov edx, dword [ebp - 0xc]
call fcn.0040a79c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1075
lea eax, [ebp - 0xc]
call fcn.0040a3bc
ret
xor eax, eax
push ebp
push 0x5f1052
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00432474
mov esi, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x5f101d
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.004322ac
mov eax, dword [ebp - 0x18]
add eax, 0x24
mov edx, dword [ebp - 0x10]
call fcn.0040a79c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1075
lea eax, [ebp - 0x10]
call fcn.0040a3bc
ret
mov eax, dword [ebp - 0x18]
add eax, 0x24
call fcn.0040a3bc
mov eax, dword [ebp - 0x18]
add eax, 0x2c
mov edx, dword [0x404afc]
call fcn.0040c7a0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
movzx ecx, word [ebp - 0x1e]
mov edx, dword [ebp - 0x1c]
call fcn.005e7b24
cmp word [ebp - 0x20], 0
jbe 0x5f1123
movzx eax, word [ebp - 0x20]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404afc]
call fcn.0040c67c
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x5f10b9
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 4]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
call fcn.004b3124
xor eax, eax
push ebp
push 0x5f111c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00430d64
mov esi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x5f10e7
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004322ac
mov eax, dword [ebp - 0x18]
add eax, 0x40
mov edx, dword [ebp - 0x14]
call fcn.0040a79c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f112e
lea eax, [ebp - 0x14]
call fcn.0040a3bc
ret
mov eax, dword [ebp - 0x18]
add eax, 0x40
call fcn.0040a3bc
mov eax, dword [ebp - 0x18]
call fcn.005f0818
test al, al
jne 0x5f114b
mov dl, 1
mov eax, dword [0x5da180]
call fcn.005dbcd0
call fcn.00409a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f117b
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040a41c
lea eax, [ebp - 4]
mov edx, dword [0x404afc]
call fcn.0040c7a0
ret