Function at 0x4ed6a0
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x693538]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
test al, 1
jne 0x4ed6f2
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
mov ebx, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x24]
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x693528
cmp dword [edi + 0x1c], 0
jne 0x4ed733
mov eax, dword [0x693628]
test eax, eax
jne 0x4ed730
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x6c]
mov ecx, 0x1000
test eax, eax
cmovle eax, ecx
mov dword [0x693628], eax
mov dword [edi + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
and eax, ecx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
cmp eax, 0xffffffff
jne 0x4ed7e3
push 1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push 0
push dword [edi]
mov dword [ebp - 0x1c], 0
call esi
test eax, eax
jne 0x4ed7d7
mov eax, dword [0x693538]
test al, 1
jne 0x4ed7a1
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov ecx, 0x693528
push eax
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x14], al
or eax, 0xffffffff
movq xmm0, qword [ebp - 0x18]
or edx, eax
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x693528
jmp 0x4eda57
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
test byte [edi + 0x20], 4
mov dword [ebp - 8], 0
jne 0x4ed8eb
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edx
push eax
push ecx
push edx
push dword [edi]
mov dword [ebp - 0x1c], ecx
call esi
test eax, eax
jne 0x4ed83d
call fcn.0048d0f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ecx, esi
push eax
mov dword [ebp - 0x18], eax
mov edx, dword [edx + 0x18]
call edx
mov byte [ebp - 0x14], al
or eax, 0xffffffff
movq xmm0, qword [ebp - 0x18]
or edx, eax
movq qword [ebx], xmm0
mov dword [ebx + 8], esi
jmp 0x4eda57
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea ebx, [esi + eax*8]
cmp esi, ebx
jae 0x4eda52
mov edi, edi
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [esi + 4]
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ed883
mov eax, dword [ebp - 8]
add esi, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp esi, ebx
jb 0x4ed850
jmp 0x4eda55
mov eax, dword [0x693538]
test al, 1
jne 0x4ed8b2
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov ecx, 0x693528
push eax
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x14], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x18]
movq qword [eax], xmm0
mov dword [eax + 8], 0x693528
or eax, 0xffffffff
or edx, eax
jmp 0x4eda57
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push esi
push ebx
call fcn.004d7540
mov dword [ebp - 0x30], eax
add esp, 8
dec eax
add eax, dword [edi + 0x1c]
cdq
idiv dword [edi + 0x1c]
mov dword [ebp - 0x34], eax
lea eax, [eax*8 + 8]
call fcn.005bea30
mov eax, esp
mov dword [ebp - 0x1c], eax
mov edi, eax
lea eax, [ebx + esi*8]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
cmp ebx, eax
jae 0x4ed956
lea esp, [esp]
xor ecx, ecx
cmp dword [ebx + 4], ecx
jbe 0x4ed94f
mov eax, dword [ebx]
add eax, ecx
cdq
mov dword [edi], eax
mov dword [edi + 4], edx
add edi, 8
add ecx, dword [esi + 0x1c]
cmp ecx, dword [ebx + 4]
jb 0x4ed937
mov eax, dword [ebp - 0x4c]
add ebx, 8
cmp ebx, eax
jb 0x4ed930
mov ecx, dword [ebp - 0x28]
mov eax, ecx
push 0
push 0
mov dword [edi], 0
mov dword [edi + 4], 0
sar eax, 0x1f
mov eax, dword [ebp - 0x2c]
push 1
push 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [esi + 0x1c]
imul eax, dword [ebp - 0x34]
push ecx
push 0
push eax
push dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
test eax, eax
jne 0x4eda49
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x4eda33
mov eax, dword [0x693538]
test al, 1
jne 0x4ed9f8
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
call edi
mov dword [ebp - 0x18], eax
mov ecx, 0x693528
push eax
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
call eax
push dword [ebp - 0x38]
mov byte [ebp - 0x14], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x18]
movq qword [eax], xmm0
mov dword [eax + 8], 0x693528
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x4eda57
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4ed9c9
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
xor edx, edx
lea esp, [ebp - 0x7c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret 0x14