Function at 0x1044760
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 8], 0x105
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x10447ae
push 0x100ca90
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
xor eax, eax
jmp 0x1044b20
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x100cc80
push VariantClear
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10447ee
push 0x100cc40
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
xor eax, eax
jmp 0x1044b20
mov edx, dword [ebp - 0x10]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x1044824
push 0x100cbe8
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
xor eax, eax
jmp 0x1044b20
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x234]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x100cc80
push VariantClear
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1044892
cmp dword [ebp - 0x234], 0
je 0x1044877
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x234], 0
push 0x100cc40
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
xor eax, eax
jmp 0x1044b20
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x234]
mov dword [edx], eax
lea ecx, [ebp - 8]
push ecx
push 0x10597a8
push 1
push 0x10599b8
call sub.instapi.dll_GetSQLServiceByName
test eax, eax
jne 0x10448bd
xor eax, eax
jmp 0x1044b20
push 0x10597a8
call fcn.0100d600
push eax
push 0x100cb40
push 0x105
lea edx, [ebp - 0x230]
push edx
call fcn.01044420
add esp, 0x14
mov word [ebp - 0x28], 0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.01044510
add esp, 0x10
test eax, eax
je 0x1044a61
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0x100cb20
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x104497d
push 0x100cc40
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x23c]
push eax
call fcn.010445e0
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.010445e0
add esp, 4
xor eax, eax
jmp 0x1044b20
cmp dword [ebp - 0x10], 4
je 0x10449cf
push 0x100cc40
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.010445e0
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.010445e0
add esp, 4
xor eax, eax
jmp 0x1044b20
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push 0x100cb20
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1044a44
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x100cc40
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
mov eax, dword [ebp - 0x23c]
push eax
call fcn.010445e0
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.010445e0
add esp, 4
xor eax, eax
jmp 0x1044b20
mov edx, dword [ebp - 0x23c]
push edx
call fcn.010445e0
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.010445e0
add esp, 4
jmp 0x1044a92
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x100cba4
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
xor eax, eax
jmp 0x1044b20
mov eax, dword [ebp - 0x234]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x238]
shr ecx, 1
mov edx, dword [ebp - 0x234]
lea eax, [edx + ecx*2]
cmp dword [ebp - 4], eax
jae 0x1044af4
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
test edx, edx
je 0x1044adb
call fcn.0100d600
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi_l]
add esp, 8
cmp dword [ebp - 0x240], eax
jne 0x1044adb
mov eax, dword [ebp - 4]
jmp 0x1044b20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 4], eax
jmp 0x1044a9b
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x100cba4
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret