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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4acecd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ad56d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x10], 0
sete byte [ebp - 0x4d]
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x24]
call fcn.0045de48
mov eax, dword [ebp - 0x14]
call fcn.0040464c
test eax, eax
jne 0x4acf1b
mov dword [ebp - 0xc], 0x1f0b
jmp 0x4ad545
mov dl, 1
mov eax, dword [0x459f78]
call fcn.0045a948
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x4ad4c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x3c]
mov byte [eax + 4], 0x30
mov dl, 1
mov eax, dword [ebp - 0x3c]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x3c]
call fcn.0045b0ac
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov byte [eax + 4], 0x30
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.0045b0ac
mov esi, eax
mov byte [esi + 4], 6
mov edx, dword [0x4f9acc]
mov eax, esi
call fcn.0045a35c
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.0045b0ac
mov esi, eax
mov byte [esi + 4], 0xa0
mov dl, 1
mov eax, esi
call fcn.0045b008
mov edx, eax
mov eax, esi
call fcn.0045b0ac
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov byte [eax + 4], 0x30
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.0045b0ac
mov edi, eax
mov byte [edi + 4], 0x30
xor edx, edx
mov eax, edi
call fcn.0045b008
mov edx, eax
mov eax, edi
call fcn.0045b0ac
mov esi, eax
mov byte [esi + 4], 6
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0045a35c
mov dl, 1
mov eax, edi
call fcn.0045b008
mov edx, eax
mov eax, edi
call fcn.0045b0ac
mov edi, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx + 0x2c]
mov edx, 8
call fcn.00457ab4
mov edx, dword [ebx + 0x1c]
mov ecx, edi
mov eax, dword [ebp - 0x1c]
call fcn.004aa234
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebx + 0x24]
mov eax, ebx
call fcn.004ac430
test al, al
jne 0x4ad04d
mov dword [ebp - 0xc], 0x1f0c
call fcn.00403da8
jmp 0x4ad545
cmp byte [ebp - 0x4d], 0
jne 0x4ad093
push 1
push 0x7101
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004abd08
push 2
push 0x7101
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004abd08
mov dl, 1
mov eax, dword [0x459f78]
call fcn.0045a948
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov byte [eax + 4], 0x30
xor edx, edx
mov eax, dword [ebp - 0x48]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0045b0ac
mov esi, eax
mov byte [esi + 4], 2
mov edx, 0x4ad588
mov eax, esi
call fcn.0045a35c
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0045b0ac
mov esi, eax
mov byte [esi + 4], 0x30
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.0045e070
mov eax, dword [ebp - 0x14]
call fcn.0040464c
test eax, eax
jne 0x4ad111
mov dword [ebp - 0xc], 0x1f0f
call fcn.00403da8
jmp 0x4ad545
lea eax, [ebp - 0x18]
xor edx, edx
call fcn.004049d8
cmp dword [ebp + 8], 4
jne 0x4ad1c8
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x38]
call fcn.004049d8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.004049d8
push 0
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004ae3b4
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x38]
call fcn.004049d8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.004049d8
lea eax, [ebp - 0x28]
call fcn.004048a4
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
call fcn.004048a4
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004ae3b4
test al, al
jne 0x4ad1b0
mov dword [ebp - 0xc], 0x1f0c
call fcn.00403da8
jmp 0x4ad545
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x38]
call fcn.004049d8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.004049d8
jmp 0x4ad22a
cmp dword [ebp + 8], 0
je 0x4ad1da
cmp dword [ebp + 8], 0xb
je 0x4ad1da
cmp dword [ebp + 8], 0xc
jne 0x4ad202
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.004049d8
cmp byte [ebp - 0x4d], 0
jne 0x4ad22a
lea eax, [ebp - 0x28]
call fcn.004048a4
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00402c84
jmp 0x4ad22a
cmp dword [ebp + 8], 6
jne 0x4ad219
mov dword [ebp - 0xc], 0x1f0f
call fcn.00403da8
jmp 0x4ad545
mov dword [ebp - 0xc], 0x1f0f
call fcn.00403da8
jmp 0x4ad545
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004a9904
xor edx, edx
mov eax, dword [ebp - 0x48]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0045b0ac
mov esi, eax
mov byte [esi + 4], 4
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x28]
call fcn.0045d358
mov edx, dword [ebp - 0x54]
mov eax, esi
call fcn.0045a35c
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0045b0ac
mov esi, eax
mov dl, 1
mov eax, dword [0x4998b8]
call fcn.00499918
mov dword [ebp - 0x4c], eax
xor eax, eax
push ebp
push 0x4ad469
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
mov eax, dword [ebp - 0x4c]
call fcn.00499a20
mov ecx, 0x4ad594
xor edx, edx
mov eax, dword [ebp - 0x4c]
call fcn.004999cc
xor edx, edx
mov eax, dword [ebp - 0x4c]
call fcn.004999f4
push eax
push 0x4ad5a8
lea eax, [ebp - 0x5c]
mov edi, dword [ebx + 0x30]
mov edx, edi
shr edx, 0x18
and edx, 0xff
call fcn.00404574
push dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov edx, edi
shr edx, 0x10
and edx, 0xff
call fcn.00404574
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
mov edx, edi
shr edx, 8
and edx, 0xff
call fcn.00404574
push dword [ebp - 0x64]
lea eax, [ebp - 0x68]
mov edx, edi
and edx, 0xff
call fcn.00404574
push dword [ebp - 0x68]
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.0040470c
mov edx, dword [ebp - 0x58]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov cl, 0x31
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.00499ad0
mov byte [esi + 4], 0xa0
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
call fcn.004049d8
lea ecx, [ebp - 0x34]
xor edx, edx
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
call fcn.004049d8
lea eax, [ebp - 0x28]
call fcn.004048a4
mov edx, eax
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x48]
call fcn.0040355c
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
call fcn.004049d8
mov eax, dword [ebp - 0x18]
call fcn.0040464c
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x4d], 0
jne 0x4ad3f7
lea eax, [ebp - 0x18]
call fcn.004048a4
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
call fcn.0040464c
push eax
lea eax, [ebp - 0x28]
call fcn.004048a4
mov edx, eax
mov eax, ebx
pop ecx
call fcn.004add10
test al, al
jne 0x4ad3f7
mov dword [ebp - 0xc], 0x1f0c
call fcn.00403da8
call fcn.00403da8
jmp 0x4ad545
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.004049d8
xor edx, edx
mov eax, dword [ebp - 0x44]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.0045b0ac
mov esi, eax
mov byte [esi + 4], 4
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x18]
call fcn.0045d358
mov edx, dword [ebp - 0x6c]
mov eax, esi
call fcn.0045a35c
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.0045b008
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.0045b0ac
mov esi, eax
mov cl, 0x31
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.00499ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad470
mov eax, dword [ebp - 0x4c]
call fcn.0040355c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad574
lea eax, [ebp - 0x6c]
mov edx, 7
call fcn.004043b0
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.004043b0
ret