Function at 0x40bf80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427590
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x431464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x314], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00403430
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x2ac], ax
push 0x104
lea ecx, [ebp - 0x2ac]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0xa4], eax
movzx edx, word [ebp - 0x2ac]
test edx, edx
je 0x40c07c
push 0
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0040cd20
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
cmp ecx, dword [0x4292a4]
je 0x40c07c
mov edx, dword [0x4292a4]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.0040cd50
mov dword [ebp - 0x318], eax
mov edx, dword [ebp - 0x318]
mov dword [ebp - 0x31c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00406490
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401d20
push 0
push 0x429634
lea ecx, [ebp - 0x2c8]
call fcn.0040cd20
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [0x4292a4]
je 0x40c294
mov edx, dword [ebp - 0xa0]
add edx, 2
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
push eax
push 0x3d
lea ecx, [ebp - 0x2c8]
call fcn.00401dc0
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
cmp ecx, dword [0x4292a4]
jne 0x40c0e2
jmp 0x40c294
mov edx, dword [ebp - 0x2ec]
sub edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x308]
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.0040cd50
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2ec]
add edx, 1
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp - 0x2ec]
push eax
push 0x42963c
lea ecx, [ebp - 0x2c8]
call fcn.0040cd20
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x2e8]
call fcn.00401c20
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [0x4292a4]
je 0x40c1ae
mov edx, dword [ebp - 0xa0]
sub edx, dword [ebp - 0x2ec]
push edx
mov eax, dword [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.0040cd50
mov dword [ebp - 0x320], eax
mov edx, dword [ebp - 0x320]
mov dword [ebp - 0x324], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x324]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00406490
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401d20
jmp 0x40c1ff
mov ecx, dword [0x4292a4]
push ecx
mov edx, dword [ebp - 0x2ec]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0040cd50
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp - 0x328]
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x32c]
push edx
lea ecx, [ebp - 0x2e8]
call fcn.00406490
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00401d20
lea eax, [ebp - 0x2e8]
push eax
call fcn.0040c2c0
add esp, 4
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00402760
lea ecx, [ebp - 0x2e8]
push ecx
lea edx, [ebp - 0x308]
push edx
lea ecx, [ebp - 0x9c]
call fcn.0040d660
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x334], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x334]
push ecx
lea edx, [ebp - 0x310]
push edx
mov ecx, dword [ebp - 0x314]
call fcn.0040d620
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
call fcn.0040caa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e8]
call fcn.00401d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x308]
call fcn.00401d20
jmp 0x40c094
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call fcn.00401d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416d51
mov esp, ebp
pop ebp
ret