Function at 0x5c0380
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x627ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x3c]
call fcn.005c17a0
mov dword [esp + 0x84], 0
mov dword [esp + 0x18], 0x633bf0
mov eax, dword [esi + 0x1c]
mov byte [esp + 0x84], 1
test eax, eax
mov edi, 0xc
jg 0x5c040b
jl 0x5c03d5
cmp dword [esi + 0x18], edi
jae 0x5c040b
mov esi, dword [esi + 0x14]
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 3
lea ecx, [esp + 0x3c]
mov dword [esp + 0x84], 0xffffffff
call fcn.005c17e0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
mov edx, dword [esi + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x60]
push edi
push ecx
push edx
call ebp
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.005c17f0
test eax, eax
je 0x5c0510
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x1c]
xor eax, eax
add edi, 8
cmp eax, ecx
jg 0x5c04f5
jl 0x5c045e
cmp edi, dword [esi + 0x18]
ja 0x5c04e0
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x6c]
push 8
push eax
push ecx
call ebp
push 4
lea edx, [esp + 0x68]
push 0x6e0ff4
push edx
call fcn.005e1940
add esp, 0xc
test eax, eax
jne 0x5c04a2
mov edx, dword [esi + 0x10]
push eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x70]
push eax
push 0x10
push ecx
push edx
call ebp
mov byte [esp + 0x54], 1
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x1c]
xor eax, eax
add edi, edx
cmp eax, ecx
jg 0x5c04f5
jl 0x5c04b8
cmp edi, dword [esi + 0x18]
ja 0x5c04e9
mov eax, dword [esi + 0x10]
push 0
push 0
push edi
push eax
call ebx
push 4
lea ecx, [esp + 0x68]
push 0x6e0fec
push ecx
call fcn.005e1940
add esp, 0xc
test eax, eax
je 0x5c0510
jmp 0x5c0443
cmp eax, dword [esi + 0x1c]
jl 0x5c0506
jg 0x5c04f5
jmp 0x5c04f0
cmp eax, dword [esi + 0x1c]
jl 0x5c0506
jg 0x5c04f5
cmp edi, dword [esi + 0x18]
jbe 0x5c0506
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5c0506
mov esi, 1
jmp 0x5c03e2
mov esi, 3
jmp 0x5c03e2
push 4
lea edx, [esp + 0x68]
push 0x6e0fec
push edx
call fcn.005e1940
add esp, 0xc
test eax, eax
jne 0x5c0664
mov al, byte [esp + 0x54]
test al, al
je 0x5c0664
lea ecx, [esp + 0x3c]
call fcn.005c1870
fld dword [esp + 0x50]
call fcn.005de5f4
mov ebx, edx
mov edi, eax
test ebx, ebx
jg 0x5c0568
jl 0x5c0558
test edi, edi
jae 0x5c0568
mov eax, dword [0x6ed484]
lea ecx, [esp + 0x1c]
push eax
push ecx
jmp 0x5c0612
push 0
push 0x3c
push ebx
push edi
call fcn.005e0090
mov ebp, eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, ebx
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.005dffe0
push 0
push 0x3c
push edx
push eax
call fcn.005e0090
push 0
push 0xe10
push ebx
push edi
mov dword [esp + 0x24], eax
call fcn.005dffe0
test edx, edx
jg 0x5c0608
jl 0x5c05b3
cmp eax, 0x2710
ja 0x5c0608
test eax, eax
je 0x5c05d3
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6ed4dc]
push ecx
push eax
lea eax, [esp + 0x24]
push edx
push eax
call fcn.005deb38
add esp, 0x10
jmp 0x5c061a
mov eax, dword [esp + 0x14]
push ebp
test eax, eax
je 0x5c05f3
mov ecx, dword [0x6ed4d8]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.005deb38
add esp, 0x10
jmp 0x5c061a
mov eax, dword [0x6ed4d4]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.005deb38
add esp, 0xc
jmp 0x5c061a
lea edx, [esp + 0x1c]
push 0x6bbf90
push edx
call fcn.005deb38
add esp, 8
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
add esi, 8
push eax
mov eax, dword [0x6ed530]
push ecx
push edx
push eax
push esi
call fcn.005f368b
add esp, 0x14
lea ecx, [esp + 0x3c]
mov dword [esp + 0x84], 0xffffffff
call fcn.005c17e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
lea ecx, [esp + 0x3c]
mov dword [esp + 0x84], 0xffffffff
call fcn.005c17e0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret