Function at 0x4097f0
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 0x409b08
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp eax, 1
je 0x409b12
jle 0x409983
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 0x409910
movzx eax, word [ebx + 2]
test ax, ax
jne 0x4098f0
cmp cx, 0x2d
je 0x409910
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towupper]
sub eax, 0x3f
cmp ax, 0x17
ja case.0x409885.1
movzx eax, ax
jmp dword [eax*4 + 0x411af4]
mov dword [0x416dc0], 1
add edi, 1
cmp dword [ebp - 0x14], edi
jne 0x409840
cmp dword [ebp - 0x18], 2
jne 0x409b81
mov dword [esp], 0xbbd
call fcn.004097d0
lea esi, [esi]
nop
mov dword [ebp - 0x18], 1
add edi, 1
cmp dword [ebp - 0x14], edi
jne 0x409840
jmp 0x4098a2
mov dword [ebp - 0x18], 2
add edi, 1
cmp dword [ebp - 0x14], edi
jne 0x409840
jmp 0x4098a2
movzx ecx, word [ebx + 4]
test cx, cx
je 0x40986c
cmp cx, 0x3a
je 0x40986c
lea esi, [esi]
nop
mov ebx, edi
cmp dword [ebp - 0x14], edi
je 0x4098a2
jle 0x409983
mov edi, dword [ebp - 0x18]
jmp 0x40995f
mov dword [esp], ecx
mov dword [ebp - 0x14], ecx
mov dword [esp + 4], 0x411ada
call dword [sym.imp.kernel32.dll_lstrcmpW]
mov ecx, dword [ebp - 0x14]
sub esp, 8
test eax, eax
jne 0x4099d0
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], eax
call fcn.0040bce0
add ebx, 1
cmp ebx, dword [ebp - 0x10]
jge 0x409983
mov ecx, dword [esi + ebx*4]
lea eax, [ebx*4]
cmp edi, 1
je 0x4099a0
cmp edi, 2
jne 0x409920
mov dword [esp], ecx
add ebx, 1
call fcn.0040be50
cmp ebx, dword [ebp - 0x10]
jl 0x40995f
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 0x4099b5
cmp word [eax], 0
jne 0x409ac0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ecx
call fcn.0040bf70
jmp 0x409957
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 0x409a65
add 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 0x409ae0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [esp + 4], 0x411ade
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 0x409b25
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0040bce0
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x409957
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 0x409957
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0040bf70
jmp 0x409957
mov dword [esp + 4], ecx
mov dword [esp], 0xbbe
call fcn.00409790
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x409957
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 0x409994
mov dword [ebp - 0x18], ecx
mov dword [esp], 0x411ae4
call dword [sym.imp.ucrtbase.dll__wperror]
mov ecx, dword [ebp - 0x18]
mov dword [esp], 0xbbf
mov dword [esp + 4], ecx
call fcn.00409790
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x409957
mov dword [esp + 4], ebx
mov dword [esp], 0xbba
call fcn.004097d0
mov dword [esp], 0xbb9
call fcn.00409790
call fcn.004097b0
mov dword [esp], 0xbbc
call fcn.004097d0
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]
mov edx, eax
test eax, eax
je 0x409bc3
movzx eax, word [edx]
test ax, ax
je 0x409bc3
cmp ax, 0x40
je 0x409c18
ja 0x409be8
cmp ax, 0x22
je 0x409c00
jbe 0x409bd0
mov ebx, dword [ebp - 4]
mov eax, edx
leave
ret
cmp ax, 9
je 0x409bdc
cmp ax, 0x20
jne 0x409bc3
add edx, 2
jmp 0x409bab
cmp ax, 0x5b
jne 0x409bc3
add edx, 2
mov dword [ebx + 0x30], 3
mov ebx, dword [ebp - 4]
leave
mov eax, edx
ret
add edx, 2
mov dword [ebx + 0x30], 6
mov ebx, dword [ebp - 4]
leave
mov eax, edx
ret
mov dword [ebx + 0x30], 5
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret