Function at 0x45b930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0c
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test ebx, ebx
je 0x45bc23
test eax, eax
je 0x45bc23
push 0x1ea
push eax
lea eax, [ebp - 0x8ec]
push eax
call fcn.0058889a
xor eax, eax
mov word [ebp - 0x518], ax
lea eax, [ebp - 0x8ec]
push eax
call fcn.0045bc40
xor eax, eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xcc]
push 0xa
push eax
push esi
call fcn.00588ca2
mov edx, eax
add esp, 0x1c
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45b9a4
push edi
lea edi, [ebp - 0x8ec]
sub edx, esi
add edi, 0xfffffffe
jmp 0x45b9c0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45b9c0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [ebp - 0x8ec], ax
je 0x45bc10
push 0x410
lea eax, [ebp - 0x4dc]
push 0
push eax
call fcn.00570de0
add esp, 0xc
xor ecx, ecx
nop
movzx eax, word [ecx + 0x5c26e8]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x4de], ax
test ax, ax
jne 0x45ba00
cmp word [ebx], ax
je 0x45ba73
mov esi, ebx
mov edi, edi
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x45ba20
lea edi, [ebp - 0x4dc]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45ba36
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x4dc]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x45ba60
mov eax, dword [0x5c1bec]
mov dword [edi], eax
push 0x410
lea eax, [ebp - 0xcfc]
push 0
push eax
call fcn.00570de0
add esp, 0xc
lea eax, [ebp - 0xcfc]
push 0x206
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xcfc]
push 0x5c
push eax
call fcn.00572821
mov edx, eax
add esp, 8
test edx, edx
jne 0x45babc
lea edx, [ebp - 0xcfc]
jmp 0x45babf
add edx, 2
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45bac1
lea edi, [ebp - 0x4dc]
sub edx, esi
add edi, 0xfffffffe
jmp 0x45bae0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45bae0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x4dc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x45bb03
mov eax, dword [0x5c1bec]
lea ecx, [ebp - 0x4dc]
mov dword [edi], eax
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x45bb20
mov eax, dword [0x5c6f64]
mov dword [ecx], eax
mov eax, dword [0x5c6f68]
mov dword [ecx + 4], eax
mov eax, dword [0x5c6f6c]
mov dword [ecx + 8], eax
mov eax, dword [0x5c6f70]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5c6f74]
mov dword [ecx + 0x10], eax
mov eax, dword [0x5c6f78]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0xd00]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0xd04], 0
push eax
push SysReAllocString
mov dword [ebp - 0xd00], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45bbf9
mov dword [ebp - 0xd0c], eax
lea eax, [ebp - 0xd08]
push eax
lea eax, [ebp - 0xd04]
mov dword [ebp - 0xd08], 4
push eax
lea eax, [ebp - 0xd0c]
push eax
push 0
lea eax, [ebp - 0x8ec]
push eax
push dword [ebp - 0xd00]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xd00]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xd04]
xor ecx, ecx
pop edi
test esi, esi
pop esi
cmovne eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd04]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e41f
mov esp, ebp
pop ebp
ret