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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2e50
mov eax, dword fs:[0]
push eax
sub esp, 0x78
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 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.XNewLookSch.dll_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 0x1002a188
or esi, eax
jmp 0x1002a350
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1002a1a7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xffffff38
jmp 0x1002a350
test eax, eax
jne 0x1002a1b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x1002a350
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.XNewLookSch.dll_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.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push 0x100efc5c
call fcn.10002b70
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.10011440
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call sym.XNewLookSch.dll_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.1008bff2
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x1002a287
push esi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffe70
jmp 0x1002a348
push 4
push 0x1000
push dword [ebp - 0x6c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1002a2c1
push dword [edi]
call fcn.1008c032
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 0x1002a348
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 0x1002a318
nop word [eax + eax]
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x1002a318
push eax
mov eax, dword [ebp - 0x74]
push ebx
mov eax, dword [eax]
add eax, edi
push eax
call fcn.1008d490
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 0x1002a2e0
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 0x1002a343
xor esi, esi
jmp 0x1002a348
mov esi, 0xffffff94
lea ecx, [ebp - 0x64]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x48]
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