Function at 0x43faf0
Capabilities:
Get number of processors
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0530
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
add eax, 4
mov ebx, dword [edx + 0x38]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x64], edx
mov edx, dword [edx + 0x30]
mov dword [ebp - 0x6c], ecx
mov ecx, edx
shr ecx, 2
and edx, 6
and ecx, 0xffffff01
mov dword [ebp - 0x70], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
jb 0x43fb5f
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
jne 0x43fb90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x44], eax
xor eax, eax
jmp 0x43fcd9
mov edi, 0x400
cmp ebx, edi
cmovb edi, ebx
push edi
call fcn.0049c24e
add esp, 4
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x58], 1
push 0
push ecx
push edi
push eax
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43fcc5
cmp byte [ebp - 0x5c], 0
je 0x43fc5b
cmp dword [ebp - 0x60], 0
je 0x43fc5b
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.00440f30
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x14]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x68], ecx
cmp ecx, dword [esi + 0x20]
jae 0x43fc07
cmp dword [esi + 0x1c], 0
jne 0x43fc27
push dword [esi + 0x1c]
call fcn.0049c23b
mov eax, dword [ebp - 0x68]
and eax, 0xffffffc0
add eax, 0x40
push eax
mov dword [esi + 0x20], eax
call fcn.0049c24e
add esp, 8
mov dword [esi + 0x1c], eax
push 3
push dword [esi + 0x20]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.004082e0
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
push 0
push dword [esi + 0x1c]
call fcn.004081a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404be0
mov esi, dword [ebp - 0x4c]
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x44]
add esi, eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x4c], esi
test ecx, ecx
je 0x43fc90
mov eax, dword [ecx]
push dword [ebp - 0x70]
push esi
mov eax, dword [eax]
call eax
test al, al
jne 0x43fcbe
mov eax, dword [ebp - 0x44]
sub ebx, eax
je 0x43fcc5
test eax, eax
je 0x43fcc5
push 0
cmp ebx, 0x400
lea eax, [ebp - 0x44]
push eax
cmovb edi, ebx
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43fbc6
jmp 0x43fcc5
mov dword [ebp - 0x58], 0
mov ebx, dword [ebp - 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret 0x10