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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcc60
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x51c0b0]
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 ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov esi, dword [ecx + 0x38]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx + 0x30]
mov ecx, eax
shr ecx, 2
and ecx, 0xffffff01
mov dword [ebp - 0x54], esi
test al, 6
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x50], edi
setne byte [ebp - 0x41]
mov dword [ebp - 0x64], ecx
add edx, 4
cmp dword [edx + 0x14], 8
jb 0x43c7b2
mov edx, dword [edx]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
jne 0x43c7e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
xor eax, eax
jmp 0x43c930
mov ebx, 0x400
cmp esi, ebx
cmovb ebx, esi
push ebx
call fcn.004996e0
add esp, 4
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x60], 1
push 0
push ecx
push ebx
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c91c
lea esp, [esp]
cmp byte [ebp - 0x64], 0
je 0x43c8af
cmp byte [ebp - 0x41], 0
je 0x43c8af
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x40]
push eax
call fcn.0043d9a0
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x14]
lea edi, [ecx*2 + 2]
cmp edi, dword [esi + 0x20]
jae 0x43c85a
cmp dword [esi + 0x1c], 0
jne 0x43c878
push dword [esi + 0x1c]
call fcn.004996db
shr edi, 6
inc edi
shl edi, 6
push edi
mov dword [esi + 0x20], edi
call fcn.004996e0
add esp, 8
mov dword [esi + 0x1c], eax
push 3
push dword [esi + 0x20]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.00408500
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
push 0
push dword [esi + 0x1c]
call fcn.004083c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404db0
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x50]
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x48]
add edi, eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x50], edi
test ecx, ecx
je 0x43c8e4
mov eax, dword [ecx]
push dword [ebp - 0x70]
push edi
mov eax, dword [eax]
call eax
test al, al
jne 0x43c915
mov eax, dword [ebp - 0x48]
sub esi, eax
mov dword [ebp - 0x54], esi
je 0x43c91c
test eax, eax
je 0x43c91c
push 0
cmp esi, 0x400
lea eax, [ebp - 0x48]
push eax
cmovb ebx, esi
push ebx
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c820
jmp 0x43c91c
mov dword [ebp - 0x60], 0
mov ebx, dword [ebp - 0x5c]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x60]
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.004996ca
mov esp, ebp
pop ebp
ret 0x10