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

Disassembly:
push 0xffffffffffffffff
push 0x62d3e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov eax, dword [esp + 0x44]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
mov esi, ecx
push 3
mov ecx, dword [esp + 0x58]
push ebp
push 3
push bind
push ecx
mov dword [eax], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x5a3dd3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x18
mov eax, dword [esi + 0x3224]
cmp eax, ebp
jbe 0x5a3e16
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push eax
push ebx
call edi
cmp eax, 0xffffffff
jne 0x5a3e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a3e1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x18
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x4c]
push ebp
push edx
lea eax, [esp + 0x28]
push 0xc
push eax
push ebx
mov dword [esp + 0x60], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
je 0x5a3efd
cmp dword [esp + 0x4c], 0xc
jne 0x5a3efd
lea ecx, [esp + 0x21]
push ecx
call fcn.0059e4a0
lea edx, [esp + 0x28]
mov ebp, eax
push edx
call fcn.0059e4a0
movsx ecx, byte [esp + 0x2f]
shl ecx, 0x18
or eax, ecx
mov ecx, dword [esp + 0x44]
add esp, 8
cmp ecx, eax
jb 0x5a405e
jne 0x5a3eac
mov edx, dword [esi + 0x31dc]
mov cl, byte [esp + 0x20]
mov al, byte [edx + 0x854]
test al, al
je 0x5a3e95
cmp cl, 8
je 0x5a3f79
test al, al
jne 0x5a3eac
cmp cl, 9
jne 0x5a3eac
mov al, byte [esp + 0x2b]
and al, 0xf0
cmp al, 0x10
je 0x5a3f79
mov eax, dword [esi + 0x3224]
add ebp, 0xf
add eax, ebp
push 0
push 0
push eax
push ebx
mov dword [esi + 0x3224], eax
call edi
cmp eax, 0xffffffff
jne 0x5a3ed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5a405e
lea ecx, [esp + 0x4c]
push 0
push ecx
lea edx, [esp + 0x28]
push 0xc
push edx
push ebx
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5a3e3c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
xor edi, edi
cmp ebp, 0xffffffff
jne 0x5a40fa
test edi, edi
jne 0x5a40fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a40fa
mov edx, dword [0x6f175c]
mov dword [esp + 0x48], edx
push eax
lea eax, [esp + 0x4c]
push str.Error_during_GetFileSize____errcode___d._n
push eax
mov dword [esp + 0x40], edi
call fcn.005fa6fb
mov ecx, dword [esp + 0x54]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054b0f0
lea ecx, [esp + 0x48]
xor ebp, ebp
mov dword [esp + 0x34], 0xffffffff
call fcn.006018cc
jmp 0x5a410e
lea eax, [ebp + 0xf]
mov ebp, dword [esp + 0x48]
cmp ebp, eax
jne 0x5a405e
add ebp, 0xfffffff4
mov dword [esp + 0x14], 1
push ebp
call fcn.005fdccd
mov ecx, dword [esp + 0x4c]
mov edi, eax
push ecx
mov dword [esp + 0x58], edi
call fcn.005fdccd
add esp, 8
mov ebx, eax
test edi, edi
je 0x5a405a
test ebx, ebx
je 0x5a405a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push 0
push edx
push ebp
push edi
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a40e6
cmp dword [esp + 0x4c], ebp
jne 0x5a40e6
mov ecx, dword [esi + 0x90]
push 0
push 0
push 3
mov edx, dword [ecx + 0x10]
push 0
push 3
push bind
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x5a40e6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5a407e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a407e
push edi
call fcn.005fdcf6
push ebx
call fcn.005fdcf6
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x18
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x4c]
push 0
push eax
push esi
push ebx
push ebp
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a40df
cmp dword [esp + 0x4c], esi
jne 0x5a40df
mov ecx, 3
mov edi, ebx
lea esi, [esp + 0x20]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov eax, edx
sete al
test eax, eax
mov dword [esp + 0x14], eax
je 0x5a40db
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x50]
lea edi, [ebx + 0xc]
xor edx, edx
lea ecx, [eax - 0xc]
mov eax, edx
repe cmpsb byte [esi], byte es:[edi]
sete al
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x50]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.005fdcf6
push ebx
call fcn.005fdcf6
add esp, 8
jmp 0x5a405a
mov edx, dword [esp + 0x3c]
push 1
push 0
push 0
push edx
call fcn.005e7a50
add ebp, eax
adc edi, edx
mov eax, dword [esi + 0x3224]
xor ecx, ecx
add eax, 0xc
cmp ecx, edi
jl 0x5a405e
jg 0x5a412b
cmp eax, ebp
jbe 0x5a405e
push str.Next_file_in_cmpkf_is_too_small_n
mov ecx, esi
call fcn.0054b0f0
mov eax, dword [esp + 0x50]
mov dword [eax], 1
jmp 0x5a405e