Function at 0x401050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x421474]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea ecx, [esp + 0x20]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x20], 2
mov esi, eax
jl 0x401210
mov eax, dword [esi]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], dx
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4010b0
sub ecx, edi
sar ecx, 1
push ecx
lea ecx, [esp + 0x6c]
call fcn.004015c0
mov eax, dword [esi + 4]
xor ecx, ecx
mov word [esp + 0x4c], cx
mov ecx, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4010e4
sub ecx, edi
sar ecx, 1
push ecx
lea ecx, [esp + 0x50]
call fcn.004015c0
cmp dword [esp + 0x20], 3
jne 0x40115d
mov eax, dword [esi + 8]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], dx
lea esi, [ecx + 2]
jmp 0x401130
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x401130
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x88]
call fcn.004015c0
mov dword [esp + 0xc], 1
lea eax, [esp + 0x84]
jmp 0x401162
mov eax, 0x42259c
push ebx
xor ecx, ecx
push eax
or eax, 0xffffffff
lea edi, [esp + 0x38]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
call fcn.00401510
test byte [esp + 0xc], 1
mov ebx, 8
je 0x4011a8
cmp dword [esp + 0x98], ebx
jb 0x4011a8
mov edx, dword [esp + 0x84]
push edx
call fcn.00407a3d
add esp, 4
mov eax, dword [esp + 0x78]
dec eax
cmp eax, 0x3e
jbe 0x40122c
cmp dword [esp + 0x44], ebx
jb 0x4011c5
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00407a3d
add esp, 4
xor edi, edi
xor edx, edx
mov esi, 7
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov word [esp + 0x30], dx
cmp dword [esp + 0x60], ebx
jb 0x4011ee
mov eax, dword [esp + 0x4c]
push eax
call fcn.00407a3d
add esp, 4
xor ecx, ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], cx
cmp dword [esp + 0x7c], ebx
jb 0x401210
mov edx, dword [esp + 0x68]
push edx
call fcn.00407a3d
add esp, 4
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004078b8
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
push 0x48
mov dword [esp + 0x1c], esi
call fcn.00407e02
add esp, 4
cmp eax, esi
je 0x401357
mov dword [esp + 0x14], eax
mov dword [eax], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x14]
mov byte [eax + 0x44], 1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x68]
mov byte [ecx + 0x45], 1
push edx
lea ecx, [esp + 0x88]
call fcn.00401e90
add esp, 4
mov ecx, eax
lea edx, [esp + 0x10]
call fcn.004023e0
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00401fd0
lea esi, [esp + 0x84]
call fcn.00401f60
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x34]
lea edi, [esp + 0x50]
call fcn.00401390
add esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x2c]
lea esi, [esp + 0x18]
call fcn.004017a0
mov eax, dword [esp + 0x14]
push eax
call fcn.00407a3d
add esp, 4
cmp dword [esp + 0x44], ebx
jb 0x4012f1
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00407a3d
add esp, 4
xor edi, edi
xor edx, edx
mov esi, 7
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov word [esp + 0x30], dx
cmp dword [esp + 0x60], ebx
jb 0x40131a
mov eax, dword [esp + 0x4c]
push eax
call fcn.00407a3d
add esp, 4
xor ecx, ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], cx
cmp dword [esp + 0x7c], ebx
jb 0x40133c
mov edx, dword [esp + 0x68]
push edx
call fcn.00407a3d
add esp, 4
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004078b8
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], esi
call fcn.0040794f
push 0x41f6c8
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], vtable.std::bad_alloc.0
call fcn.004095bc
int3