Function at 0x407aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
push 0x5704e4
mov ecx, ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x120], edi
call fcn.004040f0
mov dword [ebp - 4], edi
mov esi, 1
mov dword [ebp - 0x120], esi
call fcn.00417515
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x407b12
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 - 0x11c], eax
push str.1905Client.exe
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [ebp - 0x11c]
push 0x570bac
push ecx
mov dword [ebp - 4], esi
call fcn.00403cc0
push 0x103
lea edx, [ebp - 0x113]
push edi
push edx
mov dword [ebp - 0x124], 0x104
mov byte [ebp - 0x114], 0
call fcn.00518ea0
mov eax, dword [ebp - 0x11c]
add esp, 0x1c
cmp eax, edi
jne 0x407b76
xor eax, eax
jmp 0x407bbe
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, esi
cmp eax, 0x3fffffff
jg 0x407bba
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b880
mov esi, esp
test esi, esi
je 0x407bba
mov eax, dword [ebp - 0x11c]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x407bbc
xor eax, eax
xor edi, edi
lea ecx, [ebp - 0x118]
push ecx
push 1
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407cd9
mov ecx, dword [ebp - 0x118]
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x114]
push eax
push edi
push edi
push str.ClientPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407cd9
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x407c8e
lea eax, [esi + esi]
call fcn.0051b880
mov edi, esp
test edi, edi
je 0x407c8e
push esi
push edi
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
xor ecx, ecx
push edx
push ecx
push 3
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x407c8e
mov eax, edi
mov edx, edi
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c60
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebx
call fcn.004046e0
mov eax, dword [ebx]
push 0x5c
push eax
call fcn.00517280
add esp, 8
test eax, eax
jne 0x407c94
or eax, 0xffffffff
jmp 0x407c98
xor edx, edx
xor eax, eax
jmp 0x407c6f
sub eax, dword [ebx]
sar eax, 1
push eax
lea eax, [ebp - 0x118]
push eax
mov ecx, ebx
call fcn.004037c0
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00404790
mov byte [ebp - 4], 1
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 0x407cd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407cff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
lea esp, [ebp - 0x134]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051553d
mov esp, ebp
pop ebp
ret