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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.0041a210
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40e3b7
push esi
call fcn.00419f06
pop ecx
cmp eax, 0x7f6
jae 0x40e3b7
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00419f70
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40e1b2
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x40e1b5
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x40e20b
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40e1dd
jmp 0x40e1cd
cmp word [esi + eax*2], 0x22
je 0x40e1d6
inc eax
cmp word [esi + eax*2], bx
jne 0x40e1c6
jmp 0x40e1dd
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40e1f7
cmp word [esi + eax*2 + 2], 0x2f
je 0x40e1f7
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40e1be
jmp 0x40e20b
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40e205
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], ebx
jne 0x40e225
cmp byte [ebp + 0xc], bl
jne 0x40e225
cmp word [0x43ea32], bx
je 0x40e225
mov dword [ebp - 0x34], 0x43ea32
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.0040a336
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e251
push str..inf
push eax
call fcn.00411589
test eax, eax
jne 0x40e251
mov dword [ebp - 0x3c], 0x4278fc
push dword [ebp - 0x38]
call fcn.00409276
mov bl, al
test bl, bl
je 0x40e27c
push 0x800
lea eax, [ebp - 0x2048]
push eax
push dword [ebp - 0x38]
call fcn.0040a7e7
lea eax, [ebp - 0x2048]
mov dword [ebp - 0x38], eax
cmp byte [ebp + 0xc], 0
mov edi, 0x4278f0
je 0x40e2be
test bl, bl
jne 0x40e2be
push dword [ebp - 0x38]
lea eax, [ebp - 0x1048]
push eax
call fcn.00419f4e
lea eax, [ebp - 0x1048]
push edi
push eax
call fcn.00419f20
add esp, 0x10
lea eax, [ebp - 0x1048]
push eax
call fcn.00409276
test al, al
je 0x40e3b6
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e3b6
cmp byte [0x43da28], 0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], 0
mov ebx, 0x3e8
jne 0x40e2f7
cmp byte [ebp + 0xc], 0
jne 0x40e2f7
cmp byte [0x43da11], 0
je 0x40e357
cmp dword [ebp + 8], 0
je 0x40e315
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e315
push 0
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.0040d548
cmp byte [0x43da11], 0
je 0x40e357
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e357
mov eax, dword [ebp - 0xc]
add eax, ebx
cmp eax, dword [0x43da14]
jbe 0x40e357
mov dword [0x43da14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x40e373
push edi
push dword [ebp - 8]
call fcn.00411589
test eax, eax
je 0x40e3a3
cmp byte [0x43da28], 0
je 0x40e38e
cmp byte [ebp + 0xc], 0
jne 0x40e38e
mov dword [0x43da18], 0x1b58
jmp 0x40e3a3
xor eax, eax
cmp byte [ebp + 0xc], al
sete al
dec eax
and eax, 0xfffffce0
add eax, ebx
mov dword [0x43da18], eax
cmp byte [ebp - 1], 0
je 0x40e3b6
cmp byte [ebp + 0xc], 0
je 0x40e3b6
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8