Function at 0x1004f3d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov edx, dword [edi + 0x10]
xorps xmm0, xmm0
mov byte [ebp - 0x20], 0
movq qword [ebp - 0x1f], xmm0
mov word [ebp - 0x17], 0
mov byte [ebp - 0x15], 0
test edx, edx
je 0x1004f458
mov ecx, dword [edi + 0x358]
lea esi, [ebp - 0x20]
mov eax, dword [edi + 0x35c]
sub ecx, 0xc
push 0
push 0xc
sbb eax, 0
mov dword [ebp - 0x40], ecx
push esi
push eax
push ecx
mov ecx, edx
mov dword [ebp - 0x3c], eax
call fcn.1001d060
test eax, eax
js 0x1004f63d
cmp eax, 1
jne 0x1004f498
jmp 0x1004f63d
push 2
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
push 0xfffffffffffffff4
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1004f479
call fcn.10015440
jmp 0x1004f63d
push 0
lea eax, [ebp - 0x24]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004f498
cmp dword [ebp - 0x24], 0xc
je 0x1004f46f
cmp dword [ebp - 0x20], 0x3552454e
jne 0x1004f4b0
lea ecx, [ebp - 0x1c]
call fcn.1004caf0
mov ecx, edx
mov dword [ebp - 0x30], edx
jmp 0x1004f4e8
cmp dword [ebp - 0x1c], 0x4f52454e
jne 0x1004f638
movzx eax, byte [ebp - 0x15]
xor ecx, ecx
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x38], al
movzx eax, byte [ebp - 0x16]
mov byte [ebp - 0x37], al
movzx eax, byte [ebp - 0x17]
mov byte [ebp - 0x36], al
movzx eax, byte [ebp - 0x18]
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], ecx
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x3c], ecx
ja 0x1004f503
jb 0x1004f4f9
cmp ebx, eax
jae 0x1004f503
mov eax, 0x80004005
jmp 0x1004f63d
sub ebx, eax
mov dword [edi + 0x358], eax
push 0x100dd790
push ebx
mov dword [edi + 0x35c], ecx
call fcn.1007bfcf
mov esi, eax
add esp, 8
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x1004f539
mov edi, 0x8007000e
jmp 0x1004f5d1
push ebx
push 0
push esi
call fcn.1008b230
mov ecx, dword [edi + 0x10]
add esp, 0xc
push 0
test ecx, ecx
je 0x1004f5e2
push ebx
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call fcn.1001d060
mov edi, eax
test edi, edi
js 0x1004f5d1
cmp edi, 1
je 0x1004f5d1
mov edi, dword [ebp - 0x2c]
xor edx, edx
test ebx, ebx
je 0x1004f5c5
mov eax, dword [edx + esi]
lea ecx, [edx + esi]
cmp eax, 0x21444e45
je 0x1004f5c5
cmp eax, 0x494f4144
je 0x1004f62e
cmp eax, 0x584f4144
je 0x1004f62e
movzx eax, byte [ecx + 7]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x2c], al
movzx eax, byte [ecx + 6]
mov byte [ebp - 0x2b], al
movzx eax, byte [ecx + 5]
mov byte [ebp - 0x2a], al
movzx eax, byte [ecx + 4]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x2c]
add eax, 8
add edx, eax
cmp edx, ebx
jb 0x1004f573
push dword [edi + 0xc]
mov ecx, edi
call fcn.100506f0
mov edi, eax
test esi, esi
je 0x1004f5de
push esi
call fcn.1007bfd8
add esp, 4
mov eax, edi
jmp 0x1004f63d
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1004f5fe
call fcn.10015440
jmp 0x1004f5cf
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push ebx
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004f56d
cmp dword [ebp - 0x24], ebx
jne 0x1004f56d
call fcn.10015440
jmp 0x1004f5cf
push ecx
mov ecx, edi
call fcn.1004f660
jmp 0x1004f5cf
mov eax, 0xe003200b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret