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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.0040d7f0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x409a39
push esi
call fcn.0040d77a
pop ecx
cmp eax, 0x7f6
jae 0x409a39
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0040d700
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40982d
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x409830
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x409886
mov ecx, esi
cmp word [ecx], 0x22
jne 0x409858
jmp 0x409848
cmp word [esi + eax*2], 0x22
je 0x409851
inc eax
cmp word [esi + eax*2], bx
jne 0x409841
jmp 0x409858
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x409872
cmp word [esi + eax*2 + 2], 0x2f
je 0x409872
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x409839
jmp 0x409886
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x409880
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x409892
cmp word [eax], bx
jne 0x4098a7
cmp byte [ebp + 0xc], bl
jne 0x4098a7
cmp word [0x4314ea], bx
je 0x4098a7
mov dword [ebp - 0x34], 0x4314ea
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.004064df
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4098d3
push str..inf
push eax
call fcn.0040c212
test eax, eax
jne 0x4098d3
mov dword [ebp - 0x3c], 0x41d850
push dword [ebp - 0x38]
call fcn.00403b14
mov bl, al
test bl, bl
je 0x4098fe
push 0x800
lea eax, [ebp - 0x2048]
push eax
push dword [ebp - 0x38]
call fcn.00406823
lea eax, [ebp - 0x2048]
mov dword [ebp - 0x38], eax
cmp byte [ebp + 0xc], 0
mov edi, 0x41d844
je 0x409940
test bl, bl
jne 0x409940
push dword [ebp - 0x38]
lea eax, [ebp - 0x1048]
push eax
call fcn.0040d7c2
lea eax, [ebp - 0x1048]
push edi
push eax
call fcn.0040d794
add esp, 0x10
lea eax, [ebp - 0x1048]
push eax
call fcn.00403b14
test al, al
je 0x409a38
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409a38
cmp byte [0x4304e0], 0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], 0
mov ebx, 0x3e8
jne 0x409979
cmp byte [ebp + 0xc], 0
jne 0x409979
cmp byte [0x4304b9], 0
je 0x4099d9
cmp dword [ebp + 8], 0
je 0x409997
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x409997
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.00408c30
cmp byte [0x4304b9], 0
je 0x4099d9
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4099d9
mov eax, dword [ebp - 0xc]
add eax, ebx
cmp eax, dword [0x4304bc]
jbe 0x4099d9
mov dword [0x4304bc], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x4099f5
push edi
push dword [ebp - 8]
call fcn.0040c212
test eax, eax
je 0x409a25
cmp byte [0x4304e0], 0
je 0x409a10
cmp byte [ebp + 0xc], 0
jne 0x409a10
mov dword [0x4304c0], 0x1b58
jmp 0x409a25
xor eax, eax
cmp byte [ebp + 0xc], al
sete al
dec eax
and eax, 0xfffffce0
add eax, ebx
mov dword [0x4304c0], eax
cmp byte [ebp - 1], 0
je 0x409a38
cmp byte [ebp + 0xc], 0
je 0x409a38
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8