Function at 0x4160d8
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4160e0
push ebx
xor eax, eax
push ebp
push 0x4164cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004027b0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004082f8
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [0x419a8c]
call fcn.004082f8
mov edx, dword [ebp - 0x10]
pop eax
call fcn.004040e8
je 0x416323
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.004027b0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004082f8
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x419a90]
call fcn.004082f8
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.004040e8
je 0x416323
mov eax, dword [0x419a8c]
call fcn.0040419c
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403f48
mov eax, dword [ebp - 0x20]
call fcn.00408654
cmp al, 1
jne 0x416231
lea edx, [ebp - 0x28]
mov eax, dword [0x419a8c]
call fcn.0040be8c
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00406684
lea edx, [ebp - 0x30]
mov eax, dword [0x419a90]
call fcn.0040be8c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00406684
push 0x4164d8
push 0
call fcn.00404e50
push 0
push 0
push 0x10
push eax
call fcn.00404ed8
push 0xa
call sub.user32.dll_EnumWindows
push 0x4164d8
push 0
call fcn.00404e50
push 0
push 0
push 0x10
push eax
call fcn.00404ed8
push 0x64
call sub.user32.dll_EnumWindows
mov eax, dword [0x419a8c]
call fcn.0040419c
mov edx, eax
lea eax, [ebp - 0x34]
call fcn.00403f48
mov eax, dword [ebp - 0x34]
call fcn.0040876c
mov eax, dword [0x419a90]
call fcn.0040419c
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00403f48
mov eax, dword [ebp - 0x38]
call fcn.0040876c
push 0x64
call sub.user32.dll_EnumWindows
push 0
mov eax, dword [0x419a8c]
call fcn.0040419c
push eax
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.004027b0
mov eax, dword [ebp - 0x3c]
call fcn.0040419c
push eax
call fcn.00404ca8
push 0
mov eax, dword [0x419a90]
call fcn.0040419c
push eax
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.004027b0
mov eax, dword [ebp - 0x40]
call fcn.0040419c
push eax
call fcn.00404ca8
push 0x64
call sub.user32.dll_EnumWindows
mov eax, dword [0x419a8c]
call fcn.0040419c
push eax
call fcn.00404d18
mov ebx, eax
or bl, 2
or bl, 1
or bl, 4
xor eax, eax
mov al, bl
push eax
mov eax, dword [0x419a8c]
call fcn.0040419c
push eax
call sub.user32.dll_DefWindowProcA
push 1
push 0
push 0x4164e8
lea edx, [ebp - 0x48]
xor eax, eax
call fcn.004027b0
push dword [ebp - 0x48]
push 0x4164e8
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.0040405c
mov eax, dword [ebp - 0x44]
call fcn.0040419c
push eax
push 0x4164e8
push dword [0x419a8c]
push 0x4164e8
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0040405c
mov eax, dword [ebp - 0x4c]
call fcn.0040419c
push eax
push 0x4164ec
call fcn.00404e70
push eax
call sub.shell32.dll_ShellExecuteA
call fcn.00403cac
jmp 0x416412
lea edx, [ebp - 0x50]
mov eax, 1
call fcn.004027b0
mov eax, dword [ebp - 0x50]
call fcn.00408654
cmp al, 1
jne 0x416382
cmp dword [0x41a308], 0xffffffff
jne 0x41635a
lea edx, [ebp - 0x54]
mov eax, 1
call fcn.004027b0
mov eax, dword [ebp - 0x54]
call fcn.0040876c
cmp dword [0x41a2d8], 0
je 0x416382
push 0x10
mov eax, dword [0x41a2d8]
call fcn.0040419c
push eax
mov eax, dword [0x41a2dc]
call fcn.0040419c
push eax
push 0
call fcn.00404ec8
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x412570
push 0
push 0
call fcn.00404cc0
test eax, eax
je 0x4163a2
push eax
call fcn.00404ca0
cmp dword [0x41a2f8], 0
je 0x416412
push 1
push 0
push 0x4164e8
lea edx, [ebp - 0x5c]
xor eax, eax
call fcn.004027b0
push dword [ebp - 0x5c]
push 0x4164e8
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.0040405c
mov eax, dword [ebp - 0x58]
call fcn.0040419c
push eax
push 0x4164e8
push dword [0x41a2f8]
push 0x4164e8
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.0040405c
mov eax, dword [ebp - 0x60]
call fcn.0040419c
push eax
push 0x4164ec
call fcn.00404e70
push eax
call sub.shell32.dll_ShellExecuteA
mov ecx, dword [0x41a2e0]
mov edx, dword [0x41a300]
mov eax, dword [0x41a2fc]
call fcn.00408e0c
mov eax, dword [0x418290]
mov byte [eax], 1
mov eax, dword [0x41828c]
mov byte [eax], 1
mov eax, dword [0x4182a8]
mov byte [eax], 1
mov eax, dword [0x4182a4]
mov byte [eax], 0
mov eax, dword [0x41827c]
mov byte [eax], 1
mov eax, dword [0x418280]
mov byte [eax], 1
mov eax, dword [0x418274]
mov byte [eax], 1
mov eax, dword [0x418284]
mov byte [eax], 0
mov eax, dword [0x418278]
mov byte [eax], 0
mov eax, dword [0x418294]
mov byte [eax], 0
mov eax, dword [0x4182b0]
mov byte [eax], 0
mov eax, dword [0x4182ac]
mov byte [eax], 0
mov eax, dword [0x418298]
mov byte [eax], 0
mov eax, dword [0x4182c4]
mov byte [eax], 0
mov eax, dword [0x4182bc]
mov byte [eax], 0
mov eax, dword [0x4182a0]
mov byte [eax], 0
mov eax, dword [0x41829c]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4164d2
lea eax, [ebp - 0x60]
mov edx, 0x17
call fcn.00403e3c
ret