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

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x10074bac]
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 closesocket
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 0x1000e3fb
cmp eax, 0xffffffff
jne 0x1000e52e
mov eax, dword [ebp - 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e401
sub eax, edx
cmp eax, 1
jbe 0x1000e52e
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 1], 0x3a
je 0x1000e52e
xor eax, eax
mov cl, byte [eax + 0x10143c88]
mov byte [ebp + eax + 0x3a0], cl
inc eax
test cl, cl
jne 0x1000e422
lea edi, [ebp + 0x3a0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000e43b
mov eax, dword [ebp - 0x6c]
mov esi, 0x1005f53c
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e44f
lea edi, [ebp + 0x3a0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e45f
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 closesocket
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 0x1000e4a2
cmp eax, 0xffffffff
jne 0x1000e528
xor eax, eax
mov cl, byte [eax + 0x10144088]
mov byte [ebp + eax + 0x3a0], cl
inc eax
test cl, cl
jne 0x1000e4a4
lea edi, [ebp + 0x3a0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000e4bd
mov eax, dword [ebp - 0x6c]
mov esi, 0x1005f53c
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e4d1
lea edi, [ebp + 0x3a0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000e4e1
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 closesocket
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 0x1000e5e0
cmp eax, 0xffffffff
je 0x1000e5e0
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x80]
push 0
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x1000e5a5
push 0x400
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], ebx
call fcn.10040850
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 0x1000e5ac
xor edx, edx
cmp dword [ebp - 0x64], ebx
jbe 0x1000e5ac
cmp edx, 0x400
jge 0x1000e5a5
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 0x1000e572
xor ebx, ebx
cmp dword [ebp - 0x64], ebx
ja 0x1000e53b
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.10040b98
add esp, 0x10
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004083f
add ebp, 0x5a4
leave
ret