Function at 0x1022a580
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [0x103cdfa4]
test ebx, ebx
jne 0x1022a791
push 0x28
call fcn.102f3c36
add esp, 4
mov esi, eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [eax + 8], 0
push 0xc
call fcn.102f3c36
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [eax + 0xc]
mov dword [esi + 0x14], ecx
test eax, eax
je 0x1022a84f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [esi + 0x10], ecx
mov eax, esi
add eax, 0x1c
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], 1
mov dword [0x103cdfa4], esi
call fcn.101ecae0
test al, al
jne 0x1022a629
call fcn.101ecaf0
test al, al
je 0x1022a74f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test eax, eax
je 0x1022a640
push esi
call fcn.1030fc76
add esp, 4
jmp 0x1022a642
xor eax, eax
mov ecx, dword [0x103cdfa4]
push eax
push esi
call fcn.1022a870
mov eax, dword [0x103cdfa4]
cmp dword [eax + 0x20], 0
jne 0x1022a791
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x34]
push ecx
push 0
push eax
push 2
push str.OverrideCommandLineArgs
push 0x10366a44
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1022a791
cmp dword [ebp - 0x34], 1
jne 0x1022a791
mov esi, dword [ebp - 0x28]
xor edi, edi
cmp esi, 2
jb 0x1022a6e6
and esi, 0xfffffffe
push esi
call fcn.102f3c36
add esp, 4
mov edi, eax
xor eax, eax
nop word [eax + eax]
mov ecx, edi
add ecx, eax
je 0x1022a84f
mov word [ecx], 0
add eax, 2
cmp esi, eax
jne 0x1022a6d0
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x34]
push eax
push 2
push str.OverrideCommandLineArgs
push 0x10366a44
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x1022a719
lea ecx, [ebp - 0x20]
push edi
call fcn.100f7978
mov byte [ebp - 0x24], 1
test edi, edi
je 0x1022a726
push edi
call fcn.102f3c66
add esp, 4
test esi, esi
jne 0x1022a791
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
movzx eax, byte [ebp - 0x15]
test al, al
jns 0x1022a7aa
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
jmp 0x1022a7ad
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test eax, eax
je 0x1022a768
push esi
call fcn.1030fc76
add esp, 4
mov edi, eax
jmp 0x1022a76a
xor edi, edi
push 0
push 0xf
push str.single_argument
push edi
push esi
call fcn.10210380
add esp, 0x14
cmp eax, 0xffffffff
mov ecx, dword [0x103cdfa4]
setne byte [ecx + 8]
push edi
push esi
call fcn.1022a870
test ebx, ebx
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102f4c53
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x20]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x28]
push 1
push 1
push 1
push 0x10356388
push eax
push ecx
push esi
call fcn.101f3260
add esp, 0x1c
mov ecx, esi
push 0x103548fc
push dword [ebp - 0x34]
push edi
call fcn.1022aa20
mov ecx, dword [0x103cdfa4]
push esi
call fcn.1022ad80
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x1022a82b
mov eax, dword [ebp - 0x30]
mov ecx, esi
cmp eax, esi
jne 0x1022a806
jmp 0x1022a81f
mov eax, edi
cmp edi, esi
je 0x1022a81c
lea edi, [eax - 0xc]
cmp byte [eax - 1], 0
jns 0x1022a800
push dword [eax - 0xc]
call fcn.102f3c66
add esp, 4
jmp 0x1022a800
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], esi
push ecx
call fcn.102f3c66
add esp, 4
cmp byte [ebp - 0x24], 0
je 0x1022a791
cmp byte [ebp - 0x15], 0
jns 0x1022a791
push dword [ebp - 0x20]
call fcn.102f3c66
add esp, 4
jmp 0x1022a791
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.10090eb0
int3