Function at 0x5c0d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627d56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 1
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
call fcn.005c07e0
test al, al
je 0x5c0ecf
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x18]
test eax, eax
jg 0x5c0dc7
jl 0x5c0dcc
cmp ebx, 0x2da0
jb 0x5c0dcc
mov ebx, 0x2da0
mov eax, ebx
xor ecx, ecx
neg eax
mov edx, dword [esi + 0x10]
push 2
adc ecx, ecx
mov dword [ebp - 0x14], ebx
neg ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5c0e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5c0e11
push eax
push 0x6e12c0
mov ecx, esi
call fcn.005c0c20
jmp 0x5c0ecf
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x5c0e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6e1280
mov ecx, esi
call fcn.005c0c20
jmp 0x5c0ecf
mov ecx, dword [esi + 0x10]
lea eax, [ebp + 0x14]
push 0
push eax
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c1214
cmp dword [ebp + 0x14], ebx
jb 0x5c1214
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x5c0e89
mov edx, dword [ecx]
push 1
mov byte [ebp - 4], 1
call dword [edx]
jmp 0x5c0e7f
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x58
call fcn.005f6c5c
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
mov byte [ebp - 4], 3
je 0x5c0ea9
call fcn.005c18c0
mov ecx, eax
jmp 0x5c0eab
xor ecx, ecx
test ecx, ecx
mov byte [ebp - 4], 0
mov dword [ebx], ecx
jne 0x5c0ee7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6e123c
mov ecx, esi
call fcn.005c0c20
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x14]
push eax
push edi
call fcn.005c19e0
cmp eax, 0xc8
je 0x5c0f3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6e11e8
mov ecx, esi
call fcn.005c0c20
mov ecx, dword [ebx]
test ecx, ecx
je 0x5c0f17
mov edx, dword [ecx]
push 1
call dword [edx]
push edi
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx]
push edi
mov ecx, dword [eax + 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
mov dword [eax + 0x10], edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebx]
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [edx + 0x38]
sub ecx, eax
mov eax, dword [ebp + 0x10]
sbb eax, edi
mov edi, dword [esi + 0x1c]
cmp edi, eax
jg 0x5c0f93
jl 0x5c0f74
mov eax, dword [esi + 0x18]
cmp eax, ecx
jae 0x5c0f93
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x5c0f93
mov eax, 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edx + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x5c0fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6e1280
mov ecx, esi
call fcn.005c0c20
mov ecx, dword [ebx]
test ecx, ecx
je 0x5c0fc5
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebx], 0
jmp 0x5c0ecf
mov ecx, dword [ebx]
mov edx, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ecx + 0x38]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, edi
mov edi, dword [esi + 0x1c]
cmp edi, eax
jl 0x5c1084
jg 0x5c0ff9
mov eax, dword [esi + 0x18]
cmp eax, edx
jb 0x5c1084
mov eax, dword [ecx + 0xc]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
sub eax, edi
push 2
sbb ecx, edx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5c1040
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5c1040
push eax
push 0x6e12c0
mov ecx, esi
call fcn.005c0c20
jmp 0x5c11d7
mov ecx, dword [ebx]
mov edi, dword [ebp - 0x14]
lea eax, [ebp + 0x14]
push 0
mov edx, dword [ecx + 0x10]
push eax
mov eax, dword [esi + 0x10]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c106c
mov ecx, dword [ebx]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ecx + 0x10]
je 0x5c119b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6e11a8
mov ecx, esi
call fcn.005c0c20
jmp 0x5c11d7
mov edi, dword [ebp + 0x18]
mov dword [ebp + 0x10], 0
test edi, edi
je 0x5c1198
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x10]
push 1
push ecx
mov ecx, esi
call fcn.005c07e0
test al, al
je 0x5c11d7
cmp edi, dword [ebp + 0x18]
jne 0x5c1127
mov edx, dword [ebx]
xor ecx, ecx
mov eax, dword [edx + 0xc]
mov edx, dword [edi + 0xc]
cmp edx, ecx
jg 0x5c1127
jl 0x5c10d1
mov ecx, dword [edi + 8]
cmp ecx, eax
jae 0x5c1127
mov edx, dword [edi + 8]
push 0
sub eax, edx
mov edx, dword [esi + 0x10]
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5c1106
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5c1106
push eax
push 0x6e12c0
mov ecx, esi
call fcn.005c0c20
jmp 0x5c11d7
mov eax, dword [ebx]
xor edx, edx
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 8]
sub eax, ecx
mov ecx, dword [edi + 0xc]
sbb ecx, edx
mov edx, dword [esi + 0x18]
add edx, eax
mov dword [esi + 0x18], edx
mov eax, dword [esi + 0x1c]
adc eax, ecx
mov dword [esi + 0x1c], eax
mov edx, dword [ebx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
mov edx, dword [esi + 0x1c]
sub eax, ecx
xor ecx, ecx
cmp edx, ecx
jg 0x5c1148
jl 0x5c1143
mov ecx, dword [esi + 0x18]
cmp ecx, eax
jae 0x5c1148
mov ebx, dword [esi + 0x18]
jmp 0x5c114a
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp + 0x14]
push 0
push edx
mov edx, dword [esi + 0x10]
add eax, ecx
push ebx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c1180
cmp dword [ebp + 0x14], ebx
jne 0x5c1180
mov eax, dword [ebp + 0x10]
mov edi, dword [edi + 0x58]
add eax, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
jmp 0x5c108e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6e11a8
mov ecx, esi
call fcn.005c0c20
mov ebx, dword [ebp + 8]
jmp 0x5c11d7
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebx]
push edi
call fcn.005c1a30
test eax, eax
jne 0x5c11f2
lea ecx, [ebp - 0x234]
call fcn.004ab420
push 1
push 0x6e1164
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.004ab540
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.004ab530
mov ecx, dword [ebx]
test ecx, ecx
je 0x5c11e3
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [ebx], 0
push ecx
jmp 0x5c0ec9
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebx]
mov byte [edx + 8], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6e11a8
jmp 0x5c0ec1