Function at 0x401150
Capabilities:
Accept command line arguments
Create process on windows
Set console window title

Disassembly:
sub esp, 0xe8c
push ebx
push ebp
push esi
xor eax, eax
push edi
mov dword [0x4033e8], eax
mov dword [0x4033e4], eax
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push esi
call fcn.00401050
push 0x4033a8
call fcn.00401050
push esi
call fcn.004017a0
mov ebp, eax
sub eax, esi
mov ecx, eax
lea edi, [esp + 0x198]
mov edx, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x2e
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x19c], 0
lea eax, [esp + 0x19c]
push eax
call ebx
add esp, 0x14
test eax, eax
je 0x4011cd
mov byte [eax], 0
jmp 0x4011e5
lea edi, [esp + 0x18c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x18c]
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
lea esi, [eax - 7]
push 0x4033a0
push esi
call edi
add esp, 8
test eax, eax
jne 0x40129b
lea ecx, [esp + 0x18c]
push 0x5c
mov dword [esp + 0x1c], 1
mov byte [esi], al
push ecx
call ebx
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40125c
cmp byte [ebx], 0x5c
jne 0x401226
inc ebx
test ebx, ebx
je 0x40125c
push 0x403398
push ebx
call edi
add esp, 8
test eax, eax
je 0x40125c
cmp byte [ebx], 0
je 0x40125c
push 0x403394
push ebx
call edi
add esp, 8
test eax, eax
je 0x401261
push 0x403390
push ebx
call edi
add esp, 8
test eax, eax
je 0x401261
call fcn.00401000
cmp byte [ebp], 0x20
jne 0x40126f
mov al, byte [ebp + 1]
inc ebp
cmp al, 0x20
je 0x401267
cmp byte [ebp], 0
jne 0x4012cb
call fcn.00401000
call fcn.00401640
call fcn.00401710
call fcn.00401110
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xe8c
ret 0x10
push 0x403388
push esi
call edi
add esp, 8
test eax, eax
jne 0x4012c3
lea edx, [esp + 0x18c]
push 0x5c
mov dword [esp + 0x1c], 2
mov byte [esi], al
push edx
jmp 0x401215
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x40125c
push ebp
call fcn.004017a0
mov edx, eax
mov esi, ebp
sub edx, ebp
lea edi, [esp + 0x48]
mov ecx, edx
add esp, 4
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x44], 0
mov cl, byte [eax]
cmp cl, 0x20
jne 0x401303
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x4012fa
mov cl, byte [eax]
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
lea edx, [esp + 0x12]
inc eax
push edx
push eax
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], 0
call esi
mov ebp, eax
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, 2
jne 0x401339
lea eax, [esp + 0x12]
push eax
push 0
call esi
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x401342
mov ebp, 0x4033d0
lea ecx, [esp + 0x44]
push 0x40337c
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x4c]
add esp, 8
cmp eax, edx
jne 0x401397
push 0x40331c
call fcn.00401050
lea eax, [esp + 0x48]
push eax
call fcn.00401050
push 0x4033a8
call fcn.00401050
mov cl, byte [esp + 0x59]
add esp, 0xc
test cl, cl
lea eax, [esp + 0x45]
je 0x401394
mov byte [eax], cl
mov cl, byte [eax + 9]
inc eax
test cl, cl
jne 0x40138a
mov byte [eax], 0
test ebx, ebx
je 0x401427
push 0x403394
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401427
call fcn.00401000
push 0x4032e4
call fcn.00401020
push 0x4032b4
call fcn.00401020
push 0x403298
call fcn.00401020
lea ecx, [esp + 0x50]
push ecx
call fcn.00401020
push 0x403294
call fcn.00401020
push 0x40324c
call fcn.00401020
push 0x4031e8
call fcn.00401020
add esp, 0x1c
push 0x4031b0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.00401710
call fcn.00401110
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xe8c
ret 0x10
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28c]
push ecx
call fcn.00401780
push 0
lea edx, [esp + 0x49c]
push 0
lea eax, [esp + 0x5a4]
push edx
lea ecx, [esp + 0x29c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
push 0
lea edx, [esp + 0x4b0]
push 0
lea eax, [esp + 0x5b8]
push edx
lea ecx, [esp + 0x3b4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__makepath]
lea edi, [esp + 0x2b8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x2c
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x7f
jbe 0x4014f2
push 0x403178
call fcn.00401050
lea edx, [esp + 0x48]
push edx
call fcn.00401050
push 0x4033a8
call fcn.00401050
add esp, 0xc
lea eax, [esp + 0x44]
lea ecx, [esp + 0x28c]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x44]
lea eax, [esp + 0x69c]
push edx
push ebx
push ebp
push eax
call fcn.004017d0
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
add esp, 0x10
lea ecx, [esp + 0x69c]
push ecx
call esi
lea edx, [esp + 0x2c]
push edx
call fcn.00401650
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14c]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x148]
push eax
push ecx
lea edx, [esp + 0x398]
push 0
push edx
mov dword [esp + 0x158], 0x44
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
inc eax
neg eax
sbb eax, eax
lea ecx, [esp + 0x398]
and eax, ecx
lea edx, [esp + 0x6a4]
push eax
push 0
push 0x20
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4015f0
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401070
add esp, 4
test eax, eax
je 0x4015b6
mov dword [esp + 0x14], 0
jmp 0x40162a
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x40162a
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea edx, [esp + 0x2c]
push edx
call fcn.00401670
add esp, 4
test eax, eax
jne 0x40162a
push 0x403140
jmp 0x401623
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x403124
mov dword [esp + 0x18], eax
call fcn.00401020
lea eax, [esp + 0x6a0]
push eax
call fcn.00401020
push 0x403118
call fcn.00401020
add esp, 0xc
push 0x4031b0
call esi
call fcn.00401710
call fcn.00401110
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8c
ret 0x10