Function at 0x4ec84c
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 0x4ec854
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x4ed562
push dword fs:[eax]
mov dword fs:[eax], esp
sub dl, 1
jae 0x4ec9ea
lea eax, [ebp - 0x30]
mov edx, dword [0x4ffa1c]
mov edx, dword [edx]
mov edx, dword [edx + 4]
call fcn.00404df4
or esi, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, 0x4ed578
call fcn.00405338
mov ebx, eax
test ebx, ebx
jle 0x4ec8b4
lea ecx, [ebx + 0x1c]
mov eax, 0x4ed578
mov edx, dword [ebp - 0x30]
call fcn.0043b55c
mov esi, eax
test ebx, ebx
jle 0x4ec9ea
test esi, esi
jle 0x4ec9ea
sub esi, ebx
test esi, esi
jle 0x4ec9ea
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, 0x4ed5a0
mov edx, 0x4ed5ac
mov eax, dword [ebp - 0x30]
call fcn.0043b52c
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x74]
push eax
mov ecx, 0x4ed5a0
mov edx, 0x4ed5bc
mov eax, dword [ebp - 0x30]
call fcn.0043b52c
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x78]
push eax
xor ecx, ecx
mov edx, 0x4ed5cc
mov eax, dword [ebp - 0x30]
call fcn.0043b52c
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x4ed5a0
mov edx, 0x4ed5d8
mov eax, dword [ebp - 0x30]
call fcn.0043b52c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x4ed5e8
mov edx, 0x4ed5f4
mov eax, dword [ebp - 0x30]
call fcn.0043b52c
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x84]
push eax
xor ecx, ecx
mov edx, 0x4ed604
mov eax, dword [ebp - 0x30]
call fcn.0043b52c
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x30]
call fcn.00404df4
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x4ed614
mov edx, 0x4ed620
mov eax, dword [ebp - 0x30]
call fcn.0043b52c
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x30]
call fcn.00404df4
push 0
push 0
mov eax, dword [0x4ffa1c]
mov eax, dword [eax]
call fcn.0041e554
mov eax, dword [0x4ffa1c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.00495600
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4eba68]
call fcn.004ebee4
mov dword [ebp - 0x44], eax
mov dl, 1
mov eax, dword [0x419120]
call fcn.00403d28
mov dword [ebp - 0x50], eax
mov dl, 1
mov eax, dword [0x419120]
call fcn.00403d28
mov dword [ebp - 0x54], eax
mov dl, 1
mov eax, dword [0x419120]
call fcn.00403d28
mov dword [ebp - 0x48], eax
mov dl, 1
mov eax, dword [0x419424]
call fcn.00403d28
mov dword [ebp - 0x4c], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x497158]
call fcn.00497320
mov dword [ebp - 0x60], eax
xor edx, edx
push ebp
push 0x4ed519
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
mov eax, dword [0x4ffa1c]
mov eax, dword [eax]
call fcn.0041e554
mov edx, 0x4ed630
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [0x4ffa1c]
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 0x4ecb01
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, 0x4ed578
mov ecx, 0x1c
mov eax, dword [ebp - 4]
call fcn.00495304
test al, al
je 0x4ecb01
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jle 0x4ecb01
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 0x4ecafb
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 0x4ecac7
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.0041e554
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, 0x4ed648
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x90]
mov eax, dword [0x4ffbe4]
call fcn.00404db0
push 0
lea eax, [ebp - 0x94]
push eax
mov ecx, 0x4ed670
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x94]
mov eax, dword [0x4ffbe4]
add eax, 4
call fcn.00404db0
push 0
lea eax, [ebp - 0x98]
push eax
mov ecx, 0x4ed684
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x98]
mov eax, dword [0x4ffbe4]
add eax, 8
call fcn.00404db0
push 0
lea eax, [ebp - 0x9c]
push eax
mov ecx, 0x4ed698
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x9c]
mov eax, dword [0x4ffbe4]
add eax, 0xc
call fcn.00404db0
push 0
lea eax, [ebp - 0xa0]
push eax
mov ecx, 0x4ed6ac
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0xa0]
mov eax, dword [0x4ffbe4]
add eax, 0x10
call fcn.00404db0
push 0x4ed6c0
lea eax, [ebp - 0xa4]
push eax
mov ecx, 0x4ed6d4
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0xa4]
mov eax, dword [0x4ffbe4]
add eax, 0x18
call fcn.00404db0
push 0x4ed6e8
lea eax, [ebp - 0xa8]
push eax
mov ecx, 0x4ed6fc
mov edx, 0x4ed70c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0xa8]
mov eax, dword [0x4ffbe4]
add eax, 0x14
call fcn.00404db0
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x4ed720
mov edx, 0x4ed70c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
push 0
mov ecx, 0x4ed734
mov edx, 0x4ed70c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov byte [ebp - 0x59], al
push 0
mov ecx, 0x4ed748
mov edx, 0x4ed70c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x58], eax
push 0
mov ecx, 0x4ed75c
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [0x4ffbe4]
mov byte [edx + 0x30], al
push 0
mov ecx, 0x4ed774
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [0x4ffbe4]
mov byte [edx + 0x31], al
mov eax, dword [0x4ffbe4]
mov byte [eax + 0x33], 1
push 0
mov ecx, 0x4ed78c
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [0x4ffbe4]
mov byte [edx + 0x32], al
push 0
mov ecx, 0x4ed7a0
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [0x4ffbe4]
mov byte [edx + 0x38], al
mov eax, dword [0x4ffbe4]
xor edx, edx
mov dword [eax + 0x34], edx
push 0
lea eax, [ebp - 0xac]
push eax
mov ecx, 0x4ed7b8
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0xac]
mov eax, dword [0x4ffbe4]
add eax, 0x3d
call fcn.00404db0
push 1
mov ecx, 0x4ed7cc
mov edx, 0x4ed65c
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [0x4ffbe4]
mov dword [edx + 0x41], eax
mov dl, 1
mov eax, dword [0x419120]
call fcn.00403d28
mov dword [ebp - 0x68], eax
xor eax, eax
push ebp
push 0x4eceb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x68]
mov edx, 0x4ed7e0
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 0x4ece7f
xor edx, edx
mov eax, 0x4ed7f8
call fcn.0040a2b4
push 1
mov ecx, 0x4ed7f8
mov dl, 1
mov eax, dword [0x4eb9b0]
call fcn.004ebc04
mov dword [ebp - 0x64], eax
xor eax, eax
push ebp
push 0x4ece78
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 0x4ece5a
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, 0x4ed7e0
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x34], 0
je 0x4ece54
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, 0x4ed81c
mov eax, dword [ebp - 0x64]
mov ebx, dword [eax]
call dword [ebx + 4]
inc esi
dec dword [ebp - 0x6c]
jne 0x4ecdff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ece7f
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, 0x4ed82c
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
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecebe
mov eax, dword [ebp - 0x68]
call fcn.00403d58
ret