Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [ebp + 8]
push ebx
mov dword [0x4207e8], eax
push esi
lea eax, [ebp - 0x23c]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x23c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401038
xor al, al
jmp 0x401042
cmp dword [ebp - 0x22c], 2
sete al
push 0xf
lea ecx, [ebp - 0x18]
mov byte [0x4207ec], al
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401d26
push 0xf
lea ecx, [ebp - 0x34]
mov byte [ebp + 0xb], bl
mov byte [ebp - 1], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00401d26
lea ecx, [ebp - 0x6c]
call fcn.00401d0b
mov esi, 0x41b310
mov dword [ebp - 0x6c], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401954
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402b64
push dword [ebp - 0x58]
call fcn.00402e7d
pop ecx
push 1
pop edi
cmp dword [ebp - 0x64], edi
mov dword [ebp - 8], edi
jle 0x4011f0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 8]
push 0x42009c
mov edi, dword [eax + ecx*4]
lea ecx, [ebp - 0x58]
call fcn.00401954
push dword [ebp - 0x58]
push dword [edi]
call fcn.00402f3b
push dword [ebp - 0x58]
mov dword [ebp - 0xc], eax
call fcn.00402e7d
cmp dword [ebp - 0xc], ebx
pop ecx
jne 0x4010f1
mov byte [ebp + 0xb], 1
jmp 0x4011de
push 0x420094
lea ecx, [ebp - 0xb0]
call fcn.00401954
lea eax, [ebp - 0xec]
push 2
push eax
mov ecx, edi
call fcn.00401a14
push dword [ebp - 0xb0]
push dword [eax]
call fcn.00402f3b
push dword [ebp - 0xec]
mov dword [ebp - 0xc], eax
call fcn.00402e7d
push dword [ebp - 0xb0]
call fcn.00402e7d
cmp dword [ebp - 0xc], ebx
pop ecx
pop ecx
jne 0x401175
lea eax, [ebp - 0xe0]
push 2
push eax
mov ecx, edi
call fcn.004019f3
push eax
lea ecx, [ebp - 0x34]
call fcn.004019b5
push dword [ebp - 0xe0]
call fcn.00402e7d
pop ecx
lea eax, [ebp - 0x34]
push eax
call fcn.00404d68
cmp dword [ebp - 0x30], ebx
setne byte [ebp - 1]
jmp 0x4011de
push 0x42008c
lea ecx, [ebp - 0x4c]
call fcn.00401954
lea eax, [ebp - 0xd4]
push 2
push eax
mov ecx, edi
call fcn.00401a14
push dword [ebp - 0x4c]
push dword [eax]
call fcn.00402f3b
push dword [ebp - 0xd4]
mov dword [ebp - 0xc], eax
call fcn.00402e7d
push dword [ebp - 0x4c]
call fcn.00402e7d
cmp dword [ebp - 0xc], ebx
pop ecx
pop ecx
jne 0x4011de
lea eax, [ebp - 0xa4]
push 2
push eax
mov ecx, edi
call fcn.004019f3
push eax
lea ecx, [ebp - 0x18]
call fcn.004019b5
push dword [ebp - 0xa4]
call fcn.00402e7d
pop ecx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x64]
jl 0x4010b7
push 1
pop edi
push 0xf
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.00401d26
lea eax, [ebp - 0x40]
push eax
push dword [0x4207e8]
call fcn.00403c8a
push 0xf
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00401d26
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x40]
call fcn.00404369
test al, al
jne 0x40126e
push 0x420070
push ebx
call fcn.0041751e
push dword [ebp - 0x24]
call fcn.00402e7d
push dword [ebp - 0x40]
call fcn.00402e7d
pop ecx
mov dword [ebp - 0x6c], esi
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00403123
lea ecx, [ebp - 0x6c]
call fcn.00403113
jmp 0x40149b
lea ecx, [ebp - 0xc8]
call fcn.00401621
cmp dword [ebp - 0x14], ebx
lea ecx, [ebp - 0xc0]
setne al
mov byte [ebp - 0xc4], al
lea eax, [ebp - 0x18]
push eax
call fcn.004019b5
push 0xd8
call fcn.00402e56
cmp eax, ebx
pop ecx
je 0x4012af
mov ecx, eax
call fcn.00401650
mov dword [ebp - 8], eax
jmp 0x4012b2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4012bf
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [ebp - 8]
call fcn.00409b0f
cmp dword [ebp - 0x14], ebx
mov eax, dword [ebp - 8]
setne cl
mov byte [eax + 0xc4], cl
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [eax + 0xc8]
call fcn.004019b5
lea ecx, [ebp - 0x15c]
call fcn.004015a1
cmp byte [ebp - 1], bl
je 0x4012fa
lea eax, [ebp - 0x34]
jmp 0x40130f
push dword [ebp - 0x70]
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], edi
push eax
call fcn.00401a14
push eax
lea ecx, [ebp - 0x154]
call fcn.004019b5
test byte [ebp - 0x28], 1
je 0x40132d
push dword [ebp - 0xa4]
call fcn.00402e7d
pop ecx
mov al, byte [ebp + 0xb]
xor ecx, ecx
cmp al, bl
mov byte [ebp - 0x148], al
setne cl
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x15b], bl
call fcn.00401d0b
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], esi
call fcn.00401d0b
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x84]
push eax
mov dword [ebp - 0x98], esi
call fcn.00401a68
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x98]
push eax
call fcn.00401a68
lea ecx, [ebp - 0x1a8]
call fcn.004014b6
push 0x42006c
lea ecx, [ebp - 0x4c]
call fcn.00401954
push edi
push edi
lea eax, [ebp - 0x4c]
push edi
push eax
push edi
lea ecx, [ebp - 0x1a8]
call fcn.004036c2
push dword [ebp - 0x4c]
call fcn.00402e7d
cmp byte [ebp + 0xb], bl
pop ecx
push dword [ebp - 8]
lea eax, [ebp - 0xc8]
push eax
sete al
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00402364
cmp eax, edi
jne 0x401406
push 0x420038
push ebx
call fcn.0041751e
jmp 0x401418
cmp eax, ebx
je 0x401418
cmp eax, 0x80004004
je 0x401418
push eax
push ebx
call fcn.00417536
lea ecx, [ebp - 0x1a8]
call fcn.0040150e
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], esi
call fcn.00403123
lea ecx, [ebp - 0x98]
call fcn.00403113
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], esi
call fcn.00403123
lea ecx, [ebp - 0x84]
call fcn.00403113
lea ecx, [ebp - 0x15c]
call fcn.00401934
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x401473
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0xc0]
call fcn.00402e7d
push dword [ebp - 0x24]
call fcn.00402e7d
push dword [ebp - 0x40]
call fcn.00402e7d
add esp, 0xc
lea ecx, [ebp - 0x6c]
call fcn.00401a30
xor edi, edi
push dword [ebp - 0x34]
call fcn.00402e7d
push dword [ebp - 0x18]
call fcn.00402e7d
pop ecx
mov eax, edi
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10