Function at 0x4097b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x10]
push ebx
sub esp, 0x28
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.shcore.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
je 0x409ac8
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp eax, 1
je 0x409ad2
jle 0x409943
mov dword [ebp - 0x18], 0
mov ebx, 1
mov edi, ebx
lea esi, [esi]
mov ebx, dword [esi + edi*4]
movzx ecx, word [ebx]
mov eax, ecx
and eax, 0xfffffffd
cmp ax, 0x2d
jne 0x4098d0
movzx eax, word [ebx + 2]
test ax, ax
jne 0x4098b0
cmp cx, 0x2d
je 0x4098d0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towupper]
sub eax, 0x3f
cmp ax, 0x17
ja case.0x409845.1
movzx eax, ax
jmp dword [eax*4 + 0x412ad4]
mov dword [0x416dc0], 1
add edi, 1
cmp dword [ebp - 0x14], edi
jne 0x409800
cmp dword [ebp - 0x18], 2
jne 0x409b41
mov dword [esp], 0xbbd
call fcn.00409790
lea esi, [esi]
nop
mov dword [ebp - 0x18], 1
add edi, 1
cmp dword [ebp - 0x14], edi
jne 0x409800
jmp 0x409862
mov dword [ebp - 0x18], 2
add edi, 1
cmp dword [ebp - 0x14], edi
jne 0x409800
jmp 0x409862
movzx ecx, word [ebx + 4]
test cx, cx
je 0x40982c
cmp cx, 0x3a
je 0x40982c
lea esi, [esi]
nop
mov ebx, edi
cmp dword [ebp - 0x14], edi
je 0x409862
jle 0x409943
mov edi, dword [ebp - 0x18]
jmp 0x40991f
mov dword [esp], ecx
mov dword [ebp - 0x14], ecx
mov dword [esp + 4], 0x412aba
call dword [sym.imp.kernel32.dll_lstrcmpW]
mov ecx, dword [ebp - 0x14]
sub esp, 8
test eax, eax
jne 0x409990
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], eax
call fcn.0040bbf0
add ebx, 1
cmp ebx, dword [ebp - 0x10]
jge 0x409943
mov ecx, dword [esi + ebx*4]
lea eax, [ebx*4]
cmp edi, 1
je 0x409960
cmp edi, 2
jne 0x4098e0
mov dword [esp], ecx
add ebx, 1
call fcn.0040bd60
cmp ebx, dword [ebp - 0x10]
jl 0x40991f
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + eax + 4]
add ebx, 1
test eax, eax
je 0x409975
cmp word [eax], 0
jne 0x409a80
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ecx
call fcn.0040be80
jmp 0x409917
mov dword [esp + 4], ecx
mov dword [ebp - 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SearchPathW]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
mov edx, eax
jle 0x409a26
lea eax, [eax + eax]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x14], 0
mov dword [ebp - 0x14], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SearchPathW]
mov ecx, dword [ebp - 0x18]
sub esp, 0x18
mov edx, eax
test edx, edx
je 0x409aa0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [esp + 4], 0x412abe
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ecx, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x409ae5
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0040bbf0
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x409917
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fclose]
jmp 0x409917
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0040be80
jmp 0x409917
mov dword [esp + 4], ecx
mov dword [esp], 0xbbe
call fcn.00409750
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x409917
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LocalFree]
xor eax, eax
sub esp, 4
jmp 0x409954
mov dword [ebp - 0x18], ecx
mov dword [esp], 0x412ac4
call dword [sym.imp.ucrtbase.dll__wperror]
mov ecx, dword [ebp - 0x18]
mov dword [esp], 0xbbf
mov dword [esp + 4], ecx
call fcn.00409750
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x409917
mov dword [esp + 4], ebx
mov dword [esp], 0xbba
call fcn.00409790
mov dword [esp], 0xbb9
call fcn.00409750
call fcn.00409770
mov dword [esp], 0xbbc
call fcn.00409790
nop
nop
nop
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [esp], eax
call dword [0x416de0]
test eax, eax
je 0x409b81
movzx edx, word [eax]
test dx, dx
je 0x409b81
cmp dx, 0x40
je 0x409bd0
ja 0x409ba8
cmp dx, 0x22
je 0x409bc0
jbe 0x409b90
mov ebx, dword [ebp - 4]
leave
ret
cmp dx, 9
je 0x409b9c
cmp dx, 0x20
jne 0x409b81
add eax, 2
jmp 0x409b69
cmp dx, 0x5b
jne 0x409b81
mov dword [ebx + 0x30], 3
add eax, 2
mov ebx, dword [ebp - 4]
leave
ret
mov dword [ebx + 0x30], 6
add eax, 2
mov ebx, dword [ebp - 4]
leave
ret
mov dword [ebx + 0x30], 5
mov ebx, dword [ebp - 4]
leave
ret