Function at 0x406160
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x473e11
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebp
push esi
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
lea ecx, [esp + 0x20]
call fcn.00468b50
push 0x4827e4
xor ebp, ebp
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0xf0], ebp
call fcn.00468d90
mov ecx, eax
call fcn.00468d90
lea edi, [esp + 0x8c]
call fcn.0041df80
lea esi, [esp + 0x7c]
mov byte [esp + 0xe8], 1
call fcn.00402850
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x100], 2
call fcn.0046e160
mov ecx, esi
call fcn.0046cf20
mov ecx, edi
mov byte [esp + 0xe8], 5
call fcn.0046cf20
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x30]
call fcn.00468670
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
call fcn.0046e160
mov byte [esp + 0xe8], 6
mov ecx, dword [0x4ad80c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x6a
push ecx
call edi
mov esi, eax
cmp esi, ebp
je 0x40626f
mov edx, dword [0x4ad80c]
push ebp
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
cmp eax, ebp
je 0x406267
push 3
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebp
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x38
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.00449450
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0x3c
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call fcn.0046cee0
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x4827f0
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], 5
mov dword [esp + 0x64], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [esp + 0x78]
push 0x7530
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4ad80c]
push 0x6a
push ecx
call edi
mov esi, eax
cmp esi, ebp
je 0x40631b
mov edx, dword [0x4ad80c]
push ebp
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
cmp eax, ebp
je 0x406312
push ebp
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x4829b8
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406348
cmp dx, bp
je 0x406344
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406348
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x406322
xor eax, eax
jmp 0x40634d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x4063f9
test byte [0x4b17c4], 1
jne 0x406387
or dword [0x4b17c4], 1
push ebp
mov ecx, 0x4b179c
call fcn.00469670
mov ecx, 0x4b17b4
call fcn.0046d5d0
push 0x479800
call fcn.00446492
add esp, 4
push str.version
push ebx
push 0x4b179c
call fcn.0041aeb0
push 0x3e
mov esi, eax
lea eax, [esp + 0xa2]
push ebp
push eax
mov word [esp + 0xa8], bp
call fcn.00449450
lea ecx, [esp + 0xa8]
add esp, 0xc
push ecx
call fcn.00416c10
add esp, 4
test eax, eax
jle 0x4063da
lea edx, [esp + 0x9c]
mov ecx, esi
call fcn.0041eb80
test eax, eax
je 0x40643b
lea ecx, [esp + 0x10]
call fcn.0046cf20
lea ecx, [esp + 0x30]
call fcn.0046cf20
lea ecx, [esp + 0x20]
call fcn.00468790
xor al, al
jmp 0x406462
test byte [0x4b17c4], 1
jne 0x40642b
or dword [0x4b17c4], 1
push ebp
mov ecx, 0x4b179c
call fcn.00469670
mov ecx, 0x4b17b4
call fcn.0046d5d0
push 0x479800
call fcn.00446492
add esp, 4
mov ecx, ebx
mov eax, 0x4b179c
call fcn.0041aa20
test al, al
jmp 0x4063d8
push ebp
lea ecx, [esp + 0x14]
call fcn.0046ece0
lea ecx, [esp + 0x10]
call fcn.0046cf20
lea ecx, [esp + 0x30]
call fcn.0046cf20
lea ecx, [esp + 0x20]
call fcn.00468790
mov al, 1
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00445c6a
add esp, 0xdc
ret