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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcbc0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
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 edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], ebx
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
push 0
push 0x20000080
push 3
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 0
cmovae eax, dword [ebp - 0x44]
push 1
push connect
mov dword [ebx], 0
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x431f18
or esi, eax
jmp 0x4320e0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x431f37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xffffff38
jmp 0x4320e0
test eax, eax
jne 0x431f49
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x4320e0
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x64]
mov dword [ebx], eax
lea eax, [ebp - 0x44]
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], 2
lea ecx, [ebp - 0x28]
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
push 0x4d66a0
call fcn.00409940
mov byte [ebp - 4], 3
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]
mov byte [ebp - 4], 1
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
mov eax, 0x200
cmovne eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx]
add eax, 2
push eax
call fcn.004759b9
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x432017
push esi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffe70
jmp 0x4320d8
push 4
push 0x1000
push dword [ebp - 0x6c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x432051
push dword [edi]
call fcn.004759e5
mov edx, dword [ebp - 0x70]
add esp, 4
mov dword [edi], ebx
push esi
mov dword [edx], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffe0c
jmp 0x4320d8
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4320a8
nop word [eax + eax]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4320a8
push eax
mov eax, dword [ebp - 0x74]
push ebx
mov eax, dword [eax]
add eax, edi
push eax
call fcn.004790b0
add edi, dword [ebp - 0x68]
lea eax, [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x68], 0
push 0
push eax
push dword [ebp - 0x6c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x432070
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
mov ecx, dword [edx]
mov eax, dword [eax]
mov byte [ecx + eax], 0
cmp edi, dword [edx]
jne 0x4320d3
xor esi, esi
jmp 0x4320d8
mov esi, 0xffffff94
lea ecx, [ebp - 0x64]
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