Function at 0x40ceb0
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45c92b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor eax, eax
push 0x44
push eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00444db0
mov eax, 0x80000000
mov edx, 1
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0x44
mov word [esp + 0x74], dx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], 7
call fcn.00406fc0
mov dword [esp + 0x98], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x46bc58
push eax
call fcn.004066b0
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
add eax, 0xfffffff0
add esp, 0x10
cmp dword [eax + 0xc], 1
jle 0x40cf93
mov edx, dword [eax + 4]
push edx
lea ecx, [esp + 0x18]
call fcn.00406b50
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebx, 0xffffffff
add dword [eax + 0xc], ebx
jne 0x40cf9e
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
push edi
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
test edx, edx
jge 0x40cfdc
add edx, 1
mov dword [ecx], edx
jne 0x40cfdc
mov dword [ecx], 1
test eax, eax
jne 0x40d066
call fcn.0042f665
test eax, eax
je 0x40d03e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
je 0x40d03e
call fcn.0042f665
test eax, eax
je 0x40d00e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40d010
xor eax, eax
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40d03e
call fcn.0042f665
test eax, eax
je 0x40d032
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40d034
xor eax, eax
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x98], ebx
lea ecx, [esp + 0x14]
call fcn.00406ed0
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [ebp + 0x14], 0
je 0x40d0f2
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push 0x5ff
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x24]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, eax
cmp esi, 1
jne 0x40d0d7
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
call edi
test eax, eax
je 0x40d0d7
lea edx, [esp + 0x28]
push edx
call ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
call edi
test eax, eax
jne 0x40d0b2
test esi, esi
setne al
test al, al
jne 0x40d083
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
or ebx, 0xffffffff
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
call fcn.0042f665
test eax, eax
je 0x40d17f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
je 0x40d17f
call fcn.0042f665
test eax, eax
je 0x40d130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40d132
xor eax, eax
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40d17f
call fcn.0042f665
test eax, eax
je 0x40d154
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40d156
xor eax, eax
push 9
mov ecx, eax
call fcn.004302c1
call fcn.0042f665
test eax, eax
je 0x40d173
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x40d175
xor eax, eax
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x98], ebx
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret