Function at 0x407d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54185d
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.00417515
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407da3
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 0x570bac
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.00518ea0
mov eax, dword [ebp - 0x118]
add esp, 0x1c
cmp eax, ebx
jne 0x407e06
xor eax, eax
jmp 0x407e4e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
cmp eax, 0x3fffffff
jg 0x407e46
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b880
mov esi, esp
cmp esi, ebx
je 0x407e46
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 0x407e48
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 0x407f0f
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 0x407f0f
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 0x407f58
lea eax, [edi + edi]
call fcn.0051b880
mov esi, esp
cmp esi, ebx
je 0x407f58
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 0x407f58
mov eax, esi
mov edx, esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407ef1
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 0x407f34
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.0051553d
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x407f00