Function at 0x40738b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41ee7a
call fcn.00414b54
sub esp, 0x190
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x15]
mov ebx, 0x4205d4
mov esi, 0x4205cc
push edi
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 1
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x50], esi
call fcn.0040add8
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
call fcn.00407056
pop ecx
pop ecx
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, edi
mov dword [ebp + 0xc], 0x4205dc
je 0x4073f1
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jne 0x4073fa
xor eax, eax
jmp 0x407432
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x20], eax
add eax, 3
and al, 0xfc
call fcn.00414d30
mov eax, esp
push edi
push edi
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
and byte [eax], 0
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40745f
lea ecx, [ebp - 0x10]
call fcn.00404aa7
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.00407311
cmp byte [ebp + 0xf], 0
je 0x4075b4
and byte [ebp - 0x19c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x19b]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x4249d4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4074fc
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040add8
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00407311
cmp dword [ebp - 0x10], 0
je 0x4074f5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4075ea
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040acb1
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.004072c7
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00407311
mov eax, 0x4249d0
mov dword [ebp - 0x48], ebx
mov ecx, eax
mov dword [ebp - 0x28], esi
test ecx, ecx
mov edi, 0x42ae84
jne 0x407545
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0040aee0
mov eax, 0x4249cc
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x98], ebx
test ecx, ecx
mov dword [ebp - 0x78], esi
jne 0x40756e
mov eax, edi
lea ecx, [ebp - 0x16]
push 0
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0040aee0
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x70]
push eax
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 6
call fcn.0040ad46
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
call fcn.00407311
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00407311
xor edi, edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push edi
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x20], esi
call fcn.0040ae4d
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
call fcn.00407311
cmp dword [ebp - 0x10], edi
je 0x4075e7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x1a8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret