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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bce4a
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f9008]
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.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 0
jne 0x4335c6
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x60]
call sym.XNewLook.exe_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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
push esi
call sym.XNewLook.exe_int___cdecl_LFile::touch_class_LString_const__
add esp, 4
mov esi, eax
jmp 0x43371d
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.XNewLook.exe_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 0x4d66a8
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004870f5
mov byte [ebp - 4], 0
add esp, 0x14
mov edx, dword [ebp - 0x30]
mov edi, eax
cmp edx, 0x10
jb 0x433645
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43363b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433743
push edx
push ecx
call fcn.00475891
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
test edi, edi
jne 0x433663
or esi, 0xffffffff
jmp 0x43371d
cmp byte [ebp + 0x10], 0
lea esi, [ebx + 4]
je 0x43369f
push edi
push 1
lea eax, [ebp - 0x64]
mov word [ebp - 0x64], 0xfeff
push 2
push eax
call fcn.00487a5a
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x43368e
mov esi, dword [esi]
push edi
push 1
add eax, eax
push eax
push esi
call fcn.00487a5a
add esp, 0x10
jmp 0x433712
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.XNewLook.exe_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.00487a5a
mov edx, dword [ebp - 0x14]
add esp, 0x1c
cmp edx, 0x10
jb 0x433712
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x433708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433748
push edx
push ecx
call fcn.00475891
add esp, 8
push edi
call fcn.00487369
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x60]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret
call fcn.0047cd61
call fcn.0047cd61
int3