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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100a1c4]
mov esi, 0x1002cc8
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [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 - 0x18], 0x30000
mov esi, 0xa0000
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x10068c2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
jae 0x100683d
mov esi, eax
cmp dword [0x100a2a0], edi
je 0x100684f
mov dword [ebp - 0x18], 0x200
lea esi, [eax - 0x40]
cmp esi, dword [ebp - 0x18]
jae 0x100685f
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10068c2
sub esi, dword [ebp - 0x18]
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [ebp - 0x20]
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 - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push eax
push edi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x20], eax
jne 0x10068c9
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x10069b5
add edi, 0xffffffd8
cmp edi, eax
jbe 0x100696b
push 2
pop edx
cmp byte [eax + esi], 0x89
jne 0x1006962
cmp byte [eax + esi + 0x25], 0xd0
jne 0x1006962
cmp byte [eax + esi + 0x17], 0x41
jne 0x1006962
cmp byte [eax + esi + 1], dl
jne 0x1006962
cmp byte [eax + esi + 0x18], 0x8d
jne 0x1006962
cmp byte [eax + esi + 0x10], 0x48
jne 0x1006962
cmp byte [eax + esi + 0x11], 0x8d
jne 0x1006962
cmp byte [eax + esi + 0x20], 0x41
jne 0x1006962
cmp byte [eax + esi + 0x21], 0xb8
jne 0x1006962
mov cl, byte [eax + esi + 2]
cmp cl, 0xb8
jne 0x100693b
mov ecx, dword [ebp - 0x18]
lea ecx, [eax + ecx + 2]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + esi + 3]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], ecx
jmp 0x100695f
cmp cl, 0x8b
jne 0x1006962
cmp byte [eax + esi + 8], 0x39
jne 0x1006962
cmp byte [eax + esi + 4], 0x38
jne 0x1006962
mov ecx, dword [ebp - 0x18]
and dword [ebp - 0x2c], 0
lea ecx, [eax + ecx + 2]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
inc dword [ebp - 0x1c]
inc eax
cmp eax, edi
jb 0x10068d7
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
pop ecx
mov dword [ebx + 0x1dc], eax
jne 0x10069a5
mov eax, dword [ebp - 0x28]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
mov dword [ebx + 0x10], 0xd
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x10069b2
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