Function at 0x470300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
movzx ebx, word [eax + 0x1ac]
xor esi, esi
push 1
push ebx
call fcn.00592c0b
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x470333
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push ebx
push edi
call fcn.00595b79
add esp, 0x10
cmp eax, 1
je 0x47035e
push edi
call fcn.00592c4b
add esp, 4
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x14], ebx
jle 0x470527
lea esp, [esp]
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
jle 0x4704fe
mov al, byte [ebx + edi + 1]
mov cl, byte [ebx + edi]
add ebx, 2
movzx edx, al
mov dword [ebp - 0x10], edx
and edx, 0xf
shl edx, 8
movzx eax, cl
or edx, eax
mov eax, dword [ebp - 0x10]
shr eax, 4
cmp eax, 4
ja case.default.0x4703ae
jmp dword [eax*4 + 0x47053c]
mov eax, dword [ebp - 4]
lea edi, [edx + 1]
imul edi, dword [ebp + 0x18]
inc eax
add eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add eax, ebx
push edi
push eax
push esi
call fcn.00592150
add esi, edi
add esp, 0xc
add ebx, edi
mov edi, dword [ebp - 8]
jmp case.default.0x4703ae
test edx, edx
js case.default.0x4703ae
mov eax, dword [ebp - 4]
lea esp, [esp]
movzx ecx, byte [ebx + edi]
inc eax
add eax, ecx
dec edx
inc ebx
mov dword [ebp - 4], eax
test ecx, ecx
js 0x470431
mov al, byte [ebx + edi]
dec ecx
mov byte [esi], al
inc esi
cmp dword [ebp + 0x18], 2
jl 0x47042a
mov al, byte [ebx + edi + 1]
mov byte [esi], al
mov al, byte [ebx + edi + 2]
mov byte [esi + 1], al
add esi, 2
cmp dword [ebp + 0x18], 4
jl 0x47042a
mov al, byte [ebx + edi + 3]
mov byte [esi], al
inc esi
test ecx, ecx
jns 0x470400
mov eax, dword [ebp - 4]
add ebx, dword [ebp + 0x18]
test edx, edx
jns 0x4703f0
jmp case.default.0x4703ae
mov eax, dword [ebp - 4]
mov cl, byte [ebx + edi]
inc eax
add eax, edx
inc ebx
mov dword [ebp - 4], eax
test edx, edx
js case.default.0x4703ae
mov edi, edi
mov al, byte [ebx + edi]
mov byte [esi], al
mov al, byte [ebx + edi + 1]
mov byte [esi + 1], al
mov al, byte [ebx + edi + 2]
add ebx, 3
mov byte [esi + 2], al
mov byte [esi + 3], cl
add esi, 4
dec edx
jns 0x470450
jmp case.default.0x4703ae
mov ah, byte [ebx + edi]
inc ebx
test edx, edx
js case.default.0x4703ae
lea esp, [esp]
movzx ecx, byte [ebx + edi]
dec edx
mov edi, dword [ebp - 4]
inc edi
add edi, ecx
mov dword [ebp - 4], edi
mov edi, dword [ebp - 8]
test ecx, ecx
js 0x4704b2
mov al, byte [ebx + edi + 1]
mov byte [esi], al
mov al, byte [ebx + edi + 2]
mov byte [esi + 1], al
mov al, byte [ebx + edi + 3]
mov byte [esi + 2], al
mov byte [esi + 3], ah
add esi, 4
dec ecx
jns 0x470495
add ebx, 4
test edx, edx
jns 0x470480
jmp case.default.0x4703ae
mov ebx, dword [ebp + 0xc]
movzx ebx, word [ebx + 0x1ac]
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x1ac]
lea eax, [ecx - 2]
cmp ebx, eax
jl 0x4704f2
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push ecx
push edi
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x470349
xor ebx, ebx
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jl 0x470384
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x20]
call fcn.004585b0
movzx esi, ax
add esp, 0x10
test si, si
jne 0x470527
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp + 0x14]
jl 0x470370
push edi
call fcn.00592c4b
add esp, 4
mov ax, si
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret