Function at 0x413a7f
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0xffffffffffffffff
push 0x402e98
mov ebx, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
or dword [0x41f510], 0xffffffff
push 0x402c54
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x413ae6
and dword [0x41f510], 0
jmp 0x413b4c
push 0x402c64
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x413b04
mov dword [0x41f510], 1
jmp 0x413b4c
push 0x402c74
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x413b22
mov dword [0x41f510], 2
jmp 0x413b4c
push 0x402eb4
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x413b3e
push 4
pop eax
mov dword [0x41f510], eax
jmp 0x413b43
mov eax, dword [0x41f510]
cmp eax, 0xffffffff
je 0x413c1b
mov esi, 0x4025b8
mov edi, 0x41f528
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, 0x402ec4
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413b83
mov ecx, edi
call fcn.00408ba7
mov edx, 0x41f528
lea ecx, [esi + eax*2]
call fcn.00413e9a
push 0x402ed0
push ebx
xor esi, esi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x413bba
mov ecx, 0x402ed0
call fcn.00408ba7
push 8
lea eax, [edi + eax*2]
push eax
push 0x10
push 0x41f55e
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
inc esi
push 0x402edc
or edi, 0xffffffff
push ebx
mov dword [0x41f514], edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x413c2c
and dword [0x41f514], 0
lea eax, [ebp - 0x20c]
push edi
push 0x402ee4
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
push edi
push 0x402e64
push 0x10
push 0x41f53e
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
jne 0x413d93
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d020
leave
ret
push 0x402efc
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x413c96
push edi
push 0x402f04
lea eax, [ebp - 0x20c]
mov dword [0x41f514], 1
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
push edi
push 0x402f1c
push 0x10
push 0x41f53e
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
test esi, esi
jne 0x413d93
push edi
push 0x402f30
jmp 0x413d87
push 0x402f44
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x413d1e
push edi
push 0x402f4c
lea eax, [ebp - 0x20c]
mov dword [0x41f514], 3
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
push edi
push 0x402f1c
push 0x10
push 0x41f53e
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
test esi, esi
jne 0x413d93
push 0x402f68
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
push edi
test eax, eax
je 0x413d17
push 0x402f70
jmp 0x413d87
push 0x402f84
jmp 0x413d87
push 0x402f98
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x413d93
push edi
push 0x402fa0
lea eax, [ebp - 0x20c]
mov dword [0x41f514], 2
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
push edi
push 0x402f1c
push 0x10
push 0x41f53e
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
test esi, esi
jne 0x413d93
push edi
push 0x402fb8
push 0x10
push 0x41f55e
jmp 0x413c09
mov eax, dword [0x41f514]
cmp eax, edi
je 0x413c1b
test eax, eax
mov eax, 0x804
je 0x413dae
mov eax, 0x404
mov word [0x41f53c], ax
mov esi, 0x4025b8
mov edi, 0x41f518
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, 0x402fcc
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413deb
mov ecx, edi
call fcn.00408ba7
mov edx, 0x41f518
lea ecx, [esi + eax*2]
call fcn.00413e9a
and dword [0x41f538], 0
mov edi, 0x402fd8
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413e1e
mov ecx, edi
call fcn.00408ba7
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [0x41f538], eax
mov eax, dword [0x41f510]
cmp eax, 2
je 0x413e8b
cmp eax, 1
je 0x413e8b
cmp eax, 4
jne 0x413e57
push 0xffffffffffffffff
push 0x402ff8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
push 0x41f57e
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x413c1b
and dword [0x41f788], 0
xor eax, eax
inc eax
jmp 0x413c1d
push 0xffffffffffffffff
push 0x402fe4
jmp 0x413e39