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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100a1c4]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push eax
push eax
push 3
push eax
mov esi, 0x1002cac
lea edi, [ebp - 0x28]
movsw word es:[edi], word [esi]
push 1
push 0x80000000
movsb byte es:[edi], byte [esi]
push ecx
mov word [ebp - 0x1c], 0x75
mov dword [ebp - 0xc], 0x5000
mov edi, 0x70000
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x10061e4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jae 0x100615f
mov edi, eax
cmp dword [0x100a2a0], 0
je 0x1006172
mov dword [ebp - 0xc], 0x200
lea edi, [eax - 0x40]
cmp edi, dword [ebp - 0xc]
jae 0x1006182
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10061e4
sub edi, dword [ebp - 0xc]
mov esi, edi
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov edi, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov dword [ebp - 0x20], edi
xor eax, eax
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 - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x30], eax
jne 0x10061eb
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x1006345
lea edx, [esi - 0x28]
cmp edx, eax
mov esi, dword [ebp - 0x24]
jbe 0x10062ea
cmp byte [eax + edi], 0x56
jne 0x1006251
cmp byte [eax + edi + 0x19], 0x3b
jne 0x1006251
cmp byte [eax + edi + 0xc], 0
jne 0x1006251
cmp byte [eax + edi + 1], 0x8b
jne 0x1006251
cmp byte [eax + edi + 2], 0x30
jne 0x1006251
cmp byte [eax + edi + 3], 0x8b
jne 0x1006251
cmp byte [eax + edi + 0xf], 0x33
jne 0x1006251
mov cl, byte [eax + edi + 0xd]
cmp cl, 0x75
jne 0x100623b
mov dword [ebp - 0x10], 1
jmp 0x1006247
cmp cl, 0x74
jne 0x1006251
mov dword [ebp - 0x10], 2
mov ecx, dword [ebp - 0xc]
inc dword [ebp - 8]
lea esi, [eax + ecx + 0xd]
inc eax
cmp eax, edx
jb 0x10061f9
xor edx, edx
inc edx
cmp dword [ebp - 8], edx
jne 0x10062ea
test esi, esi
jbe 0x10062ea
sub edi, dword [ebp - 0xc]
and dword [ebp - 8], 0
add edi, esi
xor eax, eax
cmp byte [eax + edi], 0x8b
jne 0x10062df
cmp byte [eax + edi + 0x14], 0x8b
jne 0x10062df
cmp byte [eax + edi + 0xc], 0x3b
jne 0x10062df
cmp byte [eax + edi + 1], 0xf1
jne 0x10062df
cmp byte [eax + edi + 2], 0x8d
jne 0x10062df
cmp byte [eax + edi + 5], 0x57
jne 0x10062df
cmp byte [eax + edi + 0x11], 0x8b
jne 0x10062df
cmp byte [eax + edi + 0x24], 0xc0
jne 0x10062df
mov cl, byte [eax + edi + 0xf]
cmp cl, 0x90
jne 0x10062be
or dword [ebx + 0xc], 0xffffffff
mov dword [ebp - 0x10], edx
jmp 0x10062d5
cmp cl, 0x7f
jne 0x10062df
cmp byte [eax + edi + 0x10], 0x16
jne 0x10062df
and dword [ebx + 0xc], 0
mov dword [ebp - 0x10], 2
inc dword [ebp - 8]
lea ecx, [eax + esi + 0xf]
mov dword [ebp - 0x18], ecx
inc eax
cmp eax, 0x180
jb 0x1006275
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 8]
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
mov dword [ebx + 0x1dc], eax
jne 0x100632f
mov eax, dword [ebp - 0x18]
and dword [ebx + 0xc], 0
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov dword [ebx + 0x10], ecx
lea esi, [ebp - 0x1c]
lea edi, [ebx + 0x18]
movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x28]
lea edi, [ebx + 0x38]
mov dword [ebx + 0x14], 2
movsw word es:[edi], word [esi]
jmp 0x1006342
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007a24
leave
ret 8