Function at 0x4f8250
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
push edi
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x1b8], 7
sete al
push eax
push dword [esi + 0x1e0]
push 1
push 0
push 0
push 0
push edi
push esi
call fcn.004f1bb0
mov ebx, eax
add esp, 0x20
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x4f8581
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f82c1
push 2
push 0
push eax
call fcn.00535c75
push dword [ebx + 4]
call fcn.005362d4
push 0
push 0
push dword [ebx + 4]
mov dword [esp + 0x30], eax
call fcn.00535c75
mov eax, dword [esp + 0x30]
add esp, 0x1c
jmp 0x4f82c8
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
cmp eax, 0x1000000
jbe 0x4f82e2
push edi
push 0x1b
push 0x46
push esi
call fcn.004f3a10
add esp, 0x10
jmp 0x4f856f
cmp dword [esi + 0x1ac], 0
jne 0x4f82f8
cmp dword [esi + 0x1b0], 0
je 0x4f856f
mov ecx, dword [esi + 0x1b4]
push ebp
xor ebp, ebp
test ecx, ecx
jne 0x4f8316
call fcn.004f1b10
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1b4], ecx
test eax, eax
je 0x4f83a3
cmp dword [ebx + 4], ebp
jne 0x4f833b
cmp dword [esi + 0x1b8], 5
je 0x4f833b
push eax
push dword [ebx + 0x28]
push ecx
call fcn.004f1a50
add esp, 0xc
jmp 0x4f83a3
push eax
call fcn.0047f870
mov edi, eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f8363
push eax
push dword [esp + 0x1c]
push 1
push edi
call fcn.005358d2
add esp, 0x10
mov dword [esp + 0x18], eax
jmp 0x4f8373
push dword [esp + 0x18]
push dword [ebx + 0x28]
push edi
call fcn.0052ae60
add esp, 0xc
cmp dword [esi + 0x1b8], 5
jne 0x4f838a
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004e94b0
add esp, 8
push dword [esp + 0x18]
push edi
push dword [esi + 0x1b4]
call fcn.004f1a50
push edi
call fcn.0047f840
add esp, 0x10
mov ecx, dword [esi + 0x1d4]
add ecx, 8
mov dword [esi + 0x124], ecx
mov edx, dword [ecx]
test edx, edx
je 0x4f8406
mov eax, ecx
mov ebx, 0xff
nop
mov edi, eax
mov eax, edx
mov ecx, edi
mov dx, word [eax + 0x14]
and dx, bx
cmp dx, 0x1f
je 0x4f8402
cmp dx, 0x1e
jne 0x4f83f4
mov ecx, dword [eax]
test ecx, ecx
je 0x4f83f4
mov dx, word [ecx + 0x14]
mov ecx, edi
and dx, bx
cmp dx, 0x20
je 0x4f8402
cmp dx, 0x21
je 0x4f8402
mov dword [esi + 0x124], eax
mov ecx, eax
mov edx, dword [eax]
test edx, edx
jne 0x4f83c0
mov ebx, dword [esp + 0x10]
mov edi, dword [ecx]
test edi, edi
jne 0x4f843a
push 0x401f
push edi
push 1
push 0x67b540
call fcn.004fb810
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 0x4f8497
movzx eax, word [edi + 0x14]
mov edx, eax
cmp al, 0x1f
jne 0x4f8497
mov ecx, edx
test edx, 0x4000
jne 0x4f845d
push dword [edi + 8]
call fcn.0047f840
movzx ecx, word [edi + 0x14]
add esp, 4
mov eax, dword [0x72d09c]
or ecx, 0x4000
mov dword [edi + 8], eax
mov edx, 0xff1e
mov word [edi + 0x14], cx
mov ebp, 1
mov dword [edi + 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 edi, dword [eax]
test ecx, ecx
je 0x4f84c6
mov eax, dword [esi + 0x1b4]
push dword [eax + 4]
push dword [eax]
push ecx
push esi
call fcn.004fac10
add esp, 0x10
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
je 0x4f84fd
cmp dword [esi + 0x1ac], 0
je 0x4f84e8
push esi
call fcn.004fa980
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.004fac10
add esp, 0x10
test ebp, ebp
pop ebp
je 0x4f8521
push 0x401f
push 0
push 1
push 0x67b540
call fcn.004fb810
mov ecx, dword [esi + 0x124]
mov edx, eax
mov dword [ecx], edx
jmp 0x4f853e
push 0x401e
push 0
push 1
push 0x72d4cc
call fcn.004fb810
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], edi
mov eax, dword [esi + 0x1b4]
mov dword [eax + 4], 0
push dword [esi + 0x1e4]
push ebx
push esi
call fcn.004f1b40
add esp, 0xc
jmp 0x4f858f
push edi
push 0x1d
push 0x46
push esi
call fcn.004f3a10
add esp, 0x10
lea eax, [esi + 0x1ac]
push eax
call fcn.004fb230
lea eax, [esi + 0x1b0]
push eax
call fcn.004fb230
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret