Function at 0x4ac5e8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4ac5f1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
lea esi, [ebp - 0x80]
xor eax, eax
push ebp
push 0x4aca00
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x14]
test byte [eax + 0x18], 1
setne bl
test bl, bl
je 0x4ac720
mov eax, dword [ebp - 0x3c]
call fcn.00401440
test eax, eax
jle 0x4ac667
mov eax, dword [ebp - 0x3c]
call fcn.00401440
mov edx, eax
add edx, edx
lea eax, [ebp - 0x20]
xor ecx, ecx
call fcn.00401348
mov eax, dword [ebp - 0x20]
call fcn.004012f8
push eax
lea eax, [ebp - 0x20]
call fcn.00401338
mov edx, eax
mov eax, dword [ebp - 0x3c]
pop ecx
call fcn.00401038
mov eax, dword [ebp - 0x40]
call fcn.00401440
test eax, eax
jle 0x4ac6a5
mov eax, dword [ebp - 0x40]
call fcn.00401440
mov edx, eax
add edx, edx
lea eax, [ebp - 0x30]
xor ecx, ecx
call fcn.00401348
mov eax, dword [ebp - 0x30]
call fcn.004012f8
push eax
lea eax, [ebp - 0x30]
call fcn.00401338
mov edx, eax
mov eax, dword [ebp - 0x40]
pop ecx
call fcn.00401038
mov eax, edi
call fcn.00401440
test eax, eax
jle 0x4ac6e0
mov eax, edi
call fcn.00401440
mov edx, eax
add edx, edx
lea eax, [ebp - 0x34]
xor ecx, ecx
call fcn.00401348
mov eax, dword [ebp - 0x34]
call fcn.004012f8
push eax
lea eax, [ebp - 0x34]
call fcn.00401338
mov edx, eax
mov eax, edi
pop ecx
call fcn.00401038
mov eax, dword [ebp + 0x18]
call fcn.00401440
test eax, eax
jle 0x4ac765
mov eax, dword [ebp + 0x18]
call fcn.00401440
mov edx, eax
add edx, edx
lea eax, [ebp - 0x18]
xor ecx, ecx
call fcn.00401348
mov eax, dword [ebp - 0x18]
call fcn.004012f8
push eax
lea eax, [ebp - 0x18]
call fcn.00401338
mov edx, eax
mov eax, dword [ebp + 0x18]
pop ecx
call fcn.00401038
jmp 0x4ac765
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov ecx, 0
call fcn.00401420
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x40]
mov ecx, 0
call fcn.00401420
lea eax, [ebp - 0x34]
push eax
xor ecx, ecx
mov edx, 1
mov eax, edi
call fcn.004a2368
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, 1
mov eax, dword [ebp + 0x18]
call fcn.004a2368
lea edx, [ebp - 0x38]
mov eax, edi
call fcn.00402620
mov eax, dword [ebp - 0x38]
call fcn.00401440
mov edx, eax
add edx, edx
lea eax, [ebp - 0x1c]
xor ecx, ecx
call fcn.00401348
mov eax, dword [ebp - 0x1c]
call fcn.004012f8
push eax
lea eax, [ebp - 0x1c]
call fcn.00401338
mov edx, eax
mov eax, dword [ebp - 0x38]
pop ecx
call fcn.00401038
mov eax, esi
xor ecx, ecx
mov edx, 0x40
call fcn.004010c0
mov edx, esi
mov eax, 0x4aca10
mov ecx, 8
call fcn.00401038
mov dword [esi + 8], 3
mov eax, dword [ebp - 0x20]
call fcn.004012f8
mov edi, eax
mov word [esi + 0x1c], di
mov word [esi + 0x1e], di
mov dword [esi + 0x20], 0x40
mov eax, dword [ebp - 0x34]
call fcn.004012f8
mov edi, eax
mov word [esi + 0x24], di
mov word [esi + 0x26], di
movzx eax, word [esi + 0x1c]
add eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x30]
call fcn.004012f8
mov edi, eax
mov word [esi + 0x2c], di
mov word [esi + 0x2e], di
movzx eax, word [esi + 0x24]
add eax, dword [esi + 0x28]
mov dword [esi + 0x30], eax
test bl, bl
je 0x4ac825
mov dword [esi + 0x3c], 1
jmp 0x4ac82c
mov dword [esi + 0x3c], 2
mov eax, dword [esi + 0x3c]
or eax, 4
or eax, 0x200
or eax, 0x8000
mov dword [esi + 0x3c], eax
cmp dword [ebp + 0xc], 0
jne 0x4ac882
lea eax, [ebp - 0x84]
mov edx, dword [ebp + 0x18]
mov ecx, 0
call fcn.00401420
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 0x14]
add edx, 0x10
call fcn.004ab8bc
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp + 0x14]
add edx, 0x10
mov eax, dword [ebp - 0x18]
call fcn.004aba8c
jmp 0x4ac91e
mov eax, dword [ebp + 0xc]
dec eax
sub eax, 2
jae 0x4ac905
mov eax, dword [ebp + 0x14]
test byte [eax + 0x1a], 8
je 0x4ac8b8
or dword [esi + 0x3c], 0x80000
push ebp
lea eax, [ebp - 0x2c]
call fcn.00401288
push eax
lea eax, [ebp - 0x28]
call fcn.00401288
xor ecx, ecx
pop edx
call fcn.004ac044
pop ecx
jmp 0x4ac91e
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp + 0x14]
add edx, 0x10
mov eax, dword [ebp - 0x18]
call fcn.004aba8c
cmp dword [ebp + 0xc], 2
jne 0x4ac8dc
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
call fcn.004012a0
jmp 0x4ac91e
lea eax, [ebp - 0x88]
mov edx, dword [ebp + 0x18]
mov ecx, 0
call fcn.00401420
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 0x14]
add edx, 0x10
call fcn.004ab8bc
jmp 0x4ac91e
push ebp
lea eax, [ebp - 0x2c]
call fcn.00401288
push eax
lea eax, [ebp - 0x28]
call fcn.00401288
pop edx
call fcn.004ac370
pop ecx
mov eax, dword [ebp - 0x28]
call fcn.004012f8
mov ebx, eax
mov word [esi + 0xc], bx
mov word [esi + 0xe], bx
movzx eax, word [esi + 0x2c]
add eax, dword [esi + 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x2c]
call fcn.004012f8
mov ebx, eax
mov word [esi + 0x14], bx
mov word [esi + 0x16], bx
movzx eax, word [esi + 0xc]
add eax, dword [esi + 0x10]
mov dword [esi + 0x18], eax
mov word [esi + 0x34], 0
mov word [esi + 0x36], 0
movzx eax, word [esi + 0x14]
add eax, dword [esi + 0x18]
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x40
call fcn.00401348
mov edx, dword [ebp - 0x24]
mov eax, esi
mov ecx, 0x40
call fcn.00401038
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00401318
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x24]
call fcn.004a96d0
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp + 8]
call fcn.00401418
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aca07
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.00401290
lea eax, [ebp - 0x38]
call fcn.004013c0
lea eax, [ebp - 0x34]
mov edx, 8
call fcn.00401290
lea eax, [ebp - 4]
call fcn.00401288
ret