Function at 0x4118e0
Capabilities:
Get file attributes
Get number of processors
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, edx
sub esp, 8
mov esi, ecx
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.00410600
test eax, eax
jns 0x411923
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00420701
mov esp, ebp
pop ebp
ret 4
push ecx
push 0x64
push 1
push 7
push 0x80
push 0
push 0x110081
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00410e60
mov esi, eax
lfence
test esi, esi
jns 0x41197f
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x41196a
mov eax, dword fs:[0x18]
push ecx
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00420701
mov esp, ebp
pop ebp
ret 4
movzx esi, word [ebp - 0x2c]
add esi, 0x12
push esi
push 4
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x44], ebx
call fcn.00422210
add esp, 0xc
mov dword [ebx + 4], 0
cmp byte [ebp + 8], 0
sete cl
mov byte [ebx], cl
movzx eax, word [ebp - 0x2c]
mov dword [ebx + 8], eax
movzx eax, word [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
lea eax, [ebx + 0xc]
push eax
call fcn.00423850
mov eax, dword [ebp - 0x28]
add esp, 0xc
test eax, eax
je 0x4119fd
push eax
mov eax, dword fs:[0x18]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0xa
push esi
push ebx
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
cmp edi, 0xc00000d4
jne 0x411b46
push 5
push 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x411b46
mov ecx, dword [ebp - 0x18]
mov eax, 5
cmp byte [ebp + 8], 0
mov edx, dword [ebp - 0x1c]
push ecx
mov dword [ebp - 0x48], ecx
mov ecx, 2
push 0x64
cmovne eax, ecx
mov dword [ebp - 0x4c], edx
push eax
push 1
push 0x80
lea eax, [ebp - 0x4c]
push eax
lfence
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
push 0x120116
call fcn.00410e60
mov edi, eax
test edi, edi
js 0x411b46
call fcn.00406960
mov edi, eax
test edi, edi
jne 0x411a9d
mov edi, 0xc0000017
jmp 0x411b46
push 0
push 0
push 0x2000
push edi
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, dword [ebp - 0x30]
mov esi, eax
mov dword [ebp - 0x34], ecx
test esi, esi
js 0x411b19
lfence
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x411b19
push 0
push 0
push eax
push edi
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
test esi, esi
js 0x411b19
cmp dword [ebp - 0x3c], 0
je 0x411b19
push 0
push 0
push 0x2000
push edi
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0
push ebx
lfence
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, dword [ebp - 0x34]
mov esi, eax
test esi, esi
jns 0x411ac7
mov ecx, edi
call fcn.004069a0
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
mov esi, dword [ebp - 0x34]
test edi, edi
je 0x411b3e
mov ecx, esi
call fcn.0040f8c0
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
push dword [ebp - 0x44]
push 0
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420701
mov esp, ebp
pop ebp
ret 4