Function at 0x47f0be
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov dword [0xa18ba8], 0
mov dword [0xa18bac], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047d026
test eax, eax
sete al
test al, al
je 0x47f110
mov eax, 0xfffffffe
jmp 0x47f337
mov edx, dword [0x69273c]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa1c0d4], eax
mov eax, dword [0xa1c0d4]
movzx eax, byte [eax + 9]
test al, al
jne 0x47f145
mov eax, 0xfffffffd
jmp 0x47f337
cmp dword [ebp - 0x14], 0
jns 0x47f155
mov eax, 0xfffffffc
jmp 0x47f337
mov eax, dword [ebp - 0xc]
mov edx, eax
xor edx, 0xffffffff
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
or eax, edx
test eax, eax
je 0x47f19f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047ed75
mov dword [0xa1c0d8], eax
mov eax, dword [0xa1c0d8]
test eax, eax
setne al
test al, al
je 0x47f19f
mov eax, dword [0xa1c0d8]
jmp 0x47f337
mov eax, dword [0x692738]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa1c0dc], eax
jmp 0x47f314
cmp dword [ebp - 0x14], 0
jle 0x47f1d0
mov dword [0xa1c0e0], 0xffffffff
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0xffffffff
jmp 0x47f1e6
mov eax, dword [ebp - 0x18]
mov dword [0xa1c0e0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0xa1c0e0]
mov eax, dword [0xa1c0dc]
mov eax, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa1c0e8
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
test eax, eax
setne al
test al, al
je 0x47f2e6
mov eax, dword [0xa1c0e8]
mov edx, dword [0xa1c0ec]
add dword [ebp + 0x14], eax
mov esi, dword [0xa1c0d4]
mov eax, dword [0xa1c0d4]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [0xa1c0e8]
mov edx, dword [0xa1c0ec]
add eax, ecx
adc edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov ecx, dword [0xa18ba8]
mov ebx, dword [0xa18bac]
mov eax, dword [0xa1c0e8]
mov edx, dword [0xa1c0ec]
add eax, ecx
adc edx, ebx
mov dword [0xa18ba8], eax
mov dword [0xa18bac], edx
mov eax, dword [0xa1c0e0]
mov ecx, eax
mov ebx, 0
mov eax, dword [0xa1c0e8]
mov edx, dword [0xa1c0ec]
mov esi, ebx
xor esi, edx
xor eax, ecx
or eax, esi
test eax, eax
je 0x47f314
mov ecx, dword [0xa1c0e0]
mov eax, dword [0xa1c0e8]
mov edx, dword [0xa1c0ec]
mov edx, ecx
sub edx, eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [0xa1c0d4]
mov byte [eax + 0x19], 1
mov eax, 0xfffffff6
jmp 0x47f337
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa1c0f0], eax
mov eax, dword [0xa1c0f0]
cmp eax, 5
je 0x47f306
mov eax, dword [0xa1c0f0]
cmp eax, 0x21
jne 0x47f30d
mov eax, 0xfffffff9
jmp 0x47f337
mov eax, 0xfffffff7
jmp 0x47f337
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
or eax, edx
test eax, eax
setne al
test al, al
jne 0x47f1b6
mov eax, dword [0xa1c0d4]
mov byte [eax + 0x19], 0
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret