Function at 0x404580
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x416a6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push 0x3ff
call ebp
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00404830
test eax, eax
je 0x404631
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00404af0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x430]
push eax
mov dword [esp + 0x42c], ebx
call fcn.00415d16
lea ecx, [esp + 0x10]
mov dword [esp + 0x428], 0xffffffff
call fcn.00415c98
mov eax, 1
jmp 0x404814
lea ecx, [esp + 0x20]
push 0x400
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.MSVCRT.dll_strrchr]
lea edx, [esp + 0x20]
push 0x5c
push edx
call edi
add esp, 8
test eax, eax
je 0x404667
lea eax, [esp + 0x20]
push 0x5c
push eax
call edi
add esp, 8
mov byte [eax + 1], bl
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00404830
test eax, eax
je 0x4046d3
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00404af0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x430]
push eax
mov dword [esp + 0x42c], 1
call fcn.00415d16
lea ecx, [esp + 0x10]
mov dword [esp + 0x428], 0xffffffff
call fcn.00415c98
mov eax, 1
jmp 0x404814
lea ecx, [esp + 0x18]
push ecx
push str.SoftwareTencentQQJH
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x404762
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push 0x400
push edx
push str.Path
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
cmp eax, ebx
je 0x40470e
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00404830
test eax, eax
je 0x404762
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x430]
push eax
mov dword [esp + 0x42c], 2
call fcn.00415d16
lea ecx, [esp + 0x1c]
mov dword [esp + 0x428], 0xffffffff
call fcn.00415c98
mov eax, 1
jmp 0x404814
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00404b90
mov ecx, dword [esp + 0x14]
push 0x4224d8
push ecx
mov dword [esp + 0x430], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4047d4
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00404af0
mov ecx, dword [esp + 0x430]
lea eax, [esp + 0x14]
push eax
call fcn.00415d16
lea ecx, [esp + 0x14]
mov dword [esp + 0x428], 0xffffffff
call fcn.00415c98
mov eax, 1
jmp 0x404814
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
push 0x3ff
call ebp
mov ecx, dword [esp + 0x430]
push 0x4224d8
call fcn.00415d0a
lea ecx, [esp + 0x14]
mov dword [esp + 0x428], 0xffffffff
call fcn.00415c98
xor eax, eax
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x41c
ret 4