Function at 0x4121f0
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size

Disassembly:
mov eax, 0x3648
call fcn.0043c910
push ebx
push ebp
mov ebp, dword [esp + 0x3654]
xor eax, eax
lea edx, [esp + 0x250]
push esi
mov dword [ebp + 0x164], eax
mov ecx, dword [0x495620]
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea ebx, [esp + 0x1c58]
mov al, byte [esp + 0x10]
push 0x100
lea ecx, [esp + 0x24]
add al, 0x41
push ebx
push ecx
mov byte [esp + 0x2c], al
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
jne 0x412270
mov edi, 0x498ae8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x412287
cmp dword [esp + 0x10], 2
jge 0x4122bc
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
inc edx
add eax, 0x100
mov dword [esp + 0x1c], edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add ebx, 0x100
inc eax
cmp eax, 0x1a
mov dword [esp + 0x10], eax
jl 0x412231
lea eax, [esp + 0x58]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov esi, eax
push 0x200
mov dword [esp + 0x30], esi
call fcn.0043c72b
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x4125f1
cmp esi, 0xffffffff
je 0x4125f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x25c]
push edx
push eax
call fcn.00412190
add esp, 0xc
test al, al
jne 0x4125d4
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x158]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test esi, esi
jle 0x412377
mov byte [esp + esi + 0x157], al
push 0
push 0
push 3
push 0
push 3
lea ecx, [esp + 0x16c]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x4125d0
lea edx, [esp + 0x34]
push 0
push edx
push esi
mov esi, dword [esp + 0x30]
push esi
push 0
push 0
push 0x560000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4125d0
mov eax, dword [esi]
mov dword [esp + 0x28], 0
test eax, eax
jbe 0x4125d0
lea eax, [esi + 8]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
mov edx, dword [ecx]
cmp edx, eax
jne 0x4125b2
mov eax, dword [ebp + 0x164]
lea edx, [esp + 0x1e58]
mov edi, 2
mov dword [esp + 0x18], edx
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
mov dword [ecx + ebp + 0x168], 0xffffffff
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x58]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x412447
test cl, cl
je 0x412443
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x412447
add eax, 2
add esi, 2
test cl, cl
jne 0x412423
xor eax, eax
jmp 0x41244c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412589
mov edx, dword [esp + 0x30]
push eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x44]
push eax
push 8
push ecx
push 0
push 0
push 0x7405c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4124a9
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, 0x14
call fcn.0043d750
mov ecx, dword [ebp + 0x164]
lea esi, [ecx + ecx*4]
lea esi, [esi + esi*8]
shl esi, 1
sub esi, ecx
mov dword [esi + ebp + 0x18c], eax
mov dword [esi + ebp + 0x190], edx
mov eax, dword [ebp + 0x164]
push 0x20
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
mov dword [ecx + ebp + 0x168], edi
mov eax, dword [ebp + 0x164]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*8]
shl edx, 1
sub edx, eax
add eax, 5
lea ecx, [edx + ebp]
lea edx, [ecx + 0x16c]
add ecx, 0x19d
push edx
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x54]
push edx
lea edx, [eax + eax*4]
lea edx, [edx + edx*8]
shl edx, 1
sub edx, eax
lea eax, [esp + 0x68]
add edx, ebp
push edx
push 0x20
push ecx
push eax
call ebx
mov eax, dword [ebp + 0x164]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
lea eax, [ecx + ebp + 0x168]
mov ecx, dword [ecx + ebp + 0x168]
cmp ecx, 1
jle 0x412589
mov dx, word [0x494764]
mov cl, byte [0x494766]
mov word [esp + 0x10], dx
mov byte [esp + 0x12], cl
mov dl, byte [eax]
lea eax, [esp + 0x38]
add dl, 0x61
lea ecx, [esp + 0x50]
mov byte [esp + 0x10], dl
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00410ea0
add esp, 0xc
test al, al
je 0x412589
mov eax, dword [ebp + 0x164]
mov edx, dword [esp + 0x38]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
mov dword [ecx + ebp + 0x194], edx
mov eax, dword [esp + 0x3c]
mov dword [ecx + ebp + 0x198], eax
mov ecx, dword [esp + 0x18]
inc edi
add ecx, 0x100
cmp edi, 0x1a
mov dword [esp + 0x18], ecx
jl 0x41241b
mov eax, dword [ebp + 0x164]
mov esi, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x164], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi]
inc eax
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edx
jb 0x4123df
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x58]
push 0x64
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x41230f
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3648
ret