Function at 0x40ac31
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.004012c0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40ae8c
push esi
call fcn.0040918a
cmp eax, 0x3f6
jae 0x40ae8c
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x48]
push eax
call fcn.00408ea7
movzx ecx, word [esi]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40ac88
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x40ac8b
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x40ace1
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40acb3
jmp 0x40aca3
cmp word [esi + eax*2], 0x22
je 0x40acac
inc eax
cmp word [esi + eax*2], bx
jne 0x40ac9c
jmp 0x40acb3
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40accd
cmp word [esi + eax*2 + 2], 0x2f
je 0x40accd
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40ac94
jmp 0x40ace1
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40acdb
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], ebx
jne 0x40acfb
cmp byte [ebp + 8], bl
jne 0x40acfb
cmp word [0x42e5d2], bx
je 0x40acfb
mov dword [ebp - 0x34], 0x42e5d2
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.0040702b
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ad27
push str..inf
push eax
call fcn.0040d37a
test eax, eax
jne 0x40ad27
mov dword [ebp - 0x3c], 0x40f6a0
push dword [ebp - 0x38]
call fcn.00403f12
mov bl, al
test bl, bl
je 0x40ad4d
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.00406b6a
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
cmp byte [ebp + 8], 0
mov edi, str..exe
je 0x40ad8c
test bl, bl
jne 0x40ad8c
push dword [ebp - 0x38]
lea eax, [ebp - 0x848]
push eax
call fcn.004091b4
push edi
lea eax, [ebp - 0x848]
push eax
call fcn.00409226
lea eax, [ebp - 0x848]
push eax
call fcn.00403f12
test al, al
je 0x40ae8b
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40ae8b
cmp byte [0x42ddc8], 0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], 0
mov esi, 0x3e8
jne 0x40adc5
cmp byte [ebp + 8], 0
jne 0x40adc5
cmp byte [0x42dda9], 0
je 0x40ae29
mov eax, dword [0x42dd90]
test eax, eax
je 0x40ade7
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40ade7
push 0
push dword [0x42dd90]
call ebx
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.0040a56d
cmp byte [0x42dda9], 0
je 0x40ae29
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40ae29
mov eax, dword [ebp - 0xc]
add eax, esi
cmp eax, dword [0x42ddac]
jbe 0x40ae29
mov dword [0x42ddac], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x40ae45
push edi
push dword [ebp - 8]
call fcn.0040d37a
test eax, eax
je 0x40ae75
cmp byte [0x42ddc8], 0
je 0x40ae60
cmp byte [ebp + 8], 0
jne 0x40ae60
mov dword [0x42ddb0], 0x1b58
jmp 0x40ae75
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, esi
mov dword [0x42ddb0], eax
cmp byte [ebp - 1], 0
je 0x40ae8b
cmp byte [ebp + 8], 0
je 0x40ae8b
push 1
push dword [0x42dd90]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4