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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bca40
mov eax, dword fs:[0]
push eax
sub esp, 0x58
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 - 0x2c]
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 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 0x4312c5
mov edi, 0xfffffffd
jmp 0x4314a8
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x64]
push eax
push ebx
call edi
test eax, eax
jne 0x4312e7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xfffffffc
jmp 0x4314a8
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 0x43132d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xfffffffb
jmp 0x4314a8
lea ecx, [ebp - 0x64]
push ecx
push eax
call edi
test eax, eax
jne 0x431350
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x50]
call esi
mov edi, 0xfffffffa
jmp 0x4314a8
cmp esi, dword [ebp - 0x64]
jne 0x431495
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x60]
jne 0x431495
or esi, eax
jne 0x43137e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x50]
call esi
xor edi, edi
jmp 0x4314a8
push 0x32000
call fcn.004759b9
mov esi, eax
push 0x32000
mov dword [ebp - 0x54], esi
call fcn.004759b9
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 0x431472
nop dword [eax]
cmp dword [ebp - 0x4c], edi
jbe 0x431472
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 0x43146d
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x5c], ecx
jne 0x43146d
mov edx, esi
mov esi, dword [ebp - 0x58]
sub ecx, 4
jb 0x431411
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x431416
add edx, 4
add esi, 4
sub ecx, 4
jae 0x431400
cmp ecx, 0xfffffffc
je 0x431443
mov al, byte [edx]
cmp al, byte [esi]
jne 0x431466
cmp ecx, 0xfffffffd
je 0x431443
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x431466
cmp ecx, 0xfffffffe
je 0x431443
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x431466
cmp ecx, 0xffffffff
je 0x431443
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x431466
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 0x4313c0
jmp 0x431472
mov edi, 0xffffff38
jmp 0x431472
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.004759e5
push dword [ebp - 0x58]
call fcn.004759e5
add esp, 8
jmp 0x4314a8
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.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, 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.00475880
mov esp, ebp
pop ebp
ret