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

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x10083adc]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
mov eax, dword [ebp + 0x5ac]
mov ecx, dword [ebp + 0x5b0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push bind
mov edi, 0x195d3b7f
mov esi, 0x2a6e4c80
push eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x70], 0x37bf15d9
mov dword [ebp - 0x74], 0xc40826ae
mov dword [ebp - 0x64], 1
call ebx
mov dword [ebp - 0x68], eax
test eax, eax
jbe 0x1000fa55
cmp eax, 0xffffffff
jne 0x1000fb88
mov eax, dword [ebp - 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000fa5b
sub eax, edx
cmp eax, 1
jbe 0x1000fb88
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 1], 0x3a
je 0x1000fb88
xor eax, eax
mov cl, byte [eax + 0x10155e68]
mov byte [ebp + eax + 0x3a0], cl
inc eax
test cl, cl
jne 0x1000fa7c
lea edi, [ebp + 0x3a0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000fa95
mov eax, dword [ebp - 0x6c]
mov esi, 0x100639dc
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000faa9
lea edi, [ebp + 0x3a0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000fab9
mov ecx, eax
shr ecx, 2
push 0
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push 0
push 3
mov ecx, eax
push bind
lea eax, [ebp + 0x3a0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov dword [ebp - 0x68], eax
test eax, eax
jbe 0x1000fafc
cmp eax, 0xffffffff
jne 0x1000fb82
xor eax, eax
mov cl, byte [eax + 0x10156268]
mov byte [ebp + eax + 0x3a0], cl
inc eax
test cl, cl
jne 0x1000fafe
lea edi, [ebp + 0x3a0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000fb17
mov eax, dword [ebp - 0x6c]
mov esi, 0x100639dc
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000fb2b
lea edi, [ebp + 0x3a0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000fb3b
mov ecx, eax
shr ecx, 2
push 0
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push 0
push 3
mov ecx, eax
push bind
lea eax, [ebp + 0x3a0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov dword [ebp - 0x68], eax
test eax, eax
jbe 0x1000fc3a
cmp eax, 0xffffffff
je 0x1000fc3a
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x80]
push 0
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x1000fbff
push 0x400
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], ebx
call fcn.10044b80
add esp, 0xc
push ebx
lea eax, [ebp - 0x64]
push eax
push 0x400
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000fc06
xor edx, edx
cmp dword [ebp - 0x64], ebx
jbe 0x1000fc06
cmp edx, 0x400
jge 0x1000fbff
movzx eax, byte [ebp + edx - 0x60]
add edi, eax
mov ecx, edi
sub ecx, eax
add esi, ecx
mov ecx, eax
shl eax, 4
shr ecx, 4
or ecx, eax
lea eax, [ecx + esi]
add dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
sub eax, ecx
add dword [ebp - 0x74], eax
inc edx
cmp edx, dword [ebp - 0x64]
jb 0x1000fbcc
xor ebx, ebx
cmp dword [ebp - 0x64], ebx
ja 0x1000fb95
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov eax, 0xffffff
and ecx, eax
shl edx, 8
or ecx, edx
push ecx
and edi, eax
shl esi, 8
or edi, esi
push edi
push str._08x_08x
push dword [ebp - 0x7c]
call fcn.10044ec8
add esp, 0x10
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044b6f
add ebp, 0x5a4
leave
ret