Function at 0x45ca31
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522cfe
mov eax, dword fs:[0]
push eax
sub esp, 0x9a4
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x99c], ecx
and dword [ebp - 0x988], 0
push 0xc8
push 0
lea eax, [ebp - 0xd8]
push eax
call fcn.004b0090
add esp, 0xc
push 0x410
push 0
lea eax, [ebp - 0x8f8]
push eax
call fcn.004b0090
add esp, 0xc
push 0x410
push 0
lea eax, [ebp - 0x4e8]
push eax
call fcn.004b0090
add esp, 0xc
lea eax, [ebp - 0x8f8]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x45ce09
push str.TencentTenioDLCommon.ini
lea ecx, [ebp - 0x938]
call fcn.00409053
mov dword [ebp - 4], 1
lea eax, [ebp - 0x8f8]
push eax
lea ecx, [ebp - 0x920]
call fcn.00409053
mov byte [ebp - 4], 2
push 0x5c
lea eax, [ebp - 0x938]
push eax
lea eax, [ebp - 0x920]
push eax
lea eax, [ebp - 0x968]
push eax
call fcn.00481988
add esp, 0x10
mov dword [ebp - 0x98c], eax
mov eax, dword [ebp - 0x98c]
mov dword [ebp - 0x990], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x990]
call fcn.0040a5f1
push eax
push 0x208
lea eax, [ebp - 0x4e8]
push eax
call fcn.004cc3b7
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x968]
call fcn.0040a62b
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
lea eax, [ebp - 0x968]
mov dword [ebp - 0x9a0], eax
mov byte [ebp - 4], 6
mov byte [ebp - 4], 7
mov byte [ebp - 4], 2
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x920]
call fcn.0040a62b
mov byte [ebp - 4], 9
mov byte [ebp - 4], 1
lea eax, [ebp - 0x920]
mov dword [ebp - 0x9a4], eax
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x938]
call fcn.0040a62b
mov dword [ebp - 4], 0xd
mov byte [ebp - 4], 0
lea eax, [ebp - 0x938]
mov dword [ebp - 0x9a8], eax
mov dword [ebp - 4], 0xe
mov dword [ebp - 4], 0xf
mov byte [ebp - 4], 0
lea eax, [ebp - 0x4e8]
push eax
push 0x64
lea eax, [ebp - 0xd8]
push eax
push 0x534ddc
push 0x534fe4
push 0x5352fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xd8]
push eax
call fcn.004cc4f3
pop ecx
cmp eax, 0x26
je 0x45cdbe
xor eax, eax
lea edi, [ebp - 0x908]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x45cdbc
xor eax, eax
inc eax
imul eax, eax, 7
movzx eax, byte [ebp + eax - 0x900]
push eax
xor eax, eax
inc eax
imul eax, eax, 6
movzx eax, byte [ebp + eax - 0x900]
push eax
xor eax, eax
inc eax
imul eax, eax, 5
movzx eax, byte [ebp + eax - 0x900]
push eax
xor eax, eax
inc eax
shl eax, 2
movzx eax, byte [ebp + eax - 0x900]
push eax
xor eax, eax
inc eax
imul eax, eax, 3
movzx eax, byte [ebp + eax - 0x900]
push eax
xor eax, eax
inc eax
shl eax, 1
movzx eax, byte [ebp + eax - 0x900]
push eax
xor eax, eax
inc eax
shl eax, 0
movzx eax, byte [ebp + eax - 0x900]
push eax
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x900]
push eax
movzx eax, word [ebp - 0x902]
push eax
movzx eax, word [ebp - 0x904]
push eax
push dword [ebp - 0x908]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0xd8]
push eax
call fcn.00418a75
add esp, 0x34
lea eax, [ebp - 0x4e8]
push eax
lea ecx, [ebp - 0x950]
call fcn.00409053
mov dword [ebp - 4], 0x10
lea eax, [ebp - 0x950]
push eax
lea eax, [ebp - 0x980]
push eax
call fcn.004815a2
pop ecx
pop ecx
mov dword [ebp - 0x994], eax
mov eax, dword [ebp - 0x994]
mov dword [ebp - 0x998], eax
mov byte [ebp - 4], 0x11
push 1
push dword [ebp - 0x998]
call fcn.004812a5
pop ecx
pop ecx
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x980]
call fcn.0040a62b
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x980]
mov dword [ebp - 0x9ac], eax
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x10
mov dword [ebp - 4], 0x16
lea ecx, [ebp - 0x950]
call fcn.0040a62b
mov dword [ebp - 4], 0x17
mov byte [ebp - 4], 0
lea eax, [ebp - 0x950]
mov dword [ebp - 0x9b0], eax
mov dword [ebp - 4], 0x18
mov dword [ebp - 4], 0x19
mov byte [ebp - 4], 0
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0xd8]
push eax
push str.GUID
push 0x5355ac
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x45ce09
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x984], eax
cmp dword [ebp - 0x984], 0
je 0x45ce09
mov eax, dword [ebp - 0x984]
movzx eax, word [eax]
test eax, eax
je 0x45ce09
mov eax, dword [ebp - 0x984]
movzx eax, word [eax]
push eax
call fcn.004d78e7
pop ecx
mov ecx, dword [ebp - 0x984]
mov word [ecx], ax
mov eax, dword [ebp - 0x984]
inc eax
inc eax
mov dword [ebp - 0x984], eax
jmp 0x45cdca
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00409053
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x988]
or eax, 1
mov dword [ebp - 0x988], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad99f
leave
ret 4