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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x21
push 0
push 0
dec ecx
jne 0x4f6c38
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x4f795e
push dword fs:[eax]
mov dword fs:[eax], esp
sub dl, 1
jae 0x4f6dce
lea eax, [ebp - 0x30]
mov edx, dword [0x50a3b0]
mov edx, dword [edx]
mov edx, dword [edx + 4]
call fcn.00404df4
or esi, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, 0x4f7974
call fcn.00405338
mov ebx, eax
test ebx, ebx
jle 0x4f6c98
lea ecx, [ebx + 0x1c]
mov eax, 0x4f7974
mov edx, dword [ebp - 0x30]
call fcn.0043c4c8
mov esi, eax
test ebx, ebx
jle 0x4f6dce
test esi, esi
jle 0x4f6dce
sub esi, ebx
test esi, esi
jle 0x4f6dce
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0x30]
call fcn.00405254
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x4f799c
mov edx, 0x4f79a8
mov eax, dword [ebp - 0x30]
call fcn.0043c498
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x74]
push eax
mov ecx, 0x4f799c
mov edx, 0x4f79b8
mov eax, dword [ebp - 0x30]
call fcn.0043c498
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x78]
push eax
xor ecx, ecx
mov edx, 0x4f79c8
mov eax, dword [ebp - 0x30]
call fcn.0043c498
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x4f799c
mov edx, 0x4f79d4
mov eax, dword [ebp - 0x30]
call fcn.0043c498
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x4f79e4
mov edx, 0x4f79f0
mov eax, dword [ebp - 0x30]
call fcn.0043c498
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x84]
push eax
xor ecx, ecx
mov edx, 0x4f7a00
mov eax, dword [ebp - 0x30]
call fcn.0043c498
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x4f7a10
mov edx, 0x4f7a1c
mov eax, dword [ebp - 0x30]
call fcn.0043c498
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x30]
call fcn.00404df4
push 0
push 0
mov eax, dword [0x50a3b0]
mov eax, dword [eax]
call fcn.0041e4c0
mov eax, dword [0x50a3b0]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.004bbccc
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4f5e4c]
call fcn.004f62c8
mov dword [ebp - 0x44], eax
mov dl, 1
mov eax, dword [0x41908c]
call fcn.00403d28
mov dword [ebp - 0x50], eax
mov dl, 1
mov eax, dword [0x41908c]
call fcn.00403d28
mov dword [ebp - 0x54], eax
mov dl, 1
mov eax, dword [0x41908c]
call fcn.00403d28
mov dword [ebp - 0x48], eax
mov dl, 1
mov eax, dword [0x419390]
call fcn.00403d28
mov dword [ebp - 0x4c], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4bacf8]
call fcn.004baec0
mov dword [ebp - 0x60], eax
xor edx, edx
push ebp
push 0x4f7915
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
mov eax, dword [0x50a3b0]
mov eax, dword [eax]
call fcn.0041e4c0
mov edx, 0x4f7a2c
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [0x50a3b0]
mov edx, dword [edx]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f6ee5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, 0x4f7974
mov ecx, 0x1c
mov eax, dword [ebp - 4]
call fcn.004bb9d0
test al, al
je 0x4f6ee5
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jle 0x4f6ee5
mov dword [ebp - 0x6c], eax
mov esi, 1
lea ecx, [ebp - 4]
mov edx, esi
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 4], 0
je 0x4f6edf
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov ecx, dword [ebp - 0x8c]
mov edx, esi
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc esi
dec dword [ebp - 0x6c]
jne 0x4f6eab
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x44]
push 0
push 0
mov eax, dword [ebp - 0x4c]
call fcn.0041e4c0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push 0
lea eax, [ebp - 0x90]
push eax
mov ecx, 0x4f7a44
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x90]
mov eax, dword [0x50a578]
call fcn.00404db0
push 0
lea eax, [ebp - 0x94]
push eax
mov ecx, 0x4f7a6c
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x94]
mov eax, dword [0x50a578]
add eax, 4
call fcn.00404db0
push 0
lea eax, [ebp - 0x98]
push eax
mov ecx, 0x4f7a80
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x98]
mov eax, dword [0x50a578]
add eax, 8
call fcn.00404db0
push 0
lea eax, [ebp - 0x9c]
push eax
mov ecx, 0x4f7a94
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x9c]
mov eax, dword [0x50a578]
add eax, 0xc
call fcn.00404db0
push 0
lea eax, [ebp - 0xa0]
push eax
mov ecx, 0x4f7aa8
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0xa0]
mov eax, dword [0x50a578]
add eax, 0x10
call fcn.00404db0
push 0x4f7abc
lea eax, [ebp - 0xa4]
push eax
mov ecx, 0x4f7ad0
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0xa4]
mov eax, dword [0x50a578]
add eax, 0x18
call fcn.00404db0
push 0
lea eax, [ebp - 0xa8]
push eax
mov ecx, 0x4f7ae4
mov edx, 0x4f7af4
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0xa8]
mov eax, dword [0x50a578]
add eax, 0x14
call fcn.00404db0
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x4f7b08
mov edx, 0x4f7af4
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
push 1
mov ecx, 0x4f7b1c
mov edx, 0x4f7af4
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov byte [ebp - 0x59], al
push 0
mov ecx, 0x4f7b30
mov edx, 0x4f7af4
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x58], eax
push 0
mov ecx, 0x4f7b44
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [0x50a578]
mov byte [edx + 0x30], al
push 0
mov ecx, 0x4f7b5c
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [0x50a578]
mov byte [edx + 0x31], al
mov eax, dword [0x50a578]
mov byte [eax + 0x33], 1
push 0
mov ecx, 0x4f7b74
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [0x50a578]
mov byte [edx + 0x32], al
push 0
mov ecx, 0x4f7b88
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [0x50a578]
mov byte [edx + 0x38], al
mov eax, dword [0x50a578]
xor edx, edx
mov dword [eax + 0x34], edx
push 0
lea eax, [ebp - 0xac]
push eax
mov ecx, 0x4f7ba0
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0xac]
mov eax, dword [0x50a578]
add eax, 0x3d
call fcn.00404db0
push 1
mov ecx, 0x4f7bb4
mov edx, 0x4f7a58
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [0x50a578]
mov dword [edx + 0x41], eax
mov dl, 1
mov eax, dword [0x41908c]
call fcn.00403d28
mov dword [ebp - 0x68], eax
xor eax, eax
push ebp
push 0x4f72b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x68]
mov edx, 0x4f7bc8
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f7260
xor edx, edx
mov eax, 0x4f7be0
call fcn.0040a238
push 1
mov ecx, 0x4f7be0
mov dl, 1
mov eax, dword [0x4f5d94]
call fcn.004f5fe8
mov dword [ebp - 0x64], eax
xor eax, eax
push ebp
push 0x4f7259
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4f723b
inc eax
mov dword [ebp - 0x6c], eax
xor esi, esi
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb0]
mov edx, esi
mov eax, dword [ebp - 0x68]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0xb0]
mov edx, 0x4f7bc8
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x34], 0
je 0x4f7235
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb4]
mov edx, esi
mov eax, dword [ebp - 0x68]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0xb4]
mov edx, 0x4f7c04
mov eax, dword [ebp - 0x64]
mov ebx, dword [eax]
call dword [ebx + 4]
inc esi
dec dword [ebp - 0x6c]
jne 0x4f71e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7260
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
call dword [edx + 0x58]
mov eax, dword [ebp - 0x64]
call fcn.00403d58
ret
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
call dword [edx + 0x44]
mov ecx, dword [ebp - 0x68]
mov edx, 0x4f7c14
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f729d
xor edx, edx
mov eax, 0x4f7c2c
call fcn.0040a238
mov edx, 0x4f7c2c
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f72ba
mov eax, dword [ebp - 0x68]
call fcn.00403d58
ret