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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, 0x1002ce8
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x100a1c4]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
push edi
push 3
push edi
push 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x80000000
push eax
mov dword [ebp - 0x1c], 0x5000
mov esi, 0xa0000
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x1006ca8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
jae 0x1006c24
mov esi, eax
cmp dword [0x100a2a0], edi
je 0x1006c36
mov dword [ebp - 0x1c], 0x200
lea esi, [eax - 0x40]
cmp esi, dword [ebp - 0x1c]
jae 0x1006c46
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006ca8
sub esi, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [ebp - 0x24]
mov edx, ecx
mov esi, eax
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
push edi
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x38]
push eax
push edi
push esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
jne 0x1006caf
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x1006d8d
xor eax, eax
add edi, 0xffffffd8
je 0x1006d41
cmp byte [eax + esi], 0x44
jne 0x1006d38
cmp byte [eax + esi + 0x1c], 0x48
jne 0x1006d38
cmp byte [eax + esi + 7], 0x44
jne 0x1006d38
cmp byte [eax + esi + 1], 0x8b
jne 0x1006d38
cmp byte [eax + esi + 2], 0x9f
jne 0x1006d38
cmp byte [eax + esi + 3], 0x44
jne 0x1006d38
cmp byte [eax + esi + 8], 0x89
jne 0x1006d38
mov cl, byte [eax + esi + 0xa]
cmp cl, 0xb8
jne 0x1006d0d
mov ecx, dword [ebp - 0x1c]
lea ecx, [eax + ecx + 0xa]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + esi + 0xb]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], ecx
jmp 0x1006d35
cmp cl, 0x8b
jne 0x1006d38
cmp byte [eax + esi + 0x10], 0x39
jne 0x1006d38
cmp byte [eax + esi + 0x12], 0x3c
jne 0x1006d38
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x30], 0
lea ecx, [eax + ecx + 0xa]
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x2c], ecx
inc dword [ebp - 0x20]
inc eax
cmp eax, edi
jb 0x1006cba
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x20]
cmp eax, 1
pop ecx
mov dword [ebx + 0x1dc], eax
jne 0x1006d7d
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx], eax
mov dword [ebx + 0x10], 0x12
lea esi, [ebp - 0x18]
lea edi, [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x1006d8a
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
mov dword [ebx], eax
mov dword [ebx + 0x10], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007a24
leave
ret 8