Function at 0x45e17a
Capabilities:
Enumerate files on windows
Get file attributes
Query environment variable

Disassembly:
push 0xcf8
mov eax, 0x479af0
call fcn.0046e476
mov edi, 0x208
lea eax, [ebp - 0x628]
push edi
xor ebx, ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push str.appdata
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x45e435
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x45e218
mov ecx, dword [esi]
push 5
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x45e218
push 0x48bbc7
push 0x7a5
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 5
push esi
lea ecx, [ebp - 0xab4]
call fcn.0043df1b
mov dword [ebp - 4], ebx
push str._CleanCache_succ_find_temp_path.
push ebx
push eax
call fcn.0043f4bb
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xab4]
call fcn.0043e231
xor eax, eax
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa54], ebx
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa54], 7
mov word [ebp - 0xa68], ax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x420]
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_wcsrchr
pop ecx
pop ecx
test eax, eax
je 0x45e28c
add eax, 2
lea ecx, [ebp - 0xa68]
push eax
call fcn.0040bf40
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x628]
push eax
push str._s_tencentwegameqbcore91cache
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00452bcf
add esp, 0x1c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x45e424
push edi
lea eax, [ebp - 0x830]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x218]
push eax
push str._s.
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00452bcf
push 0x250
lea eax, [ebp - 0xd04]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x28
lea eax, [ebp - 0xd04]
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45e424
push edi
lea eax, [ebp - 0xa38]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xa40], ebx
mov word [ebp - 0xa50], ax
lea ecx, [ebp - 0xa50]
lea eax, [ebp - 0xcd8]
mov dword [ebp - 0xa3c], ebx
push eax
mov dword [ebp - 0xa40], ebx
mov dword [ebp - 0xa3c], 7
call fcn.0040bf40
mov byte [ebp - 4], 2
lea eax, [ebp - 0xa50]
cmp dword [ebp - 0xa3c], 8
push 0x485fe0
cmovae eax, dword [ebp - 0xa50]
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x45e3f8
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
push 0x485fe4
cmovae eax, dword [ebp - 0xa50]
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x45e3f8
test byte [ebp - 0xd04], 0x10
je 0x45e3f8
lea eax, [ebp - 0xcd8]
push eax
lea eax, [ebp - 0x218]
push eax
push str._s_s
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.00452bcf
lea eax, [ebp - 0xa38]
push eax
call fcn.0045df3c
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa50]
call fcn.0040bbd0
lea eax, [ebp - 0xd04]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45e33d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa68]
call fcn.0040bbd0
jmp 0x45e491
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x45e491
mov ecx, dword [esi]
push 5
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x45e491
push 0x48bbc7
push 0x7ca
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 5
push esi
lea ecx, [ebp - 0xab4]
call fcn.0043df1b
mov dword [ebp - 4], 3
push str._CleanCache__not_find_temp_path.
push ebx
push eax
call fcn.0043f4bb
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xab4]
call fcn.0043e231
call fcn.0046e420
ret