Function at 0x432110
Capabilities:
Get disk size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcc18
mov eax, dword fs:[0]
push eax
sub esp, 0x90
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 - 0x48]
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 - 0x80]
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_
push 0
push 0x20000080
push 3
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmovae eax, dword [ebp - 0x44]
push 0
push 1
push connect
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x432197
or esi, eax
jmp 0x432359
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
push 0
cmovae eax, dword [ebp - 0x7c]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4321cf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffd
jmp 0x432359
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x64]
cmovae eax, dword [ebp - 0x44]
movzx eax, word [eax]
push eax
call sym.XNewLook.exe_public:_void___thiscall_LString::constructor_wchar_t_
xor eax, eax
mov dword [ebp - 0x2c], vtable.LString.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
push 0x4d66a0
call fcn.00409940
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x60]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00408f20
lea ecx, [ebp - 0x2c]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x98]
mov esi, 0x200
push ecx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x9c]
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 4
test eax, eax
push 0x1000
cmovne esi, dword [ebp - 0x90]
push esi
push 0
mov dword [ebp - 0x8c], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4322ab
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov esi, 0xfffffe0c
jmp 0x432351
push 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
push dword [ebp - 0x8c]
mov dword [ebp - 0x88], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432335
nop word [eax + eax]
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x432335
push 0
lea ecx, [ebp - 0x88]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x432306
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
push dword [ebp - 0x8c]
mov dword [ebp - 0x88], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4322e0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
xor esi, esi
lea ecx, [ebp - 0x64]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x80]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x48]
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