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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x120089
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1006032
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006283
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100604e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100610d
push 4
push 0x1000
lea eax, [esi + esi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10060ba
push 0
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10060c9
cmp dword [ebp - 0x14], esi
je 0x1006086
push 0x26
pop edi
jmp 0x10060a8
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x10060a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x10060c9
push 0x8000
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10060c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x10060c9
push 0xe
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10060db
mov eax, edi
jmp 0x1006282
mov edi, dword [ebp - 0xc]
push 0
push esi
push edi
mov ebx, edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
jne 0x1006118
push esi
add edi, esi
push ebx
push edi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
push esi
push ebx
push edi
call fcn.010056b5
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x100613d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006282
movzx eax, word [edi]
shr esi, 1
mov ecx, 0xfeff
mov dword [ebp - 0x10], esi
cmp ax, cx
je 0x1006134
mov ecx, 0xfffe
cmp ax, cx
jne 0x100613f
dec esi
lea ebx, [edi + 2]
mov dword [ebp - 0x10], esi
jmp 0x100613f
mov edi, ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edx, edi
mov dword [ebp - 4], ecx
cmp esi, ecx
jbe 0x100625b
test ecx, ecx
jbe 0x1006289
cmp word [ebx - 2], 0x5c
jne 0x1006289
movzx eax, word [ebx]
cmp ax, 0xd
je 0x1006177
cmp ax, 0xa
jne 0x1006289
lea eax, [edx - 2]
cmp word [eax], 0x5c
jne 0x100618d
jmp 0x100618b
lea eax, [edx - 2]
cmp word [eax], 0x20
ja 0x1006191
mov edx, eax
cmp edx, edi
ja 0x1006182
cmp word [edx], 0x20
jne 0x1006199
inc edx
inc edx
xor edi, edi
cmp ecx, esi
jae 0x1006206
inc ecx
movzx eax, word [ebx]
cmp ax, 0xa
jne 0x10061b1
inc dword [ebp - 4]
inc ecx
inc ebx
inc ebx
jmp 0x10061cb
cmp ax, 0xd
jne 0x10061d1
cmp ecx, esi
jae 0x10061d1
cmp word [ebx + 2], 0xa
jne 0x10061d1
add dword [ebp - 4], 2
inc ecx
inc ecx
add ebx, 4
inc edi
cmp dword [ebp - 4], esi
jb 0x10061a0
cmp edi, 1
jbe 0x1006206
add dword [ebp - 8], edi
je 0x1006227
mov ecx, dword [ebp - 8]
push 0xa
pop eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 8]
lea edx, [edx + eax*2]
dec dword [ebp - 8]
jne 0x10061fc
mov esi, dword [ebp - 0x10]
jmp 0x1006227
inc dword [ebp - 8]
cmp dword [ebp - 4], esi
jae 0x1006230
movzx eax, word [ebx]
cmp ax, 0x20
je 0x100621d
cmp ax, 9
jne 0x1006227
inc dword [ebp - 4]
inc ebx
inc ebx
cmp dword [ebp - 4], esi
jb 0x100620e
cmp dword [ebp - 4], esi
jb 0x1006330
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100625b
push 0xa
pop eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
lea edx, [edx + eax*2]
mov ecx, dword [ebp + 8]
push 0xa
pop eax
mov word [edx], ax
inc edx
inc edx
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], 1
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
movzx eax, word [ebx]
cmp ax, 0xd
jne 0x1006299
cmp word [ebx + 2], 0xa
je 0x10062a3
cmp ax, 0xa
jne 0x1006335
mov edi, dword [ebp - 4]
jmp 0x10062bd
movzx eax, word [ebx]
cmp ax, 0xd
je 0x10062b7
cmp ax, 0xa
jne 0x10062c1
inc edi
inc ebx
mov dword [ebp - 4], edi
inc ebx
cmp edi, esi
jb 0x10062a8
mov eax, ebx
cmp edi, esi
jae 0x10062ee
movzx ecx, word [eax]
cmp cx, 0x20
je 0x10062d6
cmp cx, 9
jne 0x10062dd
inc edi
inc eax
inc eax
cmp edi, esi
jb 0x10062c7
cmp edi, esi
jae 0x10062ee
cmp word [eax], 0xd
jne 0x10062ee
cmp word [eax + 2], 0xa
je 0x10062f4
cmp word [eax], 0xa
jne 0x10062fb
mov ebx, eax
mov dword [ebp - 4], edi
jmp 0x10062a3
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1006328
push 0xa
pop eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 8]
lea edx, [edx + eax*2]
dec dword [ebp - 8]
jne 0x1006320
mov esi, dword [ebp - 0x10]
push 0xa
pop eax
mov word [edx], ax
inc edx
inc edx
mov edi, dword [ebp - 0xc]
jmp 0x1006340
inc ecx
mov word [edx], ax
inc edx
inc edx
inc ebx
mov dword [ebp - 4], ecx
inc ebx
mov ecx, dword [ebp - 4]
cmp ecx, esi
jb 0x1006151
jmp 0x1006233