Function at 0x5d86e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x54
push ebp
push edi
mov edi, dword [esp + 0x60]
xor ebp, ebp
test edi, edi
jne 0x5d86f8
pop edi
lea eax, [ebp - 0x66]
pop ebp
add esp, 0x54
ret
mov eax, dword [edi + 0x14]
add eax, dword [edi + 0xc]
mov ecx, dword [edi]
push ebx
push esi
push 0
push eax
push ecx
call fcn.0061a3df
add esp, 0xc
test eax, eax
je 0x5d8717
or ebp, 0xffffffff
jmp 0x5d873a
mov eax, dword [edi]
lea ebx, [esp + 0x10]
call fcn.005d84c0
test eax, eax
je 0x5d872b
or ebp, 0xffffffff
jmp 0x5d873a
cmp dword [esp + 0x10], 0x2014b50
je 0x5d873a
mov ebp, 0xffffff99
mov eax, dword [edi]
lea ebx, [esp + 0x14]
call fcn.005d8470
test eax, eax
je 0x5d874c
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x18]
call fcn.005d8470
test eax, eax
je 0x5d875e
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x1c]
call fcn.005d8470
test eax, eax
je 0x5d8770
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x20]
call fcn.005d8470
test eax, eax
je 0x5d8782
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x24]
call fcn.005d84c0
test eax, eax
je 0x5d8794
or ebp, 0xffffffff
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
call fcn.005d8690
mov eax, dword [edi]
lea ebx, [esp + 0x28]
call fcn.005d84c0
test eax, eax
je 0x5d87b3
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x2c]
call fcn.005d84c0
test eax, eax
je 0x5d87c5
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x30]
call fcn.005d84c0
test eax, eax
je 0x5d87d7
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x34]
call fcn.005d8470
test eax, eax
je 0x5d87e9
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x38]
call fcn.005d8470
test eax, eax
je 0x5d87fb
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x3c]
call fcn.005d8470
test eax, eax
je 0x5d880d
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x40]
call fcn.005d8470
test eax, eax
je 0x5d881f
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x44]
call fcn.005d8470
test eax, eax
je 0x5d8831
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x48]
call fcn.005d84c0
test eax, eax
je 0x5d8843
or ebp, 0xffffffff
mov eax, dword [edi]
lea ebx, [esp + 0x10]
call fcn.005d84c0
test eax, eax
je 0x5d8855
or ebp, 0xffffffff
mov esi, dword [esp + 0x34]
test ebp, ebp
jne 0x5d890c
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5d88a0
mov ecx, dword [esp + 0x78]
cmp esi, ecx
jae 0x5d8879
mov byte [esi + eax], 0
mov ebx, esi
jmp 0x5d887b
mov ebx, ecx
test esi, esi
jbe 0x5d889a
test ecx, ecx
jbe 0x5d889a
mov edx, dword [edi]
push edx
push 1
push ebx
push eax
call fcn.00618228
add esp, 0x10
cmp eax, 1
je 0x5d889a
or ebp, 0xffffffff
sub esi, ebx
test ebp, ebp
jne 0x5d890c
cmp dword [esp + 0x7c], 0
je 0x5d890c
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x80]
cmp ebx, edi
jae 0x5d88b8
mov edi, ebx
test esi, esi
je 0x5d88d9
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
push 1
push esi
push ecx
call fcn.0061a3df
add esp, 0xc
test eax, eax
jne 0x5d88d6
xor esi, esi
jmp 0x5d88d9
or ebp, 0xffffffff
test ebx, ebx
jbe 0x5d8906
cmp dword [esp + 0x80], 0
jbe 0x5d8906
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
mov ecx, dword [esp + 0x7c]
push eax
push 1
push edi
push ecx
call fcn.00618228
add esp, 0x10
cmp eax, 1
je 0x5d8906
or ebp, 0xffffffff
sub ebx, edi
add esi, ebx
jmp 0x5d8910
add esi, dword [esp + 0x38]
test ebp, ebp
jne 0x5d89b4
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5d8993
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x88]
cmp ebx, edi
jae 0x5d8938
mov byte [ebx + eax], 0
mov edi, ebx
test esi, esi
je 0x5d8955
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
push 1
push esi
push eax
call fcn.0061a3df
add esp, 0xc
test eax, eax
je 0x5d8955
or ebp, 0xffffffff
test ebx, ebx
jbe 0x5d898f
cmp dword [esp + 0x88], 0
jbe 0x5d898f
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
mov eax, dword [esp + 0x84]
push edx
push 1
push edi
push eax
call fcn.00618228
add esp, 0x10
cmp eax, 1
je 0x5d898f
pop esi
pop ebx
or ebp, 0xffffffff
pop edi
mov eax, ebp
pop ebp
add esp, 0x54
ret
test ebp, ebp
jne 0x5d89b4
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x5d89a6
mov ecx, 0x14
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x5d89b4
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 0x54
ret