Function at 0x407db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541acd
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
push 0x5704e4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], ebx
call fcn.004040f0
mov dword [ebp - 4], ebx
mov edi, 1
mov dword [ebp - 0x128], edi
call fcn.00417597
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407e23
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
push str.1905Client.exe
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [ebp - 0x118]
push 0x570bc4
push ecx
mov dword [ebp - 4], edi
call fcn.00403cc0
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov dword [ebp - 0x124], 0x104
mov byte [ebp - 0x114], bl
call fcn.00518f10
mov eax, dword [ebp - 0x118]
add esp, 0x1c
cmp eax, ebx
jne 0x407e86
xor eax, eax
jmp 0x407ece
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
cmp eax, 0x3fffffff
jg 0x407ec6
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b8f0
mov esi, esp
cmp esi, ebx
je 0x407ec6
mov eax, dword [ebp - 0x118]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push eax
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x407ec8
xor eax, eax
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x120]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407f8f
mov ecx, dword [ebp - 0x120]
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push str.ClientVersion
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407f8f
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x407fd8
lea eax, [edi + edi]
call fcn.0051b8f0
mov esi, esp
cmp esi, ebx
je 0x407fd8
push edi
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
push edx
push ebx
xor ecx, ecx
push 3
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x407fd8
mov eax, esi
mov edx, esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407f71
sub eax, esi
sar eax, 1
mov esi, dword [ebp - 0x11c]
push eax
push edx
mov ecx, esi
call fcn.004046e0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005155a4
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x407f80