Function at 0x1039910
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6b0
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea ecx, [ebp - 0x6a8]
push ecx
xor edi, edi
push 0x20019
push edi
push eax
mov esi, 0x80000000
push esi
mov dword [ebp - 0x6a8], edi
mov dword [ebp - 0x6a4], edi
mov dword [ebp - 0x6ac], edi
mov dword [ebp - 0x6a0], 1
call ebx
test eax, eax
jne 0x1039e29
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x6a0]
push eax
push edi
push edi
push dword [ebp - 0x6a8]
mov dword [ebp - 0x6a4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1039e1d
cmp dword [ebp - 0x6a0], 1
jne 0x1039e1d
lea eax, [ebp - 0x694]
push eax
call fcn.010387a2
test eax, eax
je 0x1039e1d
lea eax, [ebp - 0x694]
push eax
push 0x100a4f0
lea eax, [ebp - 0x20c]
push 0x103
push eax
mov dword [ebp - 0x69c], edi
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x69c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
test eax, eax
jne 0x1039aaa
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x6a0]
push eax
push edi
push edi
push dword [ebp - 0x69c]
mov dword [ebp - 0x6a4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1039a9e
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x6a0], ecx
je 0x1039a4d
cmp dword [ebp - 0x6a0], 2
jne 0x1039a9e
lea eax, [ebp - 0x450]
push eax
call fcn.010387a2
test eax, eax
je 0x1039a9e
lea eax, [ebp - 0x450]
push eax
mov dword [ebp - 0x6ac], ecx
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x450]
push eax
call fcn.01038841
test eax, eax
jne 0x1039a9e
push dword [ebp - 0x6a8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x69c]
call esi
xor eax, eax
jmp 0x1039e2f
push dword [ebp - 0x69c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x694]
push eax
push 0x100a4c4
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x69c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
test eax, eax
jne 0x1039b88
lea eax, [ebp - 0x694]
push eax
push 0x100a490
lea eax, [ebp - 0x20c]
push 0x103
push eax
mov dword [ebp - 0x698], edi
call fcn.01028b64
add esp, 0x10
push edi
lea eax, [ebp - 0x698]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1039b4f
push dword [ebp - 0x698]
push dword [ebp - 0x69c]
call fcn.01033018
push dword [ebp - 0x698]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x69c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x694]
push eax
push 0x100a4c4
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.01033666
lea eax, [ebp - 0x694]
push eax
push 0x100a47c
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x69c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
test eax, eax
jne 0x1039e1d
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x6a0]
push eax
push edi
push edi
push dword [ebp - 0x69c]
mov dword [ebp - 0x6a4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1039e11
cmp dword [ebp - 0x6a0], 1
jne 0x1039e11
lea eax, [ebp - 0x450]
push eax
call fcn.010387a2
test eax, eax
je 0x1039e11
push 0x100623c
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x698], edi
call fcn.01028adc
lea eax, [ebp - 0x450]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
lea eax, [ebp - 0x20c]
push eax
push 0x100a464
lea eax, [ebp - 0x450]
push 0x121
push eax
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x698]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x450]
push eax
push esi
call ebx
test eax, eax
jne 0x1039d36
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x6a0]
push eax
push edi
push edi
push dword [ebp - 0x698]
mov dword [ebp - 0x6a4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1039d2a
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x6a0], ecx
je 0x1039cd5
cmp dword [ebp - 0x6a0], 2
jne 0x1039d2a
lea eax, [ebp - 0x450]
push eax
call fcn.010387a2
test eax, eax
je 0x1039d2a
lea eax, [ebp - 0x450]
push eax
mov dword [ebp - 0x6ac], ecx
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x450]
push eax
call fcn.01038841
test eax, eax
jne 0x1039d2a
push dword [ebp - 0x6a8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x69c]
call esi
push dword [ebp - 0x698]
jmp 0x1039a95
push dword [ebp - 0x698]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
push 0x100a44c
lea eax, [ebp - 0x450]
push 0x121
push eax
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x698]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x450]
push eax
push esi
call ebx
test eax, eax
jne 0x1039e11
lea eax, [ebp - 0x20c]
push eax
push 0x100a42c
mov ebx, 0x121
lea eax, [ebp - 0x450]
push ebx
push eax
mov dword [ebp - 0x6b0], edi
call fcn.01028b64
add esp, 0x10
push edi
lea eax, [ebp - 0x6b0]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1039ddc
push dword [ebp - 0x6b0]
push dword [ebp - 0x698]
call fcn.01033018
push dword [ebp - 0x6b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x698]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
push 0x100a44c
lea eax, [ebp - 0x450]
push ebx
push eax
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x450]
push eax
push esi
call fcn.01033666
push dword [ebp - 0x69c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6ac]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 4