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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d30da
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
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 ebx, dword [ebp + 0xc]
mov ecx, esi
push eax
mov dword [ebp - 0x64], 0
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 0
jne 0x1002b836
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 esi, eax
jmp 0x1002b98d
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x64], 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 - 0x30], 0x10
lea eax, [ebp - 0x44]
push 0x100efc64
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.100a1278
mov byte [ebp - 4], 0
add esp, 0x14
mov edx, dword [ebp - 0x30]
mov edi, eax
cmp edx, 0x10
jb 0x1002b8b5
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b8ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b9b3
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
test edi, edi
jne 0x1002b8d3
or esi, 0xffffffff
jmp 0x1002b98d
cmp byte [ebp + 0x10], 0
lea esi, [ebx + 4]
je 0x1002b90f
push edi
push 1
lea eax, [ebp - 0x64]
mov word [ebp - 0x64], 0xfeff
push 2
push eax
call fcn.100a04c8
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x1002b8fe
mov esi, dword [esi]
push edi
push 1
add eax, eax
push eax
push esi
call fcn.100a04c8
add esp, 0x10
jmp 0x1002b982
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x64], 2
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 edi
cmovae eax, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
push eax
call fcn.100a04c8
mov edx, dword [ebp - 0x14]
add esp, 0x1c
cmp edx, 0x10
jb 0x1002b982
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002b978
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b9b8
push edx
push ecx
call fcn.1008bfe4
add esp, 8
push edi
call fcn.1009ffb4
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x60]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
call fcn.10092486
int3