Function at 0x403156
Capabilities:
Get disk information

Disassembly:
mov eax, 0x458e74
call fcn.00431c64
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov byte [ebp - 0xd], bl
cmp edi, dword [esi + 0x44]
jne 0x403219
push ebx
push edi
call fcn.00403021
lea edi, [esi + 0x48]
push edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [edi], bl
je 0x4031b9
mov byte [ebp - 0xd], 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
mov ecx, esi
push dword [esi + 0x44]
push edi
call fcn.00402e05
push edi
call fcn.00431f60
cmp byte [edi + eax + 1], bl
lea edi, [edi + eax + 1]
pop ecx
jne 0x403197
mov edi, dword [ebp + 8]
cmp dword [esi + 0x244], ebx
je 0x403208
mov eax, dword [0x476b9c]
mov dword [ebp + 8], eax
push 0xe155
lea ecx, [ebp + 8]
mov dword [ebp - 4], 9
call fcn.00449826
cmp byte [ebp - 0xd], bl
jne 0x4031fc
push 0xffff0002
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
push dword [ebp + 8]
push 1
call fcn.00442eaf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00449263
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov eax, dword [0x476b9c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], eax
push edi
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
mov byte [ebp - 4], 1
call fcn.00448fd8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004034b7
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0044939c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00449263
push ebx
push edi
mov ecx, esi
call fcn.00403021
lea eax, [ebp - 0x14]
push 0x4751a8
push eax
lea eax, [ebp + 8]
push eax
call fcn.004494f8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0044939c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00449263
lea ecx, [ebp - 0x44]
call fcn.00429be7
push ebx
lea ecx, [ebp - 0x44]
push dword [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00429caa
cmp eax, ebx
je 0x403394
lea ecx, [ebp - 0x44]
call fcn.00429eca
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x44]
push 0x10
lea ecx, [ebp - 0x44]
call dword [eax + 0x38]
cmp eax, ebx
je 0x40338b
lea ecx, [ebp - 0x44]
call fcn.00429e91
test eax, eax
jne 0x40338b
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x44]
push eax
call fcn.0042a031
mov eax, dword [eax]
push str.Recycled
push eax
call fcn.00432122
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x20]
setne byte [ebp + 0xb]
call fcn.00449263
cmp byte [ebp + 0xb], bl
je 0x40338b
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0xd], 1
call fcn.0042a0c2
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 5
call fcn.00449492
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push edi
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00402e05
lea ecx, [ebp - 0x24]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
call fcn.00449263
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00449263
push 0xffff0002
mov ecx, esi
push dword [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x478d30
push 1
call fcn.00442eaf
push edi
push ebx
push 0x1113
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x1c], ebx
jne 0x4032b3
cmp dword [esi + 0x244], ebx
je 0x403442
push ebx
lea ecx, [ebp - 0x44]
push dword [ebp - 0x18]
call fcn.00429caa
cmp eax, ebx
je 0x403442
lea ecx, [ebp - 0x44]
call fcn.00429eca
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x44]
push 0x10
lea ecx, [ebp - 0x44]
call dword [eax + 0x38]
cmp eax, ebx
jne 0x403439
push ecx
lea ecx, [ebp - 0x44]
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.0042a0c2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb8]
cmp al, bl
je 0x403439
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0xd], 1
call fcn.0042a0c2
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 7
call fcn.00449492
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push edi
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00402e05
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.00449263
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00449263
cmp dword [ebp - 0x1c], ebx
jne 0x4033b4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00429c24
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00449263
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00449263
jmp 0x4031bc