Function at 0x405580
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3008
call fcn.0044c32d
mov eax, dword [0x467368]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
call fcn.0040e4fb
pop ecx
call fcn.0042ceb9
test eax, eax
jne 0x4055be
push ebx
push ebx
push ebx
push 0x3ef
call fcn.0042ced5
call fcn.00403e24
test al, al
jne 0x4055cf
xor eax, eax
inc eax
jmp 0x405b35
call fcn.00405274
lea eax, [ebp - 0x3008]
mov dword [ebp - 0x3008], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x3008], 2
je 0x4055fe
call fcn.00403b03
jmp 0x4055c7
mov ebx, dword [eax + 4]
push esi
push edi
push 9
pop esi
xor edi, edi
push ebx
push dword [edi*4 + 0x4515f8]
call fcn.0043160b
test al, al
jne 0x405621
inc edi
cmp edi, 9
jb 0x405608
jmp 0x405623
mov esi, edi
xor edi, edi
push ebx
push dword [edi*4 + 0x4516b8]
call fcn.0043160b
test al, al
jne 0x40563e
inc edi
cmp edi, 9
jb 0x405625
jmp 0x405640
mov esi, edi
cmp esi, 9
jne 0x405652
call fcn.00403b03
xor eax, eax
inc eax
jmp 0x405b33
push ebx
push 0x3a
call fcn.0043159a
push 0xa
mov ecx, 0x102
mov dword [ebp - 0x2cbc], 0x46eeb0
mov dword [ebp - 0x2cb0], ecx
lea edi, [eax + 2]
mov dword [ebp - 0x2cb4], ecx
pop eax
mov dword [ebp - 0x3004], eax
lea ecx, [ebp - 0x2cbc]
lea eax, [ebp - 0x2cac]
push 0
mov dword [ebp - 0x2cb8], eax
call fcn.0040542e
xor ebx, ebx
push edi
push dword [ebx*4 + 0x46e0c8]
call fcn.0043160b
test al, al
jne 0x40585f
inc ebx
cmp ebx, 0xa
jb 0x40569c
mov ebx, 0x1048
lea eax, [ebp - 0x124c]
push ebx
cmp esi, 6
push 0
push eax
sete byte [ebp - 0x3000]
call sub.VCRUNTIME140.dll_memset
push ebx
xor ebx, ebx
lea eax, [ebp - 0x2a94]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x2ba8], 0x46eeb0
mov ecx, 0x102
lea eax, [ebp - 0x2b98]
mov dword [ebp - 0x2b9c], ecx
mov dword [ebp - 0x2ba0], ecx
lea ecx, [ebp - 0x2ba8]
push ebx
mov dword [ebp - 0x2ba4], eax
call fcn.0040542e
mov ecx, 0x102
mov dword [ebp - 0x2dd0], 0x46eeb0
mov dword [ebp - 0x2dc4], ecx
lea eax, [ebp - 0x2dc0]
mov dword [ebp - 0x2dc8], ecx
lea ecx, [ebp - 0x2dd0]
push ebx
mov dword [ebp - 0x2dcc], eax
call fcn.0040542e
mov ecx, 0x102
mov dword [ebp - 0x2ff8], 0x46eeb0
mov dword [ebp - 0x2fec], ecx
lea eax, [ebp - 0x2fe8]
mov dword [ebp - 0x2ff0], ecx
lea ecx, [ebp - 0x2ff8]
push ebx
mov dword [ebp - 0x2ff4], eax
call fcn.0040542e
mov ecx, 0x102
mov dword [ebp - 0x2ee4], 0x46eeb0
mov dword [ebp - 0x2ed8], ecx
lea eax, [ebp - 0x2ed4]
mov dword [ebp - 0x2edc], ecx
lea ecx, [ebp - 0x2ee4]
push ebx
mov dword [ebp - 0x2ee0], eax
call fcn.0040542e
mov ecx, dword [ebp - 0x3004]
mov al, bl
inc ebx
cmp ecx, 0xa
jne 0x405802
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x124c]
push 0x824
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
lea eax, [ebp - 0x2ba8]
push dword [ebp - 0x3000]
push ebx
push eax
lea eax, [ebp - 0x124c]
push eax
call fcn.0040454d
test al, al
je 0x405855
xor ecx, ecx
mov al, bl
mov dword [ebp - 0x3004], ecx
cmp ecx, 9
ja 0x40597d
test al, al
jne 0x405963
push 0x824
lea eax, [ebp - 0x124c]
push eax
lea eax, [ebp - 0x2cbc]
push eax
push 0x75
push edi
call fcn.004043aa
test al, al
je 0x405855
push dword [ebp - 0x3000]
lea eax, [ebp - 0x2ba8]
push 0
push eax
lea eax, [ebp - 0x124c]
push eax
call fcn.0040454d
test al, al
jne 0x405963
call fcn.00403b03
jmp 0x405ab4
mov ecx, 0x102
mov dword [ebp - 0x3004], ebx
mov dword [ebp - 0x10c], ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x118]
push 0
mov dword [ebp - 0x118], 0x46eeb0
mov dword [ebp - 0x114], eax
call fcn.0040542e
push 0
lea eax, [ebp - 0x118]
push eax
push dword [ebx*4 + 0x46e0c8]
call fcn.004311a1
push dword [ebp - 0x114]
call fcn.00405293
lea edi, [edi + eax*2]
xor eax, eax
mov dword [ebp - 0x3000], eax
push edi
push dword [eax*4 + 0x46e0f0]
call fcn.004315b9
test al, al
jne 0x405907
mov eax, dword [ebp - 0x3000]
inc eax
mov dword [ebp - 0x3000], eax
cmp eax, 3
jb 0x4058c4
call fcn.00403b03
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x114], eax
je 0x40595b
push dword [ebp - 0x114]
call fcn.0042e3d5
jmp 0x40595b
push 0
lea eax, [ebp - 0x2cbc]
push eax
mov eax, dword [ebp - 0x3000]
push dword [eax*4 + 0x46e0f0]
call fcn.004311a1
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x114], eax
je 0x40593b
push dword [ebp - 0x114]
call fcn.0042e3d5
cmp ebx, 3
jb 0x4056b7
cmp ebx, 0xa
jae 0x4056b7
cmp esi, 8
je 0x4056b7
call fcn.00403b03
xor ebx, ebx
inc ebx
jmp 0x405b18
push dword [ebp - 0x2ba4]
push esi
call fcn.00404f29
test al, al
je 0x405ab2
mov ecx, dword [ebp - 0x3004]
mov eax, ecx
mov byte [ebp - 0x2ff9], 0
sub eax, 0
je 0x405a22
sub eax, 1
je 0x405a0d
sub eax, 1
je 0x4059b8
cmp esi, 8
jne 0x405a41
lea eax, [ebp - 0x2cbc]
push eax
push edi
push dword [ebp - 0x2ba4]
push ecx
call fcn.0040301c
jmp 0x405a35
push 0x824
lea eax, [ebp - 0x2a94]
push eax
lea eax, [ebp - 0x2cbc]
push eax
push 0x73
push edi
call fcn.004043aa
test al, al
je 0x4059f2
push dword [ebp - 0x3000]
lea eax, [ebp - 0x2dd0]
push 0
push eax
lea eax, [ebp - 0x2a94]
push eax
call fcn.0040454d
lea eax, [ebp - 0x2ff9]
push eax
push dword [ebp - 0x2dcc]
push dword [ebp - 0x2ba4]
push esi
call fcn.00404162
jmp 0x405a35
lea eax, [ebp - 0x2ff9]
push eax
push dword [ebp - 0x2ba4]
push esi
call fcn.004042d2
jmp 0x405a35
lea eax, [ebp - 0x2ff9]
push eax
push dword [ebp - 0x2ba4]
push esi
call fcn.0040433e
test al, al
jne 0x405aa7
cmp byte [ebp - 0x2ff9], al
jne 0x405aa7
push 0x400
lea eax, [ebp - 0x1a4c]
push eax
push 0xaac4dbda
push dword [0x470108]
call fcn.0041effc
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xe9b53cb6
push dword [0x470108]
call fcn.0041effc
xor eax, eax
mov ecx, 0x180000
cmp byte [0x47010c], al
cmovne eax, ecx
or eax, 0x50010
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x1a4c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x405ab4
call fcn.00405486
call dword [sym.imp.ole32.dll_CoUninitialize]
xor ebx, ebx
lea eax, [ebp - 0x2ed4]
cmp dword [ebp - 0x2ee0], eax
je 0x405acd
push dword [ebp - 0x2ee0]
call fcn.0042e3d5
lea eax, [ebp - 0x2fe8]
cmp dword [ebp - 0x2ff4], eax
je 0x405ae6
push dword [ebp - 0x2ff4]
call fcn.0042e3d5
lea eax, [ebp - 0x2dc0]
cmp dword [ebp - 0x2dcc], eax
je 0x405aff
push dword [ebp - 0x2dcc]
call fcn.0042e3d5
lea eax, [ebp - 0x2b98]
cmp dword [ebp - 0x2ba4], eax
je 0x405b18
push dword [ebp - 0x2ba4]
call fcn.0042e3d5
lea eax, [ebp - 0x2cac]
cmp dword [ebp - 0x2cb8], eax
je 0x405b31
push dword [ebp - 0x2cb8]
call fcn.0042e3d5
mov eax, ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044c025
mov esp, ebp
pop ebp
ret 0x10