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

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x10084adc]
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 0x1000fb95
cmp eax, 0xffffffff
jne 0x1000fcc8
mov eax, dword [ebp - 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000fb9b
sub eax, edx
cmp eax, 1
jbe 0x1000fcc8
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 1], 0x3a
je 0x1000fcc8
xor eax, eax
mov cl, byte [eax + 0x10156e68]
mov byte [ebp + eax + 0x3a0], cl
inc eax
test cl, cl
jne 0x1000fbbc
lea edi, [ebp + 0x3a0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000fbd5
mov eax, dword [ebp - 0x6c]
mov esi, 0x10063a4c
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000fbe9
lea edi, [ebp + 0x3a0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000fbf9
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 0x1000fc3c
cmp eax, 0xffffffff
jne 0x1000fcc2
xor eax, eax
mov cl, byte [eax + 0x10157268]
mov byte [ebp + eax + 0x3a0], cl
inc eax
test cl, cl
jne 0x1000fc3e
lea edi, [ebp + 0x3a0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000fc57
mov eax, dword [ebp - 0x6c]
mov esi, 0x10063a4c
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000fc6b
lea edi, [ebp + 0x3a0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000fc7b
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 0x1000fd7a
cmp eax, 0xffffffff
je 0x1000fd7a
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x80]
push 0
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x1000fd3f
push 0x400
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], ebx
call fcn.10045030
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 0x1000fd46
xor edx, edx
cmp dword [ebp - 0x64], ebx
jbe 0x1000fd46
cmp edx, 0x400
jge 0x1000fd3f
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 0x1000fd0c
xor ebx, ebx
cmp dword [ebp - 0x64], ebx
ja 0x1000fcd5
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.10045378
add esp, 0x10
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004501f
add ebp, 0x5a4
leave
ret