Function at 0x5d70a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4c
mov eax, dword [0x7dcee0]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x70]
mov ebp, edi
neg ebp
sbb ebp, ebp
and ebp, 0xfffffff0
add ebp, 0x2e
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
test eax, eax
je 0x5d70f2
cmp dword [eax], ebp
jb 0x5d74f8
test ecx, ecx
je 0x5d70fa
mov esi, dword [ecx]
jmp 0x5d712a
push esi
push ebp
lea eax, [esp + 0x30]
push 1
push eax
call fcn.006986f1
add esp, 0x10
cmp eax, ebp
jae 0x5d7122
call fcn.006a1a12
mov ecx, dword [eax]
mov edx, dword [esp + 0x10]
push ecx
push 5
jmp 0x5d74fc
mov edx, dword [esp + 0x10]
lea esi, [esp + 0x28]
mov eax, 0x775d8c
test edi, edi
jne 0x5d7138
mov eax, 0x775d84
mov ecx, dword [esi]
cmp ecx, dword [eax]
jne 0x5d74f8
add esi, 4
test edi, edi
jne 0x5d7169
movzx dx, byte [esi + 1]
movzx cx, byte [esi]
mov eax, 0x100
imul dx, ax
add dx, cx
movzx eax, dx
add esi, 2
mov word [ebx], ax
jmp 0x5d716e
xor edx, edx
mov word [ebx], dx
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
mov ecx, 0x100
imul ax, cx
add ax, dx
movzx eax, ax
mov word [ebx + 2], ax
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
imul ax, cx
add esi, 2
add ax, dx
movzx eax, ax
mov word [ebx + 4], ax
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
imul ax, cx
add esi, 2
add ax, dx
movzx eax, ax
mov word [ebx + 6], ax
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 2]
imul ax, cx
add esi, 2
add ax, dx
movzx ecx, ax
movzx eax, byte [esi + 3]
add esi, 2
mov edx, 0x100
imul ax, dx
movzx edx, byte [esi]
add ax, dx
movzx eax, ax
movzx eax, ax
movzx ecx, cx
add esi, 2
call fcn.005d6cf0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 1]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov dword [ebx + 0x10], eax
movzx eax, byte [esi + 7]
movzx edx, byte [esi + 6]
movzx ecx, byte [esi + 5]
shl eax, 8
add eax, edx
movzx edx, byte [esi + 4]
add esi, 4
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
mov dword [ebx + 0x14], eax
movzx eax, byte [esi + 7]
movzx ecx, byte [esi + 6]
movzx edx, byte [esi + 5]
add esi, 4
shl eax, 8
add eax, ecx
movzx ecx, byte [esi]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
add esi, 4
mov dword [ebx + 0x18], eax
movzx edx, byte [esi + 1]
movzx cx, byte [esi]
mov eax, 0x100
imul dx, ax
add dx, cx
movzx ecx, dx
add esi, 2
mov word [ebx + 0x20], cx
movzx edx, byte [esi + 1]
imul dx, ax
movzx eax, byte [esi]
add dx, ax
movzx edx, dx
add esi, 2
xor eax, eax
mov dword [esp + 0x18], esi
mov word [ebx + 0x28], dx
cmp edi, eax
je 0x5d72c2
xor edi, edi
mov word [ebx + 0x30], di
mov word [ebx + 0x32], di
mov word [ebx + 0x34], di
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
jmp 0x5d7367
movzx eax, byte [esi + 1]
mov edi, 0x100
imul ax, di
movzx edi, byte [esi]
add ax, di
movzx eax, ax
mov word [ebx + 0x30], ax
movzx eax, byte [esi + 3]
add esi, 2
mov edi, 0x100
imul ax, di
movzx edi, byte [esi]
add ax, di
movzx eax, ax
mov word [ebx + 0x32], ax
movzx eax, byte [esi + 3]
add esi, 2
mov edi, 0x100
imul ax, di
movzx edi, byte [esi]
add ax, di
movzx eax, ax
mov word [ebx + 0x34], ax
movzx eax, byte [esi + 5]
movzx edi, byte [esi + 4]
add esi, 2
shl eax, 8
add eax, edi
movzx edi, byte [esi + 1]
shl eax, 8
add eax, edi
movzx edi, byte [esi]
shl eax, 8
add eax, edi
mov dword [ebx + 0x38], eax
movzx eax, byte [esi + 7]
movzx edi, byte [esi + 6]
add esi, 4
shl eax, 8
add eax, edi
movzx edi, byte [esi + 1]
shl eax, 8
add eax, edi
movzx edi, byte [esi]
shl eax, 8
add eax, edi
add esi, 4
mov dword [ebx + 0x3c], eax
mov dword [esp + 0x18], esi
xor eax, eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x2c], eax
movzx eax, word [ebx + 0x30]
movzx edi, cx
movzx edx, dx
add edx, edi
add eax, edx
add ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
test eax, eax
je 0x5d739e
cmp dword [eax], ebp
jae 0x5d739e
mov ecx, dword [esp + 0x10]
push 0
push 0x13
push ecx
jmp 0x5d74fd
cmp dword [esp + 0x1c], 0
je 0x5d748c
test cx, cx
je 0x5d73d1
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.005d6ee0
add esp, 0xc
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x5d7505
mov esi, dword [esp + 0x18]
movzx eax, word [ebx + 0x28]
test ax, ax
je 0x5d741e
movzx edi, ax
push edi
call fcn.006955b9
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x5d7402
mov ecx, dword [esp + 0x10]
push eax
push 0xe
push ecx
call fcn.005d8100
add esp, 0xc
xor eax, eax
jmp 0x5d7413
push edi
push esi
push eax
call fcn.00695f10
mov eax, dword [esp + 0x20]
add esp, 0xc
add esi, edi
mov dword [ebx + 0x24], eax
test eax, eax
je 0x5d7505
movzx eax, word [ebx + 0x30]
test ax, ax
je 0x5d7467
movzx edi, ax
push edi
call fcn.006955b9
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x5d744b
mov edx, dword [esp + 0x10]
push eax
push 0xe
push edx
call fcn.005d8100
add esp, 0xc
jmp 0x5d7458
push edi
push esi
push ebp
call fcn.00695f10
add esp, 0xc
add esi, edi
mov dword [ebx + 0x2c], ebp
test ebp, ebp
je 0x5d7505
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5d7477
sub dword [eax], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0069528d
add esp, 0x4c
ret
mov esi, dword [esp + 0x14]
test cx, cx
je 0x5d74ac
mov eax, dword [esp + 0x10]
push eax
push 1
push esi
call fcn.005d6dd0
add esp, 0xc
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x5d7505
movzx eax, word [ebx + 0x28]
test ax, ax
je 0x5d74cf
mov ecx, dword [esp + 0x10]
push ecx
push 0
movzx edi, ax
push esi
call fcn.005d6dd0
add esp, 0xc
mov dword [ebx + 0x24], eax
test eax, eax
je 0x5d7505
movzx eax, word [ebx + 0x30]
test ax, ax
je 0x5d746d
mov edx, dword [esp + 0x10]
push edx
push 0
movzx edi, ax
push esi
call fcn.005d6dd0
add esp, 0xc
mov dword [ebx + 0x2c], eax
test eax, eax
jne 0x5d746d
jmp 0x5d7505
push 0
push 0x13
push edx
call fcn.005d8100
add esp, 0xc
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0069528d
add esp, 0x4c
ret