Function at 0x4741e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x76c500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4741fe
jmp 0x474229
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
push 0xe
push 1
lea eax, [ebp - 0x48]
push eax
call fcn.0040d440
add esp, 0x10
cmp eax, 0xe
je 0x474227
mov eax, 0xffffff9a
jmp 0x4743ee
jmp 0x474252
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
push 0xe
push 1
lea eax, [ebp - 0x48]
push eax
call fcn.004d2e5e
add esp, 0x10
cmp eax, 0xe
je 0x474252
mov eax, 0xffffff9a
jmp 0x4743ee
movzx ecx, word [ebp - 0x48]
cmp ecx, 0x4d42
je 0x474266
or eax, 0xffffffff
jmp 0x4743ee
mov edx, dword [ebp + 8]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
je 0x474274
jmp 0x474299
mov eax, dword [ebp - 0x38]
push eax
push 0x28
push 1
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040d440
add esp, 0x10
cmp eax, 0x28
je 0x474297
mov eax, 0xffffff9a
jmp 0x4743ee
jmp 0x4742bc
mov edx, dword [ebp - 0x30]
push edx
push 0x28
push 1
lea eax, [ebp - 0x2c]
push eax
call fcn.004d2e5e
add esp, 0x10
cmp eax, 0x28
je 0x4742bc
mov eax, 0xffffff9a
jmp 0x4743ee
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x46]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0xc], eax
movzx ecx, word [ebp - 0x1e]
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
sub edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0x17
ja case.0x474303.1
mov eax, dword [ebp - 0x54]
movzx ecx, byte [eax + 0x474410]
jmp dword [ecx*4 + 0x4743fc]
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov dword [ebp - 0x34], 2
jmp case.0x474303.1
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov dword [ebp - 0x34], 0x10
jmp case.0x474303.1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 2
mov dword [ebp - 0x34], 0x100
jmp case.0x474303.1
mov edx, dword [ebp + 0x10]
mov dword [edx], 3
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
je 0x4743ec
mov eax, dword [ebp - 0x34]
shl eax, 2
push eax
call fcn.004cfe98
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0x14], edx
cmp dword [ebp - 0x58], 0
jne 0x474382
mov eax, 0xfffffffe
jmp 0x4743ee
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x474390
jmp 0x4743bf
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
shl edx, 2
push edx
push 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0040d440
add esp, 0x10
mov edx, dword [ebp - 0x34]
shl edx, 2
cmp eax, edx
je 0x4743bd
mov eax, 0xffffff9a
jmp 0x4743ee
jmp 0x4743ec
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
shl ecx, 2
push ecx
push 1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
push eax
call fcn.004d2e5e
add esp, 0x10
mov ecx, dword [ebp - 0x34]
shl ecx, 2
cmp eax, ecx
je 0x4743ec
mov eax, 0xffffff9a
jmp 0x4743ee
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0170
mov esp, ebp
pop ebp
ret