Function at 0x4098f0
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 0x409c20
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp eax, 1
je 0x409c31
jle 0x409a2f
mov edi, dword [esi + 4]
movzx ecx, word [edi]
mov eax, ecx
and eax, 0xfffffffd
cmp ax, 0x2d
jne 0x409c82
mov dword [ebp - 0x18], 0
mov ebx, 1
nop
movzx eax, word [edi + 2]
test ax, ax
jne 0x409a90
cmp cx, 0x2d
je 0x409aa7
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towupper]
sub eax, 0x3f
cmp ax, 0x17
ja case.0x409980.1
movzx eax, ax
jmp dword [eax*4 + 0x412814]
mov dword [ebp - 0x18], 2
add ebx, 1
cmp dword [ebp - 0x14], ebx
je 0x409a66
mov edi, dword [esi + ebx*4]
movzx ecx, word [edi]
mov eax, ecx
and eax, 0xfffffffd
cmp ax, 0x2d
je 0x409950
cmp dword [ebp - 0x14], ebx
jle 0x409a2f
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
jmp 0x4099ff
mov dword [esp], edx
mov dword [ebp - 0x18], edx
mov dword [esp + 4], 0x4127fa
call dword [sym.imp.kernel32.dll_lstrcmpW]
mov edx, dword [ebp - 0x18]
sub esp, 8
test eax, eax
jne 0x409af0
mov dword [esp], 0
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], eax
call dbg.import_registry_file
cmp dword [ebp - 0x10], ebx
jle 0x409a2c
mov edx, dword [ebp - 0x14]
lea eax, [ebx*4]
lea edi, [ebx + 1]
mov edx, dword [edx + ebx*4]
cmp esi, 1
je 0x409ab2
cmp esi, 2
jne 0x4099c1
mov dword [esp], edx
mov ebx, edi
call dbg.delete_registry_key
cmp dword [ebp - 0x10], ebx
jg 0x4099ff
mov esi, dword [ebp - 0x14]
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 dword [0x414d40], 1
add ebx, 1
cmp dword [ebp - 0x14], ebx
jne 0x4099a3
cmp dword [ebp - 0x18], 2
jne 0x409c93
mov dword [esp], 0xbbd
call dbg.usage
lea esi, [esi]
mov dword [ebp - 0x18], 1
jmp case.0x409980.4
movzx ecx, word [edi + 4]
test cx, cx
je 0x409967
cmp cx, 0x3a
je 0x409967
cmp dword [ebp - 0x14], ebx
jne 0x4099b4
jmp 0x409a66
mov edi, dword [ebp - 0x14]
add ebx, 2
mov eax, dword [edi + eax + 4]
test eax, eax
je 0x409aca
cmp word [eax], 0
jne 0x409bd0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], edx
call dbg.export_registry_key
jmp 0x4099fa
mov dword [esp + 4], edx
mov dword [ebp - 0x18], edx
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]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
mov ebx, eax
jle 0x409b78
lea eax, [eax + eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SearchPathW]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
sub esp, 0x18
mov ebx, eax
test ebx, ebx
je 0x409bf0
mov dword [esp], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], 0x4127fe
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ecx, dword [ebp - 0x18]
test eax, eax
mov ebx, eax
je 0x409c44
mov dword [esp], eax
mov dword [ebp - 0x18], ecx
call dbg.import_registry_file
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x409c2a
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov ebx, edi
call dword [sym.imp.ucrtbase.dll_fclose]
jmp 0x4099fa
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edx
call dbg.export_registry_key
jmp 0x4099fa
mov dword [ebp - 0x18], ecx
mov dword [esp + 4], edx
mov dword [esp], 0xbbe
call dbg.output_message
mov ecx, dword [ebp - 0x18]
mov ebx, edi
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4099fa
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, edi
jmp 0x4099fa
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LocalFree]
xor eax, eax
sub esp, 4
jmp 0x409a40
mov dword [esp], 0x412804
call dword [sym.imp.ucrtbase.dll__wperror]
mov edx, dword [ebp - 0x1c]
mov dword [esp], 0xbbf
mov dword [esp + 4], edx
jmp 0x409bfe
mov dword [esp], 0xbb9
call dbg.output_message
call dbg.error_exit
mov dword [esp + 4], edi
mov dword [esp], 0xbba
call dbg.usage
mov dword [ebp - 0x18], 0
mov ebx, 1
jmp 0x4099b9
mov dword [esp], 0xbbc
call dbg.usage
nop