Function at 0x404110
Capabilities:
Get disk information via ioctl
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415510
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x41c490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
cmp edi, esi
je 0x40478e
cmp dword [ebp + 0x10], esi
je 0x40478e
push 0x208
mov dword [ebp - 4], esi
call fcn.00404a46
add esp, 4
push 0x208
mov dword [ebp - 0x1c], eax
call fcn.00404a46
mov dword [ebp - 0x18], eax
mov eax, edi
add esp, 4
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x404190
sub eax, edx
sar eax, 1
lea ebx, [eax + eax + 8]
push ebx
mov dword [ebp - 0x34], ebx
call fcn.00406bc7
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x4041e2
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], str.bad_allocation
call fcn.0040569c
push 0x41a6cc
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x48], vtable.std::bad_alloc.0
call fcn.004071b1
push ebx
push 0
push esi
call fcn.0040bcf0
mov eax, edi
add esp, 0xc
mov dword [esi], 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404200
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404216
sub eax, ebx
push edx
sar eax, 1
push edi
inc eax
push eax
add esi, 6
push esi
call fcn.00406c5b
push 0x2a
call fcn.00406bc7
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x38], ebx
test ebx, ebx
jne 0x40426f
push 1
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x34], str.bad_allocation
call fcn.0040569c
push 0x41a6cc
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], vtable.std::bad_alloc.0
call fcn.004071b1
push 0x2a
push 0
push ebx
call fcn.0040bcf0
push 0x80
mov dword [ebx], 0x2a0104
mov dword [ebp - 0x14], 0x80
call fcn.00404a46
mov edx, dword [ebp - 0x14]
add esp, 0x10
push edx
mov esi, eax
push 0
push esi
call fcn.0040bcf0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push ecx
push esi
push 0x62
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, dword [ebp - 0x1c]
lea edx, [esi + 0x18]
push edx
push str.._s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call fcn.004058e7
push 0x10
mov dword [ebp - 0x14], 0x10
call fcn.00404a46
mov esi, eax
mov eax, dword [ebp - 0x14]
add esp, 8
push eax
push 0
push esi
call fcn.0040bcf0
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
push edx
push esi
push 0
push 0
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x404348
add dword [ebp - 0x14], 0x10
push esi
call fcn.004058e7
mov eax, dword [ebp - 0x14]
push eax
call fcn.00404a46
mov ecx, dword [ebp - 0x14]
add esp, 8
mov esi, eax
push ecx
jmp 0x404300
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 8]
mov edi, dword [ebp - 0x18]
push edx
push str..PhysicalDrive_d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push esi
mov dword [ebp - 0x30], edi
call fcn.004058e7
push 0x10
mov dword [ebp - 0x14], 0x10
call fcn.00404a46
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push esi
call fcn.0040bcf0
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
push edx
push esi
push 0
push 0
push 0x70000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
test eax, eax
jne 0x4043f4
add dword [ebp - 0x14], 0x10
call fcn.004058e7
mov eax, dword [ebp - 0x14]
push eax
call fcn.00404a46
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
mov esi, eax
push 0
push esi
call fcn.0040bcf0
jmp 0x4043ac
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x2c], edx
call fcn.004058e7
push 0x10
mov dword [ebp - 0x14], 0x10
call fcn.00404a46
add esp, 8
mov edi, eax
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
push 0
lea eax, [ebp - 0x24]
push eax
push ecx
push edi
push 0
push 0
push 0x70050
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40445d
add dword [ebp - 0x14], 0x10
push edi
call fcn.004058e7
mov edx, dword [ebp - 0x14]
push edx
call fcn.00404a46
mov edi, eax
mov eax, dword [ebp - 0x14]
add esp, 8
push eax
push 0
push edi
call fcn.0040bcf0
add esp, 0xc
jmp 0x404412
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x30], eax
cmp eax, dword [edi + 4]
jae 0x404557
cmp dword [edi], 1
jne 0x404516
lea esi, [eax + eax*8]
add esi, esi
lea esi, [edi + esi*8 + 0x50]
mov ecx, 0x10
mov edx, 0x41d450
mov dword [ebp - 0x28], esi
cmp ecx, 4
jb 0x4044ab
mov esi, dword [ebp - 0x28]
mov esi, dword [esi]
cmp esi, dword [edx]
jne 0x404510
sub ecx, 4
add edx, 4
add dword [ebp - 0x28], 4
jmp 0x404491
lea esi, [eax + eax*8]
xor eax, eax
push eax
mov eax, dword [ebp - 0x2c]
shl esi, 4
mov edx, dword [esi + edi + 0x48]
mov ecx, dword [esi + edi + 0x3c]
add esi, edi
push eax
mov dword [ebx + 4], edx
mov edx, dword [esi + 0x38]
push ecx
push edx
call fcn.00415390
mov ecx, dword [esi + 0x44]
mov dword [ebx + 8], eax
xor eax, eax
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov dword [ebx + 0xc], edx
mov edx, dword [esi + 0x40]
push ecx
push edx
call fcn.00415390
mov ecx, dword [esi + 0x64]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x6c]
mov dword [ebx + 0x14], edx
mov edx, dword [esi + 0x68]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x30]
mov word [ebx + 0x28], 0x202
inc eax
jmp 0x404466
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406984
push ebx
call fcn.00406984
push edi
call fcn.004058e7
mov edx, dword [ebp - 0x18]
push edx
call fcn.004058e7
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004058e7
add esp, 0x14
mov eax, 0x78
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004058e7
mov eax, dword [ebp + 0x10]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404566
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 6]
push edi
mov dword [ebp - 0x30], edi
call fcn.00406bc7
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x4045b8
push 1
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x3c], str.bad_allocation
call fcn.0040569c
push 0x41a6cc
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], vtable.std::bad_alloc.0
call fcn.004071b1
push edi
push 0
push esi
call fcn.0040bcf0
mov ecx, dword [ebp + 0x10]
mov eax, ecx
lea edx, [eax + 2]
add esp, 0xc
mov word [esi], 0x404
mov word [esi + 2], di
mov dword [ebp - 0x3c], edx
jmp 0x4045e0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4045e0
sub eax, dword [ebp - 0x3c]
sar eax, 1
mov dword [ebp - 0x38], eax
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x3c], edx
jmp 0x404600
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x404600
sub eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
push edx
sar eax, 1
push ecx
inc eax
push eax
lea eax, [esi + 4]
push eax
call fcn.00406c5b
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
lea eax, [edi + edx + 0x2e]
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ecx], eax
jb 0x4046de
cmp dword [ebp + 8], 0
je 0x4046de
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
push edx
push eax
add edi, 0x2e
push ecx
mov word [eax + 4], di
call fcn.00406e50
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x34]
mov ecx, 0xa
mov edi, eax
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x30]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x28]
push ecx
add eax, 0x2a
push esi
push eax
call fcn.00406e50
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov byte [edx + eax - 1], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + eax - 2], 4
mov edx, dword [ebp - 0x14]
mov byte [edx + eax - 3], 0xff
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push edx
mov byte [ecx + eax - 4], 0x7f
call fcn.00406984
push ebx
call fcn.00406984
push esi
call fcn.00406984
mov eax, dword [ebp - 0x18]
push eax
call fcn.004058e7
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004058e7
add esp, 0x2c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x20]
push edx
mov dword [ecx], eax
call fcn.00406984
push ebx
call fcn.00406984
push esi
call fcn.00406984
mov eax, dword [ebp - 0x18]
push eax
call fcn.004058e7
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004058e7
add esp, 0x14
mov eax, 0x7a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret