Function at 0x45f9d2
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x2d0
mov eax, 0x479ef6
call fcn.0046e476
and dword [ebp - 0x268], 0
xor ecx, ecx
and dword [ebp - 0x264], 0
mov eax, dword [ebp + 8]
and dword [ebp - 0x268], 0
push 7
pop ebx
mov dword [ebp - 0x264], ebx
mov word [ebp - 0x278], cx
and dword [ebp - 4], ecx
push str.devtools_resources.pak
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0040f180
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
push eax
call fcn.0040bc30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.0040bbd0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
and dword [ebp - 0x250], ecx
and dword [ebp - 0x24c], ecx
and dword [ebp - 0x250], ecx
lea ecx, [ebp - 0x260]
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x24c], ebx
call fcn.0040bf40
mov byte [ebp - 4], 2
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040f240
add esp, 0xc
mov byte [ebp - 4], 3
and dword [ebp - 0x238], 0
and dword [ebp - 0x234], 0
and dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45feb7
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x230]
push eax
call ebx
test eax, eax
je 0x45fbe0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call sub.common.dll_bool___cdecl_ierd_tgp::common::u16to8_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
pop ecx
pop ecx
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x45feb7
mov ecx, dword [esi]
push 1
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x45feb7
push 0x48bbc7
push 0x635
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 1
push esi
lea ecx, [ebp - 0x2dc]
call fcn.0043df1b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 0x10
cmovae ecx, dword [ebp - 0x248]
push ecx
push str._AsyncTask_Delete_file_success:__s.
push 0
push eax
call fcn.0043f4bb
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2dc]
call fcn.0043e231
jmp 0x45feb7
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x45fc45
mov ecx, dword [esi]
push 5
mov eax, dword [ecx + 0x18]
mov ecx, esi
call eax
test al, al
je 0x45fc45
push 0x48bbc7
push 0x639
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 5
push esi
lea ecx, [ebp - 0x2dc]
call fcn.0043df1b
mov esi, eax
mov byte [ebp - 4], 6
call edi
push eax
push str._AsyncTask_Delete_file_fail:__d.
push 0
push esi
call fcn.0043f4bb
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2dc]
call fcn.0043e231
push str..bak
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0040f180
mov byte [ebp - 4], 7
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call sub.common.dll_bool___cdecl_ierd_tgp::common::u16to8_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
add esp, 0x14
lea ecx, [ebp - 0x290]
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x290]
cmp dword [ebp - 0x21c], 8
push ecx
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x45fd10
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x45fea8
mov ecx, dword [esi]
push 1
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x45fea8
push 0x48bbc7
push 0x63e
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 1
push esi
lea ecx, [ebp - 0x2dc]
call fcn.0043df1b
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 0x10
cmovae ecx, dword [ebp - 0x248]
push ecx
push str._AsyncTask_Rename_file_success:__s.
push 0
push eax
jmp 0x45fe91
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x45fd84
mov ecx, dword [esi]
push 1
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x45fd84
push 0x48bbc7
push 0x643
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 1
push esi
lea ecx, [ebp - 0x2dc]
call fcn.0043df1b
mov esi, eax
mov byte [ebp - 4], 9
call edi
cmp dword [ebp - 0x234], 0x10
lea ecx, [ebp - 0x248]
push eax
cmovae ecx, dword [ebp - 0x248]
push ecx
push str._AsyncTask_Rename_file_fail:__s____d.
push 0
push esi
call fcn.0043f4bb
add esp, 0x14
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2dc]
call fcn.0043e231
push str..bak
lea ecx, [ebp - 0x230]
call fcn.0040c0b0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45fea8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call ebx
test eax, eax
je 0x45fe49
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call sub.common.dll_bool___cdecl_ierd_tgp::common::u16to8_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
pop ecx
pop ecx
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x45fea8
mov ecx, dword [esi]
push 1
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x45fea8
push 0x48bbc7
push 0x64a
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 1
push esi
lea ecx, [ebp - 0x2dc]
call fcn.0043df1b
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 0x10
cmovae ecx, dword [ebp - 0x248]
push ecx
push str._AsyncTask_Delete_file_success:__s.
jmp 0x45fd08
call sub.common.dll_class_base::ILogger____cdecl_base::get_log_instance_void_
mov esi, eax
test esi, esi
je 0x45fea8
mov ecx, dword [esi]
push 5
mov edx, dword [ecx + 0x18]
mov ecx, esi
call edx
test al, al
je 0x45fea8
push 0x48bbc7
push 0x64c
push str.e:dailybuild_devwegame_clientcodesmain_tgp_daemon_src_tgp_daemon_main.cpp
push 5
push esi
lea ecx, [ebp - 0x2dc]
call fcn.0043df1b
mov esi, eax
mov byte [ebp - 4], 0xb
call edi
push eax
push str._AsyncTask_Delete_file_fail:__d.
push 0
push esi
call fcn.0043f4bb
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2dc]
call fcn.0043e231
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x290]
call fcn.0040bbd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.00420c80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.0040bbd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.0040bbd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.0040bbd0
call fcn.0046e420
ret 4