Function at 0x497fd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, ecx
mov eax, dword [ebp + 8]
test byte [eax], 1
je 0x497feb
mov eax, dword [eax + 8]
jmp 0x497fee
add eax, 1
sub esp, 0x14
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 0x10], 0x5c
mov dword [esp + 8], str._s_cTemporaryDir_XXXXXX
call fcn.00497f60
add esp, 0x14
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov eax, esp
push eax
push edi
call fcn.004bcdd0
add esp, 8
test al, al
je 0x4980e8
movzx eax, byte [esp]
lea ebx, [esp + 2]
test al, 1
je 0x498051
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x498055
shr eax, 1
mov ecx, ebx
add eax, 1
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wmktemp_s]
add esp, 8
xor esi, esi
test eax, eax
jne 0x498081
test byte [esp], 1
je 0x498073
mov ebx, dword [esp + 8]
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
test eax, eax
je 0x4980a2
test byte [esp], 1
je 0x498093
push dword [esp + 8]
call fcn.00422980
add esp, 4
test esi, esi
setne al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 4]
push eax
call fcn.004bcb30
add esp, 8
test al, al
je 0x498162
test byte [esp + 0x10], 1
je 0x4981cc
mov eax, dword [esp + 0x18]
jmp 0x4981d0
sub esp, 0x14
movaps xmm0, xmmword [0x55c560]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.system_libbase_file.cpp
lea esi, [esp + 0x24]
mov ecx, esi
call fcn.0043ce40
mov ecx, esi
call fcn.0043ce10
push 0x3d
push str.Check_failed:_android::base::UTF8ToWide_name_template__path_
push eax
call fcn.0041b3d0
add esp, 0xc
push 1
push 0x55c626
push eax
call fcn.0041b3d0
add esp, 0xc
push 0x22
push str.path_cant_be_converted_to_wchar:
push eax
call fcn.0041b3d0
add esp, 0xc
mov ebx, eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push edi
push ebx
call fcn.0041b3d0
add esp, 0xc
mov ecx, esi
call fcn.0043cf10
jmp 0x49803b
sub esp, 0x14
movaps xmm0, xmmword [0x55c570]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.system_libbase_file.cpp
lea esi, [esp + 0x34]
mov ecx, esi
call fcn.0043ce40
mov ecx, esi
call fcn.0043ce10
push 0x39
push str.Check_failed:_android::base::WideToUTF8_path__path_utf8_
push eax
call fcn.0041b3d0
add esp, 0xc
push 1
push 0x55c626
push eax
call fcn.0041b3d0
add esp, 0xc
push 0x1f
push str.path_cant_be_converted_to_utf8
push eax
call fcn.0041b3d0
add esp, 0xc
mov ecx, esi
call fcn.0043cf10
test byte [esp + 0x10], 1
jne 0x4980df
lea eax, [esp + 0x11]
push eax
push 0x400
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
test eax, eax
jne 0x498208
test byte [esp + 0x10], 1
je 0x4981f7
push dword [esp + 0x18]
call fcn.00422980
add esp, 4
mov esi, edi
test byte [esp], 1
jne 0x498087
jmp 0x498093
sub esp, 0x14
movaps xmm0, xmmword [0x55c580]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.system_libbase_file.cpp
lea esi, [esp + 0x34]
mov ecx, esi
call fcn.0043ce40
mov ecx, esi
call fcn.0043ce10
push 0x4c
push str.Check_failed:_strcpy_s_name_template__size_in_chars__path_utf8.c_str_____0
push eax
call fcn.0041b3d0
add esp, 0xc
push 1
push 0x55c626
push eax
call fcn.0041b3d0
add esp, 0xc
push 0x31
push str.utf8_path_cant_be_assigned_back_to_name_template
push eax
call fcn.0041b3d0
add esp, 0xc
mov ecx, esi
call fcn.0043cf10
test byte [esp + 0x10], 1
jne 0x4981eb
jmp 0x4981f7