Function at 0x46f3a0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
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 esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [esi + 0xe8]
xor ebx, ebx
push ebx
push ebx
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x41
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x1f], bl
xor edi, edi
mov dword [esi + 0x124], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esp + 0x28], eax
jmp 0x46f418
xor ebx, ebx
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x20], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jbe 0x46f5bf
cmp eax, 5
je 0x46f5bf
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push edi
add esi, 0xc8
push 1
mov ecx, esi
call fcn.0051a1eb
movsx eax, byte [esp + 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push 4
push ebx
push edi
mov ecx, esi
call fcn.0051a237
push 0x57e9e8
lea ecx, [esp + 0x1c]
call fcn.004019c0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
shrd ebx, edx, 0x14
shrd ebp, ecx, 0x14
mov eax, ebx
sub eax, ebp
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push 0x57f5f8
push eax
shr ecx, 0x14
shr edx, 0x14
call fcn.004020e0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
push 1
push edi
mov ecx, esi
call fcn.00519d48
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push 0x57f5f8
push eax
call fcn.004020e0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
push 2
push edi
mov ecx, esi
call fcn.00519d48
push ebp
lea edx, [esp + 0x1c]
push 0x57f5f8
push edx
call fcn.004020e0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push 3
push edi
mov ecx, esi
call fcn.00519d48
mov eax, ebp
imul eax, eax, 0x64
cdq
idiv ebx
push 0x5896e8
lea ecx, [esp + 0x1c]
push eax
push str._d_s
push ecx
call fcn.004020e0
mov edx, dword [esp + 0x28]
add esp, 0x10
push edx
push 4
push edi
mov ecx, esi
call fcn.00519d48
call fcn.0041fc60
movsx ecx, byte [esp + 0x1c]
push ecx
lea ecx, [eax + 0x134]
call fcn.004e0fb0
test al, al
je 0x46f590
push 1
push edi
mov ecx, esi
call fcn.0051a9e7
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add dword [eax + 0x120], ebp
add dword [eax + 0x11c], ebx
add dword [eax + 0x124], edx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add edi, 1
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f5bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, 0x5a
mov dword [esp + 0x28], eax
jle 0x46f416
mov ecx, dword [esi + 0x11c]
test ecx, ecx
je 0x46f5f2
mov eax, dword [esi + 0x124]
imul eax, eax, 0x64
xor edx, edx
div ecx
mov dword [esi + 0x128], eax
jmp 0x46f5fc
mov dword [esi + 0x128], 0x64
mov ecx, dword [esi + 0xe8]
push 0
push 0
push 0x1043
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 2
push 0
lea ecx, [esi + 0xc8]
call fcn.00519d1d
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret