Function at 0x46be40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x46be49
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404efc
mov eax, dword [ebp + 8]
call fcn.00404efc
xor eax, eax
push ebp
push 0x46c408
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046c834
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046c848
xor edx, edx
push ebp
push 0x46c3be
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x46c35f
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
call fcn.00404a3c
mov edx, dword [ebp + 8]
mov eax, 0x46c424
call fcn.00405050
test eax, eax
jle 0x46bee3
mov al, byte [0x46c428]
push eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x46c424
mov eax, dword [ebp + 8]
call fcn.0040ea54
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0046c724
test al, al
je 0x46bf93
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046c5c0
cmp dword [ebp - 0x14], 0
je 0x46bf1b
lea eax, [ebp - 0x14]
mov edx, 0x46c434
call fcn.00404d14
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x46c440
mov eax, dword [ebp - 4]
call fcn.0046b56c
cmp dword [ebp - 0x14], 0
je 0x46bf93
mov eax, dword [ebp - 0x14]
call fcn.00409678
test al, al
je 0x46bf93
push dword [ebp - 0x14]
push 0x46c460
mov eax, dword [ebp - 0xc]
push dword [eax*4 + 0x484184]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404dcc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046b574
test al, al
je 0x46bf93
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x46c047
lea edx, [ebp - 0x14]
mov eax, 0x46c46c
call fcn.0040f2e8
cmp dword [ebp - 0x14], 0
je 0x46bfba
mov eax, dword [ebp - 0x14]
call fcn.00409678
test al, al
jne 0x46bfe1
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x46c484
mov eax, dword [ebp - 4]
call fcn.0046b56c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004044dc
jmp 0x46c3c5
push dword [ebp - 0x14]
push 0x46c460
mov eax, dword [ebp - 0xc]
push dword [eax*4 + 0x484184]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404dcc
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x46c4c4
mov eax, dword [ebp - 4]
call fcn.0046b56c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046b574
test al, al
je 0x46c047
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x46c0c4
lea edx, [ebp - 0x14]
mov eax, 0x46c4e0
call fcn.0040f2e8
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x46c4f8
mov eax, dword [ebp - 4]
call fcn.0046b56c
cmp dword [ebp - 0x14], 0
je 0x46c0c4
push dword [ebp - 0x14]
push 0x46c460
mov eax, dword [ebp - 0xc]
push dword [eax*4 + 0x484184]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404dcc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046b574
test al, al
je 0x46c0c4
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
je 0x46c0da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004044dc
jmp 0x46c3c5
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040358c
lea eax, [ebp - 0x120]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
mov edi, eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x1c], eax
test edi, edi
jbe 0x46c355
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x46c518
mov eax, dword [ebp - 4]
call fcn.0046b56c
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
add al, 0xbd
sub al, 0x18
jae 0x46c311
lea eax, [ebp - 0x130]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404f6c
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408cbc
mov eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x1c]
call fcn.00404c44
mov eax, dword [ebp - 0x13c]
mov ecx, 1
mov edx, 1
call fcn.00404f6c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408cbc
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00404e58
jne 0x46c1ff
lea eax, [ebp - 0x140]
mov edx, dword [ebp - 0x1c]
call fcn.00404c44
mov eax, dword [ebp - 0x140]
call fcn.00404d0c
inc eax
sub edi, eax
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x1c]
call fcn.00404c44
mov eax, dword [ebp - 0x144]
call fcn.00404d0c
add eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x46c34d
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
push 0
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x124], 0
lea ecx, [ebp - 0x128]
mov edx, 0x46c534
mov eax, dword [ebp - 4]
call fcn.0046b56c
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x46c240
dec eax
sub eax, 2
jae 0x46c311
test bl, bl
jne 0x46c311
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x46c25c
dec eax
sub eax, 2
jae 0x46c311
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x46c550
mov eax, dword [ebp - 4]
call fcn.0046b56c
mov eax, dword [ebp - 0x1c]
mov dl, byte [eax]
mov eax, dword [ebp - 4]
call fcn.0046c614
test al, al
je 0x46c2fc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x1c]
call fcn.00404c44
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx*4 + 0x484184]
call fcn.00404d14
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046b574
test al, al
je 0x46c311
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14c]
call fcn.0040924c
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404a90
mov byte [ebp - 0xd], 1
jmp 0x46c355
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x46c584
mov eax, dword [ebp - 4]
call fcn.0046b56c
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x1c]
call fcn.00404c44
mov eax, dword [ebp - 0x150]
call fcn.00404d0c
inc eax
sub edi, eax
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x1c]
call fcn.00404c44
mov eax, dword [ebp - 0x154]
call fcn.00404d0c
add eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
test edi, edi
ja 0x46c110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c3a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c3c5
mov eax, dword [ebp - 4]
call fcn.0046c8b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c40f
lea eax, [ebp - 0x154]
mov edx, 0xb
call fcn.00404a60
lea eax, [ebp - 0x20]
call fcn.00404a3c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404a60
lea eax, [ebp - 8]
call fcn.00404a3c
lea eax, [ebp + 8]
call fcn.00404a3c
ret