Function at 0x1002b9c0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d3121
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x60]
mov edi, dword [ebp + 0xc]
mov ecx, esi
push eax
mov dword [ebp - 0x68], 0
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x1002ba45
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x60]
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
push esi
call sym.XNewLookSch.dll_int___cdecl_LFile::touch_class_LString_const__
add esp, 4
mov edi, eax
jmp 0x1002bb72
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x68], 1
call sym.XNewLookSch.dll_public:_static_int___cdecl_LString::ws2str_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_____unsigned_int_
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x100efc64
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100a1278
mov byte [ebp - 4], 0
add esp, 0x14
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 0x10
jb 0x1002bac4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002baba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002bb97
push edx
push ecx
call fcn.1008bfe4
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
jne 0x1002bae2
or edi, 0xffffffff
jmp 0x1002bb72
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call sym.XNewLookSch.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_LString::get_utf8_str_void_
cmp byte [ebp + 0x10], 0
je 0x1002bb0e
push esi
push 1
lea eax, [ebp - 0x64]
mov word [ebp - 0x64], 0xbbef
push 3
push eax
mov byte [ebp - 0x62], 0xbf
call fcn.100a04c8
add esp, 0x10
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push esi
cmovae eax, dword [ebp - 0x44]
push 1
push dword [ebp - 0x34]
push eax
call fcn.100a04c8
push esi
mov edi, eax
call fcn.1009ffb4
mov edx, dword [ebp - 0x30]
add esp, 0x14
cmp edx, 0x10
jb 0x1002bb60
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002bb56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002bb9c
push edx
push ecx
call fcn.1008bfe4
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x60]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
call fcn.10092486
int3