Function at 0x4a6980
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cd9f3
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x806f14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [edx]
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
mov eax, dword [ecx + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
cmp byte [eax + 0xd], 0
mov dword [ebp - 0x18], edi
jne 0x4a6a90
mov esi, eax
nop dword [eax]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
mov dword [ebp - 0x1c], esi
jb 0x4a69ed
mov ecx, dword [ebx]
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x4a69f9
mov eax, dword [esi + 0x10]
push dword [ebx + 0x10]
push ecx
push dword [esi + 0x20]
push eax
call fcn.0049e980
add esp, 0x10
test eax, eax
js 0x4a6a73
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x4a6a17
mov ecx, dword [ebx]
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x4a6a23
mov eax, dword [esi + 0x10]
push dword [ebx + 0x10]
push ecx
push dword [esi + 0x20]
push eax
call fcn.0049e980
add esp, 0x10
test eax, eax
jne 0x4a6a63
cmp dword [ebx + 0x2c], 0x10
lea edx, [ebx + 0x18]
jb 0x4a6a43
mov edx, dword [ebx + 0x18]
cmp dword [esi + 0x3c], 0x10
lea ecx, [esi + 0x28]
jb 0x4a6a4f
mov ecx, dword [esi + 0x28]
push dword [ebx + 0x28]
push edx
push dword [esi + 0x38]
push ecx
call fcn.0049e980
add esp, 0x10
test eax, eax
js 0x4a6a73
mov edi, esi
mov dword [ebp - 0x10], 1
mov esi, dword [esi]
mov dword [ebp - 0x18], edi
jmp 0x4a6a80
mov esi, dword [esi + 8]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
cmp byte [esi + 0xd], 0
je 0x4a69e0
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
cmp byte [edi + 0xd], 0
jne 0x4a6ac1
lea ecx, [edi + 0x10]
push ecx
push ebx
mov ecx, edx
call fcn.004a05a0
test al, al
jne 0x4a6ac1
mov byte [esi + 4], al
mov eax, esi
mov dword [esi], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0x1e1e1e1
je 0x4a6b8c
mov dword [ebp - 0x2c], eax
push 0x88
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
call fcn.0066c51d
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
lea esi, [edi + 0x10]
mov dword [ebp - 4], 1
push ebx
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0048d880
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.0048d880
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x30]
call fcn.0048d880
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
mov dword [esi + 0x58], 0
push dword [ebp - 0x1c]
mov dword [esi + 0x5c], 0xf
mov byte [esi + 0x48], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0xf
mov byte [esi + 0x60], 0
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
call fcn.004a07a0
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004a09b0
int3