Function at 0x5a3dd0
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x65c1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
xor edi, edi
push edi
push edi
push 3
push edi
push 3
mov esi, ecx
mov ecx, dword [esp + 0x78]
push 0x80000000
push eax
mov dword [esp + 0x44], ecx
mov dword [ecx], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, 0xffffffff
je 0x5a3e62
mov eax, dword [esi + 0x3234]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jbe 0x5a3e69
push edi
push edi
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x5a3e69
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a3e69
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x5a4260
push edi
lea eax, [esp + 0x18]
push eax
push 0xc
lea ecx, [esp + 0x3c]
push ecx
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x5a3f48
cmp dword [esp + 0x14], 0xc
jne 0x5a3f48
lea edx, [esp + 0x31]
push edx
call fcn.005a2570
mov edi, eax
lea eax, [esp + 0x38]
push eax
call fcn.005a2570
movsx ecx, byte [esp + 0x3f]
shl ecx, 0x18
or eax, ecx
mov ecx, dword [esp + 0x58]
add esp, 8
cmp ecx, eax
jb 0x5a4255
jne 0x5a3ef9
mov edx, dword [esi + 0x31ec]
mov al, byte [edx + 0x854]
mov cl, byte [esp + 0x30]
test al, al
je 0x5a3ee6
cmp cl, 8
je 0x5a3fc5
test al, al
jne 0x5a3ef9
cmp cl, 9
jne 0x5a3ef9
mov al, byte [esp + 0x3b]
and al, 0xf0
cmp al, 0x10
je 0x5a3fc5
push 0
add edi, 0xf
add dword [esi + 0x3234], edi
mov eax, dword [esi + 0x3234]
push 0
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x5a3f23
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5a4255
push 0
lea ecx, [esp + 0x18]
push ecx
push 0xc
lea edx, [esp + 0x3c]
push edx
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5a3e89
lea eax, [esp + 0x1c]
push eax
xor edi, edi
push ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x5a4216
test edi, edi
jne 0x5a4216
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x5a4212
lea ecx, [esp + 0x18]
call fcn.00402500
mov dword [esp + 0x48], edi
push ebx
lea ecx, [esp + 0x1c]
push str.Error_during_GetFileSize____errcode___d._n
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
mov ecx, esi
call fcn.0055b6c0
xor ebp, ebp
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
mov ebx, dword [esp + 0x20]
jmp 0x5a422a
lea eax, [edi + 0xf]
mov edi, dword [esp + 0x5c]
cmp edi, eax
jne 0x5a4255
lea ebp, [edi - 0xc]
push ebp
mov dword [esp + 0x28], 1
call fcn.005ec342
push edi
mov dword [esp + 0x24], eax
call fcn.005ec342
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x5a4255
test eax, eax
je 0x5a4255
push 0
lea edx, [esp + 0x18]
push edx
push ebp
push ecx
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a41f9
cmp dword [esp + 0x14], ebp
jne 0x5a41f9
mov eax, dword [esi + 0xa0]
mov ecx, dword [eax + 0x10]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5a41dc
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5a40b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5a40b3
mov edx, dword [esp + 0x1c]
push edx
call fcn.005ec337
mov eax, dword [esp + 0x1c]
push eax
call fcn.005ec337
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x20]
jmp 0x5a4255
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a41d3
cmp dword [esp + 0x14], edi
jne 0x5a41d3
mov eax, 0xc
mov ecx, esi
lea edx, [esp + 0x30]
lea esp, [esp]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x5a418b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x5a40f0
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov dword [esp + 0x24], eax
test eax, eax
je 0x5a41d3
mov ecx, ebp
lea edx, [esi + 0xc]
mov esi, dword [esp + 0x1c]
cmp ecx, 4
jb 0x5a4144
lea ecx, [ecx]
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x5a4148
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x5a4130
test ecx, ecx
je 0x5a41c2
movzx eax, byte [esi]
movzx edi, byte [edx]
sub eax, edi
jne 0x5a4183
cmp ecx, 1
jbe 0x5a41c2
movzx eax, byte [esi + 1]
movzx edi, byte [edx + 1]
sub eax, edi
jne 0x5a4183
cmp ecx, 2
jbe 0x5a41c2
movzx eax, byte [esi + 2]
movzx edi, byte [edx + 2]
sub eax, edi
jne 0x5a4183
cmp ecx, 3
jbe 0x5a41c2
movzx eax, byte [esi + 3]
movzx ecx, byte [edx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x5a41c4
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x5a41b7
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x5a41b7
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x5a41b7
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
jmp 0x5a410a
xor eax, eax
mov esi, dword [esp + 0x18]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0x24], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5a41e0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push eax
call fcn.005ec337
push esi
call fcn.005ec337
mov ebx, dword [esp + 0x28]
add esp, 8
jmp 0x5a4255
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005ec337
mov edx, dword [esp + 0x1c]
push edx
call fcn.005ec337
add esp, 8
jmp 0x5a4255
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 1
push 0
push 0
push eax
call fcn.0061cd30
add ebp, eax
adc edi, edx
mov eax, dword [esi + 0x3234]
xor ecx, ecx
add eax, 0xc
cmp ecx, edi
jl 0x5a4255
jg 0x5a423f
cmp eax, ebp
jbe 0x5a4255
push str.Next_file_in_cmpkf_is_too_small_n
mov ecx, esi
call fcn.0055b6c0
mov ecx, dword [esp + 0x28]
mov dword [ecx], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0061807e
add esp, 0x38
ret 0x18