Function at 0x46f640
Capabilities:
Get disk information
Get disk size
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x56d858
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0x1d4]
push eax
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x11c], eax
mov dword [ebx + 0x120], eax
mov dword [esp + 0x20], 0x41
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
xor ebp, ebp
mov byte [esp + 0x18], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jbe 0x46f6cd
cmp eax, 5
jne 0x46f742
lea eax, [ebx + 0xc8]
test eax, eax
je 0x46f9db
cmp dword [eax + 0x20], 0
je 0x46f9db
mov edx, dword [ebx + 0xe8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1004
push edx
call ebp
mov edi, eax
xor esi, esi
test edi, edi
jle 0x46f993
lea esp, [esp]
push esi
lea ecx, [ebx + 0xc8]
call fcn.00519d73
movsx ecx, byte [esp + 0x14]
cmp eax, ecx
jne 0x46f736
mov edx, dword [ebx + 0xe8]
push 0
push esi
push 0x1008
push edx
call ebp
add esi, 1
cmp esi, edi
jl 0x46f710
jmp 0x46f993
lea edi, [ebx + 0xc8]
test edi, edi
je 0x46f9db
cmp dword [edi + 0x20], 0
je 0x46f9db
mov eax, dword [ebx + 0xe8]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x46f795
push esi
mov ecx, edi
call fcn.00519d73
movsx ecx, byte [esp + 0x14]
cmp ecx, eax
je 0x46f795
jbe 0x46f78e
lea ebp, [esi + 1]
add esi, 1
cmp esi, ebx
jl 0x46f778
cmp esi, ebx
jne 0x46f7cc
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push ebp
push 1
mov ecx, edi
call fcn.0051a1eb
movsx eax, byte [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ecx, edi
call fcn.0051a237
mov esi, ebp
xor eax, eax
push 0x57e9e8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.004019c0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
shrd ebx, eax, 0x14
shrd ebp, ecx, 0x14
shr eax, 0x14
mov eax, ebp
sub eax, ebx
shr ecx, 0x14
test ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
jle 0x46f967
test ebx, ebx
jl 0x46f967
test eax, eax
jl 0x46f967
push ebp
lea edx, [esp + 0x1c]
push 0x57f5f8
push edx
call fcn.004020e0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push 1
push esi
mov ecx, edi
call fcn.00519d48
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push 0x57f5f8
push edx
call fcn.004020e0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push 2
push esi
mov ecx, edi
call fcn.00519d48
push ebx
lea ecx, [esp + 0x1c]
push 0x57f5f8
push ecx
call fcn.004020e0
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
push 3
push esi
mov ecx, edi
call fcn.00519d48
mov eax, ebx
imul eax, eax, 0x64
cdq
mov ecx, eax
mov ebx, edx
mov eax, ebp
cdq
push edx
push eax
push ebx
push ecx
call fcn.005344c0
push 0x5896e8
push edx
push eax
lea edx, [esp + 0x24]
push str._lld__s
push edx
call fcn.004020e0
mov eax, dword [esp + 0x2c]
add esp, 0x14
push eax
push 4
push esi
mov ecx, edi
call fcn.00519d48
call fcn.0041fc60
movsx ecx, byte [esp + 0x14]
push ecx
lea ecx, [eax + 0x134]
call fcn.004e0fb0
test al, al
je 0x46f949
cmp byte [esp + 0x58], 0
je 0x46f92b
push 1
push esi
mov ecx, edi
call fcn.0051a9e7
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add dword [eax + 0x120], edx
add dword [eax + 0x11c], ebp
add dword [eax + 0x124], ecx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x50], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x46f983
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 0x5a
mov dword [esp + 0x20], eax
jle 0x46f6ae
mov ecx, dword [ebx + 0x11c]
test ecx, ecx
je 0x46f9c6
mov eax, dword [ebx + 0x124]
imul eax, eax, 0x64
xor edx, edx
div ecx
mov dword [ebx + 0x128], eax
jmp 0x46f9d0
mov dword [ebx + 0x128], 0x64
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4