Function at 0x480790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c461e
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x4e880c]
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
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, edi
mov dword [edi + 0x2c], eax
call fcn.00480220
mov ecx, edi
mov dword [edi + 0x30], eax
call fcn.00480280
mov dword [edi + 0x34], eax
cmp word [0x4eaff8], 0
jne 0x48085a
lea eax, [ebp - 0x280]
push eax
push 0x20019
push 0
push str.SoftwareTencentTencentDLSettings
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x280], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x480850
mov esi, dword [ebp - 0x280]
lea ecx, [ebp - 0x280]
push ecx
push 0x4eaff8
push str.logFile
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x280], 0x105
call fcn.0047fd60
test esi, esi
je 0x480850
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x4eaff8], 0
je 0x48086d
push 0x104
lea ebx, [edi + 0x38]
push 0x4eaff8
push ebx
jmp 0x480a2a
push 0x208
lea ebx, [edi + 0x38]
push 0
push ebx
call fcn.0048c300
add esp, 0xc
push ebx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4809c3
mov edx, dword [0x4ec1bc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ec1bc
call eax
add eax, 0x10
mov dword [ebp - 0x280], eax
lea ecx, [ebp - 0x2a0]
push 0
push ecx
mov dword [ebp - 4], 0
call fcn.00445df0
push 0x4caa50
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 1
call fcn.0040dae0
add esp, 0x14
mov esi, 8
cmp dword [ebp - 0x288], esi
mov byte [ebp - 4], 3
jb 0x4808fb
mov eax, dword [ebp - 0x29c]
push eax
call fcn.0048c049
add esp, 4
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x28c], eax
mov word [ebp - 0x29c], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x288], 7
jae 0x48091f
lea eax, [ebp - 0x28]
push str..tlg
push str.TencentDL
push eax
lea ecx, [ebp - 0x280]
push str._s_s_s
push ecx
call fcn.004804b0
mov esi, dword [ebp - 0x280]
mov edx, dword [esi - 0xc]
add esp, 0x14
cmp dword [esi - 4], 1
mov dword [ebp - 0x284], edx
jle 0x480967
mov eax, edx
push eax
lea ecx, [ebp - 0x280]
call fcn.00480330
mov esi, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x284]
push ecx
push esi
push ebx
call fcn.004907a1
add esp, 0xc
cmp dword [ebp - 0x14], 8
jb 0x48098a
mov edx, dword [ebp - 0x28]
push edx
call fcn.0048c049
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], 7
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x480a32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x480a32
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x2e
push ebx
call fcn.0048ee33
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x284], esi
je 0x480a32
mov ecx, ebx
lea eax, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4809f0
sub ecx, eax
sar ecx, 1
mov eax, ecx
mov ecx, esi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x480a06
sub ecx, esi
sar ecx, 1
sub ecx, eax
add ecx, 0x103
push ecx
mov ecx, dword [ebp - 0x284]
push str..tlg
push ecx
call fcn.004907a1
add esp, 0xc
push str.NoTXLog
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x480a53
mov byte [edi + 0x253], 1
jmp 0x480a97
lea edx, [ebp - 0x27c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x480a8b
cmp dword [ebp - 0x260], 0
jne 0x480a7d
cmp dword [ebp - 0x25c], 0x1400000
jbe 0x480a84
mov ecx, edi
call fcn.0047ff60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4806d0
mov ecx, edi
call fcn.004812e0
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.0048c010
mov esp, ebp
pop ebp
ret