Function at 0x10011195
Capabilities:
Check if file exists
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cdc
call fcn.10018f80
mov eax, dword [0x1002b1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x2bbc], edi
mov dword [ebp - 0x2bbc], ebp
push 1
push dword [ebp - 0x2bbc]
push str.void___cdecl_TransferUserLoginConfig2Lua_void_
call fcn.1000b484
mov esi, eax
add esp, 0xc
mov eax, 0x10022fd8
cmp esi, edi
jne 0x100111df
mov esi, eax
push edi
push edi
push edi
push edi
push eax
push 0x10022f98
push esi
lea ecx, [ebp - 0x2c00]
call fcn.1000a370
cmp esi, edi
jne 0x100111fb
push ebp
pop ebp
lea ecx, [ebp - 0x2b78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp - 0x2b5c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call sub.MSVCR90.dll_memset
lea eax, [ebp - 0x20c]
push 0x1001d410
push eax
call sym.XmpSetupHelper.dll_GetProfileFolder
add esp, 0x20
push str.ProgramDataUserLoginuserdata.dat
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..lua
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2b94]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push eax
lea ecx, [ebp - 0x2b5c]
call fcn.10003c23
pop ecx
lea ecx, [ebp - 0x2b94]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x2b94]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push eax
lea ecx, [ebp - 0x2b78]
call fcn.10003c23
pop ecx
lea ecx, [ebp - 0x2b94]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x10011906
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x10011906
cmp dword [ebp - 0x2b44], 0x10
mov eax, dword [ebp - 0x2b58]
jae 0x1001133c
lea eax, [ebp - 0x2b58]
push 0x10021b88
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
jne 0x10011370
mov esi, 0x10022f18
push esi
call fcn.10005425
pop ecx
test eax, eax
jne 0x10011934
push 1
push str.file_open_FAILED___
jmp 0x1001191d
xor esi, esi
mov dword [ebp - 0x2bb4], edi
mov dword [ebp - 0x2bc8], esi
mov edi, 0x2710
inc dword [ebp - 0x2bb4]
push ebx
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x2b24]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
push ebx
mov dword [ebp - 0x2bb8], eax
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 0x14
test eax, eax
jne 0x100113db
add esi, dword [ebp - 0x2bb8]
push ebx
mov dword [ebp - 0x2bc8], esi
call dword [sym.imp.MSVCR90.dll_feof]
pop ecx
test eax, eax
jne 0x100113db
cmp dword [ebp - 0x2bb8], eax
je 0x100113db
cmp dword [ebp - 0x2bb4], edi
jl 0x10011383
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
mov eax, dword [ebp - 0x2b24]
add eax, 4
pop ecx
cmp esi, eax
je 0x10011412
mov esi, 0x10022f18
push esi
call fcn.10005425
pop ecx
test eax, eax
jne 0x10011934
push 1
push str.Len._of_File_NOT_EQUEAL_to_the_bytes_spec.
push 0
jmp 0x1001191e
cmp esi, 0xc
jge 0x10011434
mov esi, 0x10022f18
push esi
call fcn.10005425
pop ecx
test eax, eax
jne 0x10011934
push 1
push str.file_len._Too_small_
jmp 0x1001140b
lea ecx, [ebp - 0x2be8]
call fcn.100159e6
mov eax, dword [ebp - 0x2b1c]
and dword [ebp - 0x2bb4], 0
mov dword [ebp - 0x2bc0], eax
lea edi, [ebp - 0x2b18]
mov esi, 0x10022f18
test eax, eax
jle 0x10011613
mov eax, dword [edi + 4]
mov edx, dword [edi]
lea ebx, [eax + edi]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x2bb8], ecx
lea ecx, [ecx + eax + 8]
mov dword [ebp - 0x2bcc], edx
cmp edx, ecx
jne 0x100115ea
lea ecx, [ebp - 0x2b24]
sub edx, ecx
lea ecx, [edx + edi + 4]
cmp ecx, dword [ebp - 0x2bc8]
jg 0x100115ea
push eax
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x2b94]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push dword [ebp - 0x2bb8]
add ebx, 0xc
push ebx
lea ecx, [ebp - 0x2bb0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push esi
call fcn.10005425
pop ecx
test eax, eax
jne 0x10011558
push 1
sub esp, 0x1c
lea eax, [ebp - 0x2bb0]
mov ecx, esp
mov dword [ebp - 0x2bb8], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push str.__password:
sub esp, 0x1c
lea eax, [ebp - 0x2b94]
mov ecx, esp
mov dword [ebp - 0x2bb8], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push str.:_Account:
push dword [ebp - 0x2bb4]
push str.UserInfo_Item_No.
push 0
push esi
call fcn.10009855
pop ecx
pop ecx
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.1000152a
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.1000be49
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.1000be49
mov ecx, eax
call fcn.1000a33f
sub esp, 0x1c
lea eax, [ebp - 0x2bb0]
mov ecx, esp
mov dword [ebp - 0x2bb8], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x1c
lea eax, [ebp - 0x2b94]
mov ecx, esp
mov dword [ebp - 0x2bb8], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x2c54]
push eax
call fcn.10005f77
add esp, 0x3c
push eax
lea ecx, [ebp - 0x2be8]
call fcn.10008eb3
lea ecx, [ebp - 0x2c54]
call fcn.10004923
mov eax, dword [ebp - 0x2bcc]
lea ecx, [ebp - 0x2bb0]
lea edi, [edi + eax + 4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2b94]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
inc dword [ebp - 0x2bb4]
mov eax, dword [ebp - 0x2bb4]
cmp eax, dword [ebp - 0x2bc0]
jl 0x10011465
jmp 0x10011613
push esi
call fcn.10005425
pop ecx
test eax, eax
jne 0x10011613
push 1
push str.UserData.dat_Collapsed__
push eax
push esi
call fcn.10009855
pop ecx
pop ecx
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.1000a33f
lea ecx, [ebp - 0x2b40]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x2be8]
push eax
push dword [ebp - 0x2bdc]
lea ecx, [ebp - 0x2bc4]
call fcn.10015893
lea eax, [ebp - 0x2be8]
push eax
push dword [ebp - 0x2bd8]
lea ecx, [ebp - 0x2bd0]
call fcn.10015893
lea eax, [ebp - 0x2bd0]
push eax
lea ecx, [ebp - 0x2bc4]
call fcn.100049e3
test al, al
jne 0x100118e0
push esi
call fcn.10005425
pop ecx
test eax, eax
jne 0x10011692
push 1
push str.Save_to_lua_file_
push eax
push esi
call fcn.10009855
pop ecx
pop ecx
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.1000a33f
push str.function_GetSubTable___r_n_tlocal_t___r_n
lea ecx, [ebp - 0x2b40]
call dword [0x1001b234]
lea eax, [ebp - 0x2bd0]
push eax
lea ecx, [ebp - 0x2bc4]
mov dword [ebp - 0x2bb4], 1
call fcn.100049e3
test al, al
jne 0x10011845
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ebx, str.___r_n
push str.____r_n
lea ecx, [ebp - 0x2c38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov al, byte [ebp - 0x2bb4]
add al, 0x30
movzx eax, al
push eax
push 0x10022e30
lea ecx, [ebp - 0x2c1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
lea eax, [ebp - 0x2bb0]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_]
add esp, 0xc
push eax
lea eax, [ebp - 0x2b94]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
push eax
lea ecx, [ebp - 0x2b40]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x2b94]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2bb0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2c1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2c38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2bc4]
call fcn.10004a9b
push ebx
push eax
lea eax, [ebp - 0x2c1c]
push str._t_t_t__suserid_____
push eax
call edi
add esp, 0xc
push eax
lea eax, [ebp - 0x2c38]
push eax
call esi
add esp, 0xc
push eax
lea ecx, [ebp - 0x2b40]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x2c38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2c1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2bc4]
call fcn.10004a9b
push ebx
add eax, 0x1c
push eax
lea eax, [ebp - 0x2c1c]
push str._t_t_t__spwd_____
push eax
call edi
add esp, 0xc
push eax
lea eax, [ebp - 0x2c38]
push eax
call esi
add esp, 0xc
push eax
lea ecx, [ebp - 0x2b40]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x2c38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2c1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str._t_t__r_n
lea ecx, [ebp - 0x2b40]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
inc dword [ebp - 0x2bb4]
lea ecx, [ebp - 0x2bc4]
call fcn.10004be5
lea eax, [ebp - 0x2bd0]
push eax
lea ecx, [ebp - 0x2bc4]
call fcn.100049e3
test al, al
je 0x100116d8
push str._t_r_n
lea ecx, [ebp - 0x2b40]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str._treturn_t_r_n
lea ecx, [ebp - 0x2b40]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x10022dec
lea ecx, [ebp - 0x2b40]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [ebp - 0x2b60], 0x10
mov eax, dword [ebp - 0x2b74]
jae 0x1001188d
lea eax, [ebp - 0x2b74]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0x2cdc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::constructor_char_const___int__int_]
cmp dword [ebp - 0x2b28], 0x10
mov eax, dword [ebp - 0x2b3c]
jae 0x100118b5
lea eax, [ebp - 0x2b3c]
push dword [ebp - 0x2b2c]
lea ecx, [ebp - 0x2cdc]
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
lea ecx, [ebp - 0x2cdc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::close_void_]
lea ecx, [ebp - 0x2cdc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2b40]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2be8]
call fcn.10007f67
jmp 0x10011934
mov esi, 0x10022f18
push esi
call fcn.10005425
pop ecx
test eax, eax
jne 0x10011934
push 1
push str.userdata.dat_not_EXIST_or_userdata.lua_EXIST__return.
push edi
push esi
call fcn.10009855
pop ecx
pop ecx
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.1000a33f
lea ecx, [ebp - 0x2b5c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2b78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2c00]
call fcn.1000be71
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018dd2
leave
ret