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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x686300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x68f4b8]
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 0x4e9862
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
mov ebx, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x24]
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x68f4a8
cmp dword [edi + 0x1c], 0
jne 0x4e98a3
mov eax, dword [0x68f5a8]
test eax, eax
jne 0x4e98a0
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 [0x68f5a8], 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 0x4e9953
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 0x4e9947
mov eax, dword [0x68f4b8]
test al, 1
jne 0x4e9911
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov ecx, 0x68f4a8
push eax
mov eax, dword [0x68f4a8]
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], 0x68f4a8
jmp 0x4e9bc7
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 0x4e9a5b
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 0x4e99ad
call fcn.00489620
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 0x4e9bc7
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea ebx, [esi + eax*8]
cmp esi, ebx
jae 0x4e9bc2
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 0x4e99f3
mov eax, dword [ebp - 8]
add esi, 8
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp esi, ebx
jb 0x4e99c0
jmp 0x4e9bc5
mov eax, dword [0x68f4b8]
test al, 1
jne 0x4e9a22
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov ecx, 0x68f4a8
push eax
mov eax, dword [0x68f4a8]
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], 0x68f4a8
or eax, 0xffffffff
or edx, eax
jmp 0x4e9bc7
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push esi
push ebx
call fcn.004d3640
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.005bc090
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 0x4e9ac6
lea esp, [esp]
xor ecx, ecx
cmp dword [ebx + 4], ecx
jbe 0x4e9abf
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 0x4e9aa7
mov eax, dword [ebp - 0x4c]
add ebx, 8
cmp ebx, eax
jb 0x4e9aa0
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 0x4e9bb9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x4e9ba3
mov eax, dword [0x68f4b8]
test al, 1
jne 0x4e9b68
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
call edi
mov dword [ebp - 0x18], eax
mov ecx, 0x68f4a8
push eax
mov eax, dword [0x68f4a8]
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], 0x68f4a8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x4e9bc7
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 0x4e9b39
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.005b7dc4
mov esp, ebp
pop ebp
ret 0x14