Function at 0x45fefb
Capabilities:
Delete file
Query environment variable

Disassembly:
push 0x874
mov eax, 0x479f60
call fcn.0046e476
mov ebx, 0x208
lea eax, [ebp - 0x218]
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [ebp - 0x830]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x830]
mov esi, 0x104
push esi
push eax
push str.appdata
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [ebp - 0x830]
push str._tencentwegameqbcore91cacheqbcore_cache_tgp_daemon.exe_500000
push esi
push eax
call edi
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
push str.Cookies
lea eax, [ebp - 0x218]
push esi
push eax
call edi
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x880], eax
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x460009
mov eax, dword [esi]
mov ecx, esi
push 5
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x460009
push 0x48bbc7
push 0x74c
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 5
push esi
lea ecx, [ebp - 0x87c]
call fcn.0043df1b
mov esi, eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x880]
lea eax, [ebp - 0x218]
push eax
push str._DeleteQblinkCache__delete_file___ws__bRet___d__err__d
push 0
push esi
call fcn.0043f4bb
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0043e231
lea eax, [ebp - 0x830]
mov esi, 0x104
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
push str.Cookies_journal
lea eax, [ebp - 0x218]
push esi
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x880], eax
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x4600b7
mov ecx, dword [esi]
push 5
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x4600b7
push 0x48bbc7
push 0x752
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 5
push esi
lea ecx, [ebp - 0x87c]
call fcn.0043df1b
mov esi, eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x880]
lea eax, [ebp - 0x218]
push eax
push str._DeleteQblinkCache__delete_file___ws__bRet___d__err__d
push 0
push esi
call fcn.0043f4bb
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0043e231
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, 0x104
lea ecx, [ebp - 0x628]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
jmp 0x460108
cmp word [ebp + eax*2 - 0x628], 0x5c
je 0x46040d
sub eax, 1
jns 0x4600f9
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push esi
push eax
call ebx
push str.QBBlinkqbcache
lea eax, [ebp - 0x420]
push esi
push eax
call edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
push str.Cookies
lea eax, [ebp - 0x218]
push esi
push eax
call edi
add esp, 0x3c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x880], eax
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x4601e9
mov ecx, dword [esi]
push 5
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x4601e9
push 0x48bbc7
push 0x767
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 5
push esi
lea ecx, [ebp - 0x87c]
call fcn.0043df1b
mov esi, eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x880]
lea eax, [ebp - 0x218]
push eax
push str._DeleteQblinkCache__delete_file___ws__bRet___d__err__d
push 0
push esi
call fcn.0043f4bb
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0043e231
lea eax, [ebp - 0x420]
mov esi, 0x104
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
push str.Cookies_journal
lea eax, [ebp - 0x218]
push esi
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x880], eax
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x460297
mov ecx, dword [esi]
push 5
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x460297
push 0x48bbc7
push 0x76d
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 5
push esi
lea ecx, [ebp - 0x87c]
call fcn.0043df1b
mov esi, eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x880]
lea eax, [ebp - 0x218]
push eax
push str._DeleteQblinkCache__delete_file___ws__bRet___d__err__d
push 0
push esi
call fcn.0043f4bb
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0043e231
lea eax, [ebp - 0x628]
mov esi, 0x104
push eax
lea eax, [ebp - 0x420]
push esi
push eax
call ebx
push str.QBBlinkTrialqbcache
lea eax, [ebp - 0x420]
push esi
push eax
call edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
push str.Cookies
lea eax, [ebp - 0x218]
push esi
push eax
call edi
add esp, 0x30
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x880], eax
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x460365
mov ecx, dword [esi]
push 5
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x460365
push 0x48bbc7
push 0x777
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 5
push esi
lea ecx, [ebp - 0x87c]
call fcn.0043df1b
mov esi, eax
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x880]
lea eax, [ebp - 0x218]
push eax
push str._DeleteQblinkCache__delete_file___ws__bRet___d__err__d
push 0
push esi
call fcn.0043f4bb
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0043e231
lea eax, [ebp - 0x420]
mov esi, 0x104
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
push str.Cookies_journal
lea eax, [ebp - 0x218]
push esi
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x460407
mov ecx, dword [esi]
push 5
pop ebx
push ebx
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x460407
push 0x48bbc7
push 0x77d
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push ebx
push esi
lea ecx, [ebp - 0x87c]
call fcn.0043df1b
mov esi, eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
push str._DeleteQblinkCache__delete_file___ws__bRet___d__err__d
push 0
push esi
call fcn.0043f4bb
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0043e231
call fcn.0046e420
ret
add eax, eax
cmp eax, 0x208
jae 0x460425
xor ecx, ecx
mov word [ebp + eax - 0x628], cx
jmp 0x46010d
call fcn.0046eae3
int3