Function at 0x40100d
Capabilities:
Accept command line arguments
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x210], ebx
mov word [ebp - 0x20c], bx
call fcn.00401660
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
push edx
call fcn.004014e9
cmp eax, ebx
pop ecx
mov dword [ebp - 0x21c], eax
jbe 0x40126b
lea eax, [ebp - 0x214]
push eax
push edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
mov dword [ebp - 0x220], eax
je 0x40126b
cmp dword [ebp - 0x214], ebx
jle 0x40125f
cmp dword [ebp - 0x214], 1
jle 0x40125f
push esi
push edi
push dword [eax + 4]
call fcn.004014e9
cmp eax, ebx
pop ecx
jbe 0x4010f5
lea esi, [eax + eax + 2]
push esi
call fcn.00401482
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x218], edi
je 0x4010f5
push esi
push edi
call fcn.004014cb
mov eax, dword [ebp - 0x220]
mov edx, dword [eax + 4]
push edi
call fcn.00401501
add esp, 0xc
cmp dword [ebp - 0x214], 2
jle 0x401154
mov esi, dword [ebp - 0x21c]
lea esi, [esi + esi + 2]
push esi
call fcn.00401482
cmp eax, ebx
pop ecx
mov dword [ebp - 0x210], eax
je 0x401154
push esi
push eax
call fcn.004014cb
pop ecx
pop ecx
push 2
pop esi
cmp dword [ebp - 0x214], esi
jle 0x401154
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + esi*4]
mov eax, dword [ebp - 0x210]
call fcn.0040151b
mov ecx, 0x4020b4
call fcn.0040151b
inc esi
cmp esi, dword [ebp - 0x214]
jl 0x40112d
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x401249
cmp word [eax], bx
je 0x40123d
push 0x40
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x274], ebx
call fcn.00401660
add esp, 0xc
mov dword [ebp - 0x230], ebx
xor eax, eax
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x20c]
mov ax, word [ecx]
inc ecx
inc ecx
test ax, ax
jne 0x4011a0
dec ecx
dec ecx
lea eax, [ebp - 0x20c]
cmp ecx, eax
je 0x4011bc
cmp word [ecx], 0x5c
jne 0x4011aa
mov ax, word [ecx]
sub ax, 0x5c
neg ax
sbb eax, eax
not eax
and eax, ecx
cmp eax, ebx
je 0x4011e0
mov word [eax], bx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edi, [ebp - 0x21c]
call fcn.0040127a
test eax, eax
jne 0x401222
cmp dword [ebp - 0x21c], ebx
je 0x401222
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x274], 0x44
push dword [ebp - 0x218]
call fcn.00401323
jmp 0x40123d
push 5
push ebx
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push 0x4020b8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x218]
call fcn.004014ae
pop ecx
cmp dword [ebp - 0x210], ebx
pop edi
pop esi
je 0x40125f
push dword [ebp - 0x210]
call fcn.004014ae
pop ecx
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040153f
leave
ret