Function at 0x434490
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd0d6
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.004b3620
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 ecx, dword [ebp + 8]
lea eax, [ebp - 0x1064]
mov esi, dword [ebp + 0xc]
push eax
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
lea eax, [ebp - 0x1048]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
lea eax, [ebp - 0x102c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1048]
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x102c]
setne bl
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x43457a
cmp byte [ebp + 0x10], 0
jne 0x4345d7
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1048]
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea ecx, [ebp - 0x102c]
setne bl
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x4345d7
cmp dword [ebp - 0x104c], 8
lea eax, [ebp - 0x1060]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmovae eax, dword [ebp - 0x1060]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4345d7
lea eax, [ebp - 0x1074]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4345d0
mov eax, dword [ebp - 0x1074]
or eax, dword [ebp - 0x1070]
jne 0x43460d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea ecx, [ebp - 0x1048]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x1064]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov al, bl
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
cmp dword [ebp - 0x1030], 8
lea eax, [ebp - 0x1044]
push 0
cmovae eax, dword [ebp - 0x1044]
push 0x80000080
push 2
push 0
push 3
push 0xc0000000
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x4345d0
push 0
lea eax, [ebp - 0x1068]
mov dword [ebp - 0x1068], 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
mov bl, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4346cc
nop dword [eax]
mov eax, dword [ebp - 0x1068]
test eax, eax
je 0x4346cc
push 0
lea ecx, [ebp - 0x106c]
mov dword [ebp - 0x106c], 0
push ecx
push eax
lea eax, [ebp - 0x1010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
mov dword [ebp - 0x1068], 0
push 0
sbb al, al
and bl, al
lea eax, [ebp - 0x1068]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x434670
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x4345d9