Function at 0x10029540
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
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 esi, dword [ebp + 0xc]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
push 0
push 0x80
push 3
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 1
cmovae eax, dword [ebp - 0x44]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100295c5
mov edi, 0xfffffffd
jmp 0x100297a8
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x64]
push eax
push ebx
call edi
test eax, eax
jne 0x100295e7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xfffffffc
jmp 0x100297a8
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x64]
push 0
push 0x80
push 3
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x1002962d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xfffffffb
jmp 0x100297a8
lea ecx, [ebp - 0x64]
push ecx
push eax
call edi
test eax, eax
jne 0x10029650
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x50]
call esi
mov edi, 0xfffffffa
jmp 0x100297a8
cmp esi, dword [ebp - 0x64]
jne 0x10029795
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x60]
jne 0x10029795
or esi, eax
jne 0x1002967e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x50]
call esi
xor edi, edi
jmp 0x100297a8
push 0x32000
call fcn.1008bff2
mov esi, eax
push 0x32000
mov dword [ebp - 0x54], esi
call fcn.1008bff2
add esp, 8
mov dword [ebp - 0x58], eax
xor edi, edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], edi
push edi
push eax
push 0x32000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10029772
nop dword [eax]
cmp dword [ebp - 0x4c], edi
jbe 0x10029772
push 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
push eax
push 0x32000
push dword [ebp - 0x58]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002976d
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x5c], ecx
jne 0x1002976d
mov edx, esi
mov esi, dword [ebp - 0x58]
sub ecx, 4
jb 0x10029711
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10029716
add edx, 4
add esi, 4
sub ecx, 4
jae 0x10029700
cmp ecx, 0xfffffffc
je 0x10029743
mov al, byte [edx]
cmp al, byte [esi]
jne 0x10029766
cmp ecx, 0xfffffffd
je 0x10029743
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x10029766
cmp ecx, 0xfffffffe
je 0x10029743
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x10029766
cmp ecx, 0xffffffff
je 0x10029743
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x10029766
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
push 0
push eax
push 0x32000
push esi
push ebx
mov dword [ebp - 0x4c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100296c0
jmp 0x10029772
mov edi, 0xffffff38
jmp 0x10029772
mov edi, 0xffffff9c
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x54]
call fcn.1008c032
push dword [ebp - 0x58]
call fcn.1008c032
add esp, 8
jmp 0x100297a8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x50]
call esi
mov edi, 0xfffffff9
lea ecx, [ebp - 0x2c]
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, edi
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