Function at 0x573be0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov ebx, dword [esp + 0x14]
push edi
cmp dword [esi + 0x1b8], 7
sete al
push eax
push dword [esi + 0x1e0]
push 1
push 0
push 0
push 0
push ebx
push esi
call fcn.0056bc30
mov edi, eax
add esp, 0x20
mov dword [esp + 0xc], edi
test edi, edi
je 0x573f5f
mov eax, dword [edi + 4]
test eax, eax
je 0x573c51
push 2
push 0
push eax
call fcn.005a3d63
push dword [edi + 4]
call fcn.005a4487
push 0
push 0
push dword [edi + 4]
mov dword [esp + 0x30], eax
call fcn.005a3d63
mov eax, dword [esp + 0x30]
add esp, 0x1c
jmp 0x573c58
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x14], eax
cmp eax, 0x1000000
jbe 0x573c72
push ebx
push 0x1b
push 0x46
push esi
call fcn.0056dff0
add esp, 0x10
jmp 0x573eff
cmp dword [esi + 0x1ac], 0
jne 0x573c88
cmp dword [esi + 0x1b0], 0
je 0x573eff
mov ecx, dword [esi + 0x1b4]
push ebp
xor ebp, ebp
test ecx, ecx
jne 0x573ca6
call fcn.0056bc00
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1b4], ecx
test eax, eax
je 0x573d33
cmp dword [edi + 4], ebp
jne 0x573ccb
cmp dword [esi + 0x1b8], 5
je 0x573ccb
push eax
push dword [edi + 0x28]
push ecx
call fcn.0056bb40
add esp, 0xc
jmp 0x573d33
push eax
call fcn.004a67c0
mov ebx, eax
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x573cf3
push eax
push dword [esp + 0x1c]
push 1
push ebx
call fcn.005a3905
add esp, 0x10
mov dword [esp + 0x18], eax
jmp 0x573d03
push dword [esp + 0x18]
push dword [edi + 0x28]
push ebx
call fcn.0059ce60
add esp, 0xc
cmp dword [esi + 0x1b8], 5
jne 0x573d1a
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00579320
add esp, 8
push dword [esp + 0x18]
push ebx
push dword [esi + 0x1b4]
call fcn.0056bb40
push ebx
call fcn.004a6790
add esp, 0x10
mov ecx, dword [esi + 0x1d4]
add ecx, 8
mov dword [esi + 0x124], ecx
mov edx, dword [ecx]
test edx, edx
je 0x573d96
mov eax, ecx
mov edi, 0xff
nop
mov ebx, eax
mov eax, edx
mov ecx, ebx
mov dx, word [eax + 0x14]
and dx, di
cmp dx, 0x1f
je 0x573d92
cmp dx, 0x1e
jne 0x573d84
mov ecx, dword [eax]
test ecx, ecx
je 0x573d84
mov dx, word [ecx + 0x14]
mov ecx, ebx
and dx, di
cmp dx, 0x20
je 0x573d92
cmp dx, 0x21
je 0x573d92
mov dword [esi + 0x124], eax
mov ecx, eax
mov edx, dword [eax]
test edx, edx
jne 0x573d50
mov edi, dword [esp + 0x10]
mov ebx, dword [ecx]
test ebx, ebx
jne 0x573dca
push 0x401f
push ebx
push 1
push 0x768608
call fcn.00577750
mov ecx, dword [esi + 0x124]
add esp, 0x10
mov dword [ecx], eax
mov dword [esi + 0x124], eax
mov eax, dword [esi + 0x1d4]
inc dword [eax + 0x18]
jmp 0x573e27
movzx eax, word [ebx + 0x14]
mov edx, eax
cmp al, 0x1f
jne 0x573e27
mov ecx, edx
test edx, 0x4000
jne 0x573ded
push dword [ebx + 8]
call fcn.004a6790
movzx ecx, word [ebx + 0x14]
add esp, 4
mov eax, dword [0x788bb4]
or ecx, 0x4000
mov dword [ebx + 8], eax
mov edx, 0xff1e
mov word [ebx + 0x14], cx
mov ebp, 1
mov dword [ebx + 0xc], 1
mov eax, dword [esi + 0x124]
mov ecx, dword [eax]
mov ax, word [ecx + 0x14]
and ax, dx
or ax, 0x1e
mov word [ecx + 0x14], ax
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0x1ac]
mov eax, dword [eax]
mov dword [esi + 0x124], eax
mov ebx, dword [eax]
test ecx, ecx
je 0x573e56
mov eax, dword [esi + 0x1b4]
push dword [eax + 4]
push dword [eax]
push ecx
push esi
call fcn.00576b00
add esp, 0x10
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
je 0x573e8d
cmp dword [esi + 0x1ac], 0
je 0x573e78
push esi
call fcn.00576870
mov ecx, dword [esi + 0x1b0]
add esp, 4
mov eax, dword [esi + 0x1b4]
push dword [eax + 4]
push dword [eax]
push ecx
push esi
call fcn.00576b00
add esp, 0x10
test ebp, ebp
pop ebp
je 0x573eb1
push 0x401f
push 0
push 1
push 0x768608
call fcn.00577750
mov ecx, dword [esi + 0x124]
mov edx, eax
mov dword [ecx], edx
jmp 0x573ece
push 0x401e
push 0
push 1
push 0x78573c
call fcn.00577750
mov edx, eax
mov eax, dword [esi + 0x124]
mov dword [eax], edx
mov dword [esi + 0x124], edx
add esp, 0x10
mov eax, dword [esi + 0x1d4]
inc dword [eax + 0x18]
mov eax, dword [esi + 0x124]
mov dword [esi + 0x1a8], 1
mov dword [eax], ebx
mov eax, dword [esi + 0x1b4]
mov dword [eax + 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x573f26
mov ecx, dword [esi + 0x1e4]
push eax
test ecx, ecx
je 0x573f1e
push dword [esi + 0x1dc]
call ecx
add esp, 8
jmp 0x573f26
call fcn.005a1157
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x573f35
push eax
call fcn.004a6790
add esp, 4
cmp dword [edi + 0x24], 0
je 0x573f4b
mov eax, dword [edi + 0x28]
test eax, eax
je 0x573f4b
push eax
call fcn.004a6790
add esp, 4
lea eax, [edi + 8]
push eax
call fcn.00577130
push edi
call fcn.004a6790
add esp, 8
jmp 0x573f6d
push ebx
push 0x1d
push 0x46
push esi
call fcn.0056dff0
add esp, 0x10
lea eax, [esi + 0x1ac]
push eax
call fcn.00577130
lea eax, [esi + 0x1b0]
push eax
call fcn.00577130
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret