Function at 0x46de80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x46de92
add esp, 0xfffffff0
call fcn.00403b8c
mov word [ebp - 8], cx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call fcn.00404b48
xor eax, eax
push ebp
push 0x46e12c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x48], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 8]
mov byte [eax + 8], dl
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x46df5a
mov eax, dword [0x47d3b0]
cmp dword [eax + 0xe], 0
je 0x46e116
mov eax, dword [ebp + 0xc]
call fcn.00404b58
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00463d2c
cmp dword [ebp - 0x18], 0
je 0x46e116
push 6
push 1
push 2
call fcn.00463c80
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 1
jl 0x46e116
mov edx, 0x2710
mov eax, dword [ebp - 4]
call fcn.0046e154
mov word [ebp - 0x1c], 2
mov ax, word [ebp - 8]
push eax
call fcn.00463da8
mov word [ebp - 0x1a], ax
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call fcn.00463dcc
test eax, eax
je 0x46dfdc
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00463e7c
jmp 0x46e116
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46dff1
mov eax, dword [ebp - 4]
mov byte [eax + 0x48], 1
jmp 0x46e116
push 3
call fcn.0046209c
test al, al
je 0x46e116
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x4c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x5c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x64]
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [0x47d66c]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
call dword [eax + 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46e116
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x1c]
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x46e116
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x20]
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x46e116
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x24]
add esp, 8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0x28]
pop ecx
test eax, eax
jle 0x46e116
mov eax, dword [ebp - 4]
mov byte [eax + 0x48], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e133
lea eax, [ebp + 0xc]
call fcn.00404694
ret