Function at 0x10005310
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x60
mov eax, dword [0x101cc040]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
mov esi, edx
mov dword [esp + 0x28], eax
call fcn.100025a0
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x1000555a
mov ecx, dword [0x101ce5ac]
xor eax, eax
test ecx, ecx
jbe 0x1000553b
mov edx, dword [0x101ce59c]
cmp dword [edx + eax*4], ebp
je 0x10005364
inc eax
cmp eax, ecx
jb 0x10005355
jmp 0x1000553b
lea ebx, [eax + 1]
mov dword [esp + 0x24], ebx
test ebx, ebx
jbe 0x1000553b
test byte [esp + 0x7c], 1
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
je 0x10005393
mov byte [esp + 0x12], 1
mov eax, str.Packed
jmp 0x100054d8
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push esi
call ebp
mov edi, 0x800
cmp eax, 0x800
ja 0x100053ac
mov edi, eax
push edi
call fcn.1012fc96
add esp, 4
push 0
push 0
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100053d3
mov dword [esp + 0x14], 0
jmp 0x10005400
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100053ed
mov dword [esp + 0x14], eax
jmp 0x10005400
mov edi, dword [esp + 0x18]
mov edx, ebx
call fcn.10007b80
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
push 0
push esi
call ebp
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push edx
mov ebx, eax
call fcn.10004eb0
add esp, 4
test eax, eax
jbe 0x10005426
mov byte [esp + 0x12], 1
jmp 0x100054b0
push 0
push esi
lea edi, [ebx - 0x800]
call ebp
sub eax, edi
mov ebx, 0x800
cmp eax, 0x800
ja 0x10005441
mov ebx, eax
push ebx
call fcn.1012fc96
add esp, 4
push 0
push 0
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10005461
xor ebp, ebp
jmp 0x10005488
push 0
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10005479
xor ebp, ebp
jmp 0x10005488
mov edi, dword [esp + 0x1c]
mov edx, ebp
call fcn.10007b80
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push ecx
push ebp
call fcn.10004e50
add esp, 8
test al, al
je 0x100054a7
mov byte [esp + 0x13], 1
push ebp
call fcn.1012fc21
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call fcn.1012fc21
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x10005528
cmp byte [esp + 0x13], 0
je 0x10005537
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, 0x101438dc
push ebx
push eax
push str.New_Heur._s__d_
mov ecx, 0x40
lea edi, [esp + 0x38]
call fcn.10001100
add esp, 0xc
cmp byte [esp + 0x12], 0
je 0x100054fc
cmp ebx, 0xe
je 0x1000553b
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x78]
push 2
push 5
push eax
lea ebx, [esp + 0x38]
call fcn.10002840
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1012fc12
add esp, 0x60
ret
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, str.Packed
jmp 0x100054d8
mov ebp, dword [esp + 0x20]
mov ecx, dword [0x101ce588]
xor eax, eax
test ecx, ecx
jbe 0x1000555a
mov edx, dword [0x101ce5a4]
lea ecx, [ecx]
cmp dword [edx + eax*4], ebp
je 0x1000556f
inc eax
cmp eax, ecx
jb 0x10005550
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1012fc12
add esp, 0x60
ret
add eax, 1
je 0x1000555a
push eax
push str.New_Heur.Icon__d_
mov ecx, 0x40
lea edi, [esp + 0x34]
call fcn.10001100
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x80]
push 2
push 5
push ecx
mov ebx, edi
call fcn.10002840
mov ecx, dword [esp + 0x80]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1012fc12
add esp, 0x60
ret