Function at 0x463553
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x25c
mov eax, 0x47aa56
call fcn.0046e476
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.TencentWeGame_
lea eax, [ebp - 0x218]
push 0x103
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [ebp - 0x218]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 0x14
test eax, eax
je 0x4635d5
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4635d5
cmp eax, 0xb7
jne 0x463809
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], bl
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
push eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
call fcn.0040bf40
mov byte [ebp - 4], 1
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
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x230]
call fcn.0040bbd0
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x268]
push eax
push 0x4a883c
call fcn.00455f81
pop ecx
pop ecx
test al, al
je 0x4637e8
mov ecx, dword [ebp - 0x268]
test ecx, ecx
je 0x4637e8
mov eax, dword [ecx]
call dword [eax + 0x44]
mov esi, eax
test esi, esi
je 0x4637e8
push esi
call sub.lua51.dll_lua_gettop
mov dword [esp], str.crash_callback
mov edi, eax
push 0xffffd8ee
push esi
call sub.lua51.dll_lua_getfield
push 0xffffffffffffffff
push esi
call sub.lua51.dll_lua_type
add esp, 0x14
cmp eax, 6
jne 0x4637df
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push esi
call sub.lua51.dll_lua_pushstring
push ebx
push 1
push 1
push esi
call sub.lua51.dll_lua_pcall
add esp, 0x18
test eax, eax
jne 0x4637e8
push ebx
push 0xffffffffffffffff
push esi
call sub.lua51.dll_lua_tolstring
push 0xfffffffffffffffe
push esi
mov edi, eax
call sub.lua51.dll_lua_settop
add esp, 0x14
mov dword [ebp - 0x220], ebx
xor eax, eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 3
mov ecx, edi
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x260], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463765
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x260]
call fcn.00420e50
mov byte [ebp - 4], 4
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
call sub.common.dll_bool___cdecl_ierd_tgp::common::u8to16_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.00420c80
call dword [sym.imp.adapt_for_imports.dll_public:_static_class_crash_report::CrashReportLoader____cdecl_crash_report::CrashReportLoader::Instance_void_]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push 3
cmovae ecx, dword [ebp - 0x230]
push str.extra_file
push ebx
push ecx
mov ecx, eax
call dword [sym.imp.adapt_for_imports.dll_public:_int___thiscall_crash_report::CrashReportLoader::AddCrashReportHelperFile_wchar_t_const___wchar_t_const___wchar_t_const___unsigned_long_int_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.0040bbd0
jmp 0x4637e8
push edi
push esi
call sub.lua51.dll_lua_settop
pop ecx
pop ecx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x264]
test ecx, ecx
je 0x4637fa
call fcn.0043f26a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00420c80
call fcn.0046e420
ret