Function at 0x4f8b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x24], eax
push 0x10
call fcn.005324a9
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
cmp dword [0x5f6630], 1
jne 0x4f8c9a
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x8e50]
cmp edx, 1
jne 0x4f8c9a
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0044b950
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [0x5fdb24], 0
jne 0x4f8c95
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x8e52]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x8e74], 0
je 0x4f8c8d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
imul ecx, ecx, 0xc8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005324a9
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4f8c8d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005323e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov dword [ebp - 4], 0
jmp 0x4f8c22
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0xc]
jge 0x4f8c8d
xor edx, edx
mov eax, dword [ebp - 0x20]
mov word [eax], dx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x8e74]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x4f8c7f
mov edx, dword [ebp - 0x14]
movsx eax, word [edx]
cmp eax, 0x76c
jge 0x4f8c63
mov dword [ebp - 0xc], 0xc8
jmp 0x4f8c6b
call fcn.004632d0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00533040
add esp, 0xc
mov ecx, dword [ebp - 0x20]
add ecx, 0xc8
mov dword [ebp - 0x20], ecx
jmp 0x4f8c19
mov eax, dword [ebp - 0x10]
jmp 0x4f8e1b
jmp 0x4f8e0d
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004281d0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push 0x5c
mov edx, dword [ebp + 0xc]
add edx, 0x52
push edx
push 0x5c
lea eax, [ebp - 0x128]
push eax
push 0x5c44f8
push str._s_s_c_s.cls_c_s.hst
lea ecx, [ebp - 0x228]
push ecx
call fcn.00532706
add esp, 0x20
cmp dword [0x5f6630], 1
jne 0x4f8d07
cmp dword [0x5f663c], 0
je 0x4f8d07
push 0x1068ea0
push str._slocal.hst
lea edx, [ebp - 0x228]
push edx
call fcn.00532706
add esp, 0xc
push 1
push 0x578580
lea eax, [ebp - 0x228]
push eax
call fcn.00459360
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f8e0d
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00532940
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.00532b62
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4f8dfc
mov eax, dword [ebp - 8]
push eax
call fcn.005352ea
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005324a9
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4f8dfc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0053367b
add esp, 0x10
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0xc]
sub edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 0xc8
div ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x4f8dd3
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0xc]
jge 0x4f8dfc
push 0
push 3
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041aba0
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 0xc8
mov dword [ebp - 0x14], edx
jmp 0x4f8dca
mov eax, dword [ebp - 8]
push eax
call fcn.00431d50
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x4f8e1b
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00532828
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret