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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x611e60]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x61dad0]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
push ebx
mov ebx, ecx
push esi
push edi
test al, 1
jne 0x42aeeb
or eax, 1
mov ecx, 0x61dac0
mov dword [0x61dad0], eax
call fcn.00424b30
mov esi, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x1c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x61dac0
cmp dword [ebx + 0x1c], 0
jne 0x42af2c
mov eax, dword [0x61db48]
test eax, eax
jne 0x42af29
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x70]
mov ecx, 0x1000
test eax, eax
cmovle eax, ecx
mov dword [0x61db48], eax
mov dword [ebx + 0x1c], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [ebp - 0x1c]
push 1
push eax
push 0
push 0
push dword [ebx]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call edi
test eax, eax
jne 0x42afa3
mov eax, dword [0x61dad0]
test al, 1
jne 0x42af6d
or eax, 1
mov ecx, 0x61dac0
mov dword [0x61dad0], eax
call fcn.00424b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov ecx, 0x61dac0
push eax
mov eax, dword [0x61dac0]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x30], al
movq xmm0, qword [ebp - 0x34]
or eax, 0xffffffff
movq qword [esi], xmm0
mov dword [esi + 8], 0x61dac0
or edx, eax
jmp 0x42b249
test byte [ebx + 0x20], 4
mov dword [ebp - 0xc], 0
jne 0x42b0a7
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
push 0
push edx
push eax
push ecx
push dword [ebx]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
call edi
test eax, eax
jne 0x42b00e
mov eax, dword [0x61dad0]
test al, 1
jne 0x42afeb
or eax, 1
mov ecx, 0x61dac0
mov dword [0x61dad0], eax
call fcn.00424b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, 0x61dac0
push eax
mov eax, dword [0x61dac0]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
movq xmm0, qword [ebp - 0x1c]
jmp 0x42af8e
mov esi, dword [ebp + 0x10]
lea edi, [esi + 8]
cmp esi, edi
jae 0x42b244
lea esp, [esp]
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b053
mov eax, dword [ebp - 0xc]
add esi, 8
add eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
cmp esi, edi
jb 0x42b020
jmp 0x42b247
mov eax, dword [0x61dad0]
test al, 1
jne 0x42b06e
or eax, 1
mov ecx, 0x61dac0
mov dword [0x61dad0], eax
call fcn.00424b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, 0x61dac0
push eax
mov eax, dword [0x61dac0]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 0x61dac0
or eax, 0xffffffff
or edx, eax
jmp 0x42b249
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.0042ae60
mov dword [ebp - 0x50], eax
dec eax
add eax, dword [ebx + 0x1c]
cdq
idiv dword [ebx + 0x1c]
mov dword [ebp - 0x38], eax
lea eax, [eax*8 + 8]
call fcn.0055b3d0
mov eax, esp
mov dword [ebp - 0x2c], eax
mov esi, eax
lea eax, [edi + 8]
mov dword [ebp - 0x20], eax
cmp edi, eax
jae 0x42b106
lea esp, [esp]
xor ecx, ecx
cmp dword [edi + 4], ecx
jbe 0x42b0ff
mov eax, dword [edi]
add eax, ecx
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
add esi, 8
add ecx, dword [ebx + 0x1c]
cmp ecx, dword [edi + 4]
jb 0x42b0e7
mov eax, dword [ebp - 0x20]
add edi, 8
cmp edi, eax
jb 0x42b0e0
mov ecx, dword [ebp - 0x18]
mov eax, ecx
push 0
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
sar eax, 0x1f
mov eax, dword [ebp - 0x1c]
push 1
push 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
add dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x1c]
imul eax, dword [ebp - 0x38]
push ecx
push 0
push eax
push dword [ebp - 0x2c]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
test eax, eax
jne 0x42b23b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x42b1cf
mov eax, dword [0x61dad0]
test al, 1
jne 0x42b194
or eax, 1
mov ecx, 0x61dac0
mov dword [0x61dad0], eax
call fcn.00424b30
call esi
mov dword [ebp - 0x1c], eax
mov ecx, 0x61dac0
push eax
mov eax, dword [0x61dac0]
mov eax, dword [eax + 0x18]
call eax
push dword [ebp - 0x3c]
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 0x61dac0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x42b249
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x42b23b
mov eax, dword [0x61dad0]
test al, 1
jne 0x42b200
or eax, 1
mov ecx, 0x61dac0
mov dword [0x61dad0], eax
call fcn.00424b30
call esi
mov dword [ebp - 0x1c], eax
mov ecx, 0x61dac0
push eax
mov eax, dword [0x61dac0]
mov eax, dword [eax + 0x18]
call eax
push dword [ebp - 0x3c]
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 0x61dac0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x42b249
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
xor edx, edx
lea esp, [ebp - 0x84]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005571f4
mov esp, ebp
pop ebp
ret 0x14