Function at 0x413223
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41d0e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0xffffffffffffffff
push 0x402e1c
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 0x4133bf
or dword [0x41d4e8], 0xffffffff
push 0x402bc0
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41328a
and dword [0x41d4e8], 0
jmp 0x4132f0
push 0x402bd0
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4132a8
mov dword [0x41d4e8], 1
jmp 0x4132f0
push 0x402be0
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4132c6
mov dword [0x41d4e8], 2
jmp 0x4132f0
push 0x402e38
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4132e2
push 4
pop eax
mov dword [0x41d4e8], eax
jmp 0x4132e7
mov eax, dword [0x41d4e8]
cmp eax, 0xffffffff
je 0x4133bf
mov esi, 0x402568
mov edi, 0x41d500
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, 0x402e48
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413327
mov ecx, edi
call fcn.0040862a
mov edx, 0x41d500
lea ecx, [esi + eax*2]
call fcn.00413638
push 0x402e54
push ebx
xor esi, esi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41335e
mov ecx, 0x402e54
call fcn.0040862a
push 8
lea eax, [edi + eax*2]
push eax
push 0x10
push 0x41d536
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
inc esi
push 0x402e60
or edi, 0xffffffff
push ebx
mov dword [0x41d4ec], edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4133d0
and dword [0x41d4ec], 0
lea eax, [ebp - 0x20c]
push edi
push 0x402e68
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x4133bf
push edi
push 0x402de8
push 0x10
push 0x41d516
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
jne 0x413537
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b570
leave
ret
push 0x402e80
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41343a
push edi
push 0x402e88
lea eax, [ebp - 0x20c]
mov dword [0x41d4ec], 1
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x4133bf
push edi
push 0x402ea0
push 0x10
push 0x41d516
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x4133bf
test esi, esi
jne 0x413537
push edi
push 0x402eb4
jmp 0x41352b
push 0x402ec8
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4134c2
push edi
push 0x402ed0
lea eax, [ebp - 0x20c]
mov dword [0x41d4ec], 3
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x4133bf
push edi
push 0x402ea0
push 0x10
push 0x41d516
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x4133bf
test esi, esi
jne 0x413537
push 0x402eec
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
push edi
test eax, eax
je 0x4134bb
push 0x402ef4
jmp 0x41352b
push 0x402f08
jmp 0x41352b
push 0x402f1c
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x413537
push edi
push 0x402f24
lea eax, [ebp - 0x20c]
mov dword [0x41d4ec], 2
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x4133bf
push edi
push 0x402ea0
push 0x10
push 0x41d516
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x4133bf
test esi, esi
jne 0x413537
push edi
push 0x402f3c
push 0x10
push 0x41d536
jmp 0x4133ad
mov eax, dword [0x41d4ec]
cmp eax, edi
je 0x4133bf
test eax, eax
mov eax, 0x804
je 0x413552
mov eax, 0x404
mov word [0x41d514], ax
mov esi, 0x402568
mov edi, 0x41d4f0
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, 0x402f50
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41358f
mov ecx, edi
call fcn.0040862a
mov edx, 0x41d4f0
lea ecx, [esi + eax*2]
call fcn.00413638
and dword [0x41d510], 0
mov edi, 0x402f5c
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4135c2
mov ecx, edi
call fcn.0040862a
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [0x41d510], eax
mov eax, dword [0x41d4e8]
cmp eax, 2
je 0x41362f
cmp eax, 1
je 0x41362f
cmp eax, 4
jne 0x4135fb
push 0xffffffffffffffff
push 0x402f7c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncat_s]
add esp, 0x10
cmp eax, 0x50
je 0x4133bf
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
push 0x41d556
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x4133bf
and dword [0x41d760], 0
xor eax, eax
inc eax
jmp 0x4133c1
push 0xffffffffffffffff
push 0x402f68
jmp 0x4135dd