Function at 0x467634
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x3b
push 0
push 0
dec ecx
jne 0x46763d
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.00404ccc
mov eax, dword [ebp + 8]
call fcn.00404ccc
xor eax, eax
push ebp
push 0x468182
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004687c0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004687d4
push 0x4681a0
push dword [ebp - 8]
push 0x4681b4
push 0x4681c0
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 0xc]
call fcn.00408df8
push dword [ebp - 0x130]
push 0x4681b4
push 0x4681d4
push dword [ebp + 8]
push 0x4681b4
lea eax, [ebp - 0x12c]
mov edx, 9
call fcn.00404b9c
mov eax, dword [ebp - 0x12c]
mov edx, 0x4681ec
call fcn.004637dc
xor eax, eax
push ebp
push 0x468108
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4680a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x28], 2
lea eax, [ebp - 0x24]
call fcn.0040480c
mov edx, dword [ebp + 8]
mov eax, 0x468208
call fcn.00404e20
test eax, eax
jle 0x467736
mov al, byte [0x46820c]
push eax
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, 0x468208
mov eax, dword [ebp + 8]
call fcn.0040e508
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004686b0
test al, al
je 0x4677f0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00468548
cmp dword [ebp - 0x14], 0
je 0x46776e
lea eax, [ebp - 0x14]
mov edx, 0x468218
call fcn.00404ae4
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
lea ecx, [ebp - 0x138]
mov edx, 0x468224
mov eax, dword [ebp - 4]
call fcn.00466bec
cmp dword [ebp - 0x14], 0
je 0x4677f0
mov eax, dword [ebp - 0x14]
call fcn.00409334
test al, al
je 0x4677f0
push dword [ebp - 0x14]
push 0x468244
mov eax, dword [ebp - 0xc]
cmp eax, 5
jbe 0x4677ba
call fcn.00403a0c
push dword [eax*4 + 0x476064]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b9c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00466c00
test al, al
je 0x4677f0
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x468250
push dword [ebp - 0x14]
push 0x4681b4
push 0x468268
push dword [ebp - 0x18]
push 0x4681b4
push 0x46827c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x4681b4
push 0x468290
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x4681b4
push 0x4682a4
lea ecx, [ebp - 0x140]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409154
push dword [ebp - 0x140]
push 0x4681b4
push 0x4682b8
lea ecx, [ebp - 0x144]
xor edx, edx
mov eax, ebx
call fcn.00409154
push dword [ebp - 0x144]
push 0x4681b4
lea eax, [ebp - 0x13c]
mov edx, 0x12
call fcn.00404b9c
mov eax, dword [ebp - 0x13c]
mov edx, 0x4682cc
call fcn.004637dc
test bl, bl
jne 0x467a7d
lea edx, [ebp - 0x14]
mov eax, 0x4682fc
call fcn.0040ed20
cmp dword [ebp - 0x14], 0
je 0x4678b4
mov eax, dword [ebp - 0x14]
call fcn.00409334
test al, al
jne 0x467974
push 0xffffffffffffffff
lea ecx, [ebp - 0x144]
mov edx, 0x468314
mov eax, dword [ebp - 4]
call fcn.00466bec
push 0x468250
push dword [ebp - 0x14]
push 0x4681b4
push 0x468268
push dword [ebp - 0x18]
push 0x4681b4
push 0x46827c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x4681b4
push 0x468290
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x4681b4
push 0x4682a4
lea ecx, [ebp - 0x14c]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409154
push dword [ebp - 0x14c]
push 0x4681b4
push 0x4682b8
lea ecx, [ebp - 0x150]
xor edx, edx
mov eax, ebx
call fcn.00409154
push dword [ebp - 0x150]
push 0x4681b4
lea eax, [ebp - 0x148]
mov edx, 0x12
call fcn.00404b9c
mov eax, dword [ebp - 0x148]
mov edx, 0x468354
call fcn.004637dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004042f4
jmp 0x46810f
push dword [ebp - 0x14]
push 0x468244
mov eax, dword [ebp - 0xc]
cmp eax, 5
jbe 0x467989
call fcn.00403a0c
push dword [eax*4 + 0x476064]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b9c
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
lea ecx, [ebp - 0x138]
mov edx, 0x468378
mov eax, dword [ebp - 4]
call fcn.00466bec
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00466c00
test al, al
je 0x4679e4
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x468250
push dword [ebp - 0x14]
push 0x4681b4
push 0x468268
push dword [ebp - 0x18]
push 0x4681b4
push 0x46827c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x4681b4
push 0x468290
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x4681b4
push 0x4682a4
lea ecx, [ebp - 0x158]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409154
push dword [ebp - 0x158]
push 0x4681b4
push 0x4682b8
lea ecx, [ebp - 0x15c]
xor edx, edx
mov eax, ebx
call fcn.00409154
push dword [ebp - 0x15c]
push 0x4681b4
lea eax, [ebp - 0x154]
mov edx, 0x12
call fcn.00404b9c
mov eax, dword [ebp - 0x154]
mov edx, 0x468394
call fcn.004637dc
test bl, bl
jne 0x467ba1
lea edx, [ebp - 0x14]
mov eax, 0x4683bc
call fcn.0040ed20
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
lea ecx, [ebp - 0x138]
mov edx, 0x4683d4
mov eax, dword [ebp - 4]
call fcn.00466bec
cmp dword [ebp - 0x14], 0
je 0x467b08
push dword [ebp - 0x14]
push 0x468244
mov eax, dword [ebp - 0xc]
cmp eax, 5
jbe 0x467ad2
call fcn.00403a0c
push dword [eax*4 + 0x476064]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b9c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00466c00
test al, al
je 0x467b08
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x468250
push dword [ebp - 0x14]
push 0x4681b4
push 0x468268
push dword [ebp - 0x18]
push 0x4681b4
push 0x46827c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x4681b4
push 0x468290
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x4681b4
push 0x4682a4
lea ecx, [ebp - 0x164]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409154
push dword [ebp - 0x164]
push 0x4681b4
push 0x4682b8
lea ecx, [ebp - 0x168]
xor edx, edx
mov eax, ebx
call fcn.00409154
push dword [ebp - 0x168]
push 0x4681b4
lea eax, [ebp - 0x160]
mov edx, 0x12
call fcn.00404b9c
mov eax, dword [ebp - 0x160]
mov edx, 0x4683f4
call fcn.004637dc
test bl, bl
je 0x467bb7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004042f4
jmp 0x46810f
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x128]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040322c
lea eax, [ebp - 0x128]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
mov esi, eax
push 0x468414
lea eax, [ebp - 0x170]
lea edx, [ebp - 0x128]
mov ecx, pe_nt_image_headers32
call fcn.00404a8c
push dword [ebp - 0x170]
push 0x4681b4
push 0x46842c
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x174]
call fcn.00408ee4
push dword [ebp - 0x174]
lea eax, [ebp - 0x16c]
mov edx, 5
call fcn.00404b9c
mov eax, dword [ebp - 0x16c]
mov edx, 0x468440
call fcn.004637dc
lea edi, [ebp - 0x128]
test esi, esi
jbe 0x468070
push 0
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 6
lea ecx, [ebp - 0x138]
mov edx, 0x468454
mov eax, dword [ebp - 4]
call fcn.00466bec
mov al, byte [edi]
add al, 0xbd
sub al, 0x18
jae 0x467ed8
push edi
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0
lea ecx, [ebp - 0x138]
mov edx, 0x468470
mov eax, dword [ebp - 4]
call fcn.00466bec
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffe
sub eax, 5
jae 0x467ed8
add dword [ebp - 0x1c], 1
jno 0x467cc7
call fcn.00403a14
test bl, bl
jne 0x467ed8
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffe
sub eax, 5
jae 0x467ed8
push 0
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 6
lea ecx, [ebp - 0x138]
mov edx, 0x46848c
mov eax, dword [ebp - 4]
call fcn.00466bec
mov dl, byte [edi]
mov eax, dword [ebp - 4]
call fcn.0046859c
test al, al
je 0x467ec3
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x178]
mov edx, edi
call fcn.00404a14
lea eax, [ebp - 0x178]
mov edx, dword [ebp - 0xc]
cmp edx, 5
jbe 0x467d3c
call fcn.00403a0c
mov edx, dword [edx*4 + 0x476064]
call fcn.00404ae4
mov edx, dword [ebp - 0x178]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00466c00
test al, al
je 0x467ed8
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x17c]
call fcn.00408ee4
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404860
mov byte [ebp - 0xd], 1
push 0x468268
lea eax, [ebp - 0x184]
mov edx, edi
call fcn.00404a14
push dword [ebp - 0x184]
mov eax, dword [ebp - 0xc]
cmp eax, 5
jbe 0x467dad
call fcn.00403a0c
push dword [eax*4 + 0x476064]
push 0x4681b4
push 0x46827c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x4681b4
push 0x468290
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x4681b4
push 0x4682a4
lea ecx, [ebp - 0x188]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409154
push dword [ebp - 0x188]
push 0x4681b4
push 0x4682b8
lea ecx, [ebp - 0x18c]
xor edx, edx
mov eax, ebx
call fcn.00409154
push dword [ebp - 0x18c]
push 0x4681b4
push 0x4684c0
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 0x1c]
call fcn.00408df8
push dword [ebp - 0x190]
push 0x4681b4
lea eax, [ebp - 0x180]
mov edx, 0x13
call fcn.00404b9c
mov eax, dword [ebp - 0x180]
push eax
mov edx, 0x4684d0
lea eax, [ebp - 0x198]
call fcn.00403110
lea eax, [ebp - 0x19c]
mov dl, byte [edi]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x198]
mov cl, 2
call fcn.004030e0
lea edx, [ebp - 0x198]
lea eax, [ebp - 0x1ac]
call fcn.00403110
mov edx, 0x4684d4
lea eax, [ebp - 0x1ac]
mov cl, 0xe
call fcn.004030e0
lea edx, [ebp - 0x1ac]
lea eax, [ebp - 0x194]
call fcn.00404a80
mov edx, dword [ebp - 0x194]
pop eax
call fcn.004637dc
jmp 0x468070
push 0xffffffffffffffff
lea ecx, [ebp - 0x144]
mov edx, 0x4684ec
mov eax, dword [ebp - 4]
call fcn.00466bec
push 0x468268
lea eax, [ebp - 0x1b4]
mov edx, edi
call fcn.00404a14
push dword [ebp - 0x1b4]
mov eax, dword [ebp - 0xc]
cmp eax, 5
jbe 0x467efd
call fcn.00403a0c
push dword [eax*4 + 0x476064]
push 0x4681b4
push 0x46827c
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x4681b4
push 0x468290
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x4681b4
push 0x4682a4
lea ecx, [ebp - 0x1b8]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409154
push dword [ebp - 0x1b8]
push 0x4681b4
push 0x4682b8
lea ecx, [ebp - 0x1bc]
xor edx, edx
mov eax, ebx
call fcn.00409154
push dword [ebp - 0x1bc]
push 0x4681b4
push 0x4684c0
lea edx, [ebp - 0x1c0]
mov eax, dword [ebp - 0x1c]
call fcn.00408df8
push dword [ebp - 0x1c0]
push 0x4681b4
lea eax, [ebp - 0x1b0]
mov edx, 0x13
call fcn.00404b9c
mov eax, dword [ebp - 0x1b0]
push eax
mov edx, 0x4684d0
lea eax, [ebp - 0x198]
call fcn.00403110
lea eax, [ebp - 0x19c]
mov dl, byte [edi]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x198]
mov cl, 2
call fcn.004030e0
lea edx, [ebp - 0x198]
lea eax, [ebp - 0x1d4]
call fcn.00403110
mov edx, 0x468508
lea eax, [ebp - 0x1d4]
mov cl, 0xd
call fcn.004030e0
lea edx, [ebp - 0x1d4]
lea eax, [ebp - 0x1c4]
call fcn.00404a80
mov edx, dword [ebp - 0x1c4]
pop eax
call fcn.004637dc
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1d8]
mov edx, edi
call fcn.00404a14
mov eax, dword [ebp - 0x1d8]
call fcn.00404adc
add eax, 1
jno 0x468036
call fcn.00403a14
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x468049
call fcn.00403a0c
mov esi, eax
lea eax, [ebp - 0x1dc]
mov edx, edi
call fcn.00404a14
mov eax, dword [ebp - 0x1dc]
call fcn.00404adc
add edi, eax
add edi, 1
test esi, esi
ja 0x467c51
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, 0x46851c
call fcn.004637dc
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x468099
mov byte [0x4780b8], 1
dec dword [ebp - 0x28]
jne 0x467704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4680ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46810f
mov dl, byte [ebp - 0xd]
mov eax, dword [ebp - 4]
call fcn.0046883c
mov byte [ebp - 0xd], al
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468189
lea eax, [ebp - 0x1dc]
mov edx, 2
call fcn.00404830
lea eax, [ebp - 0x1c4]
mov edx, 6
call fcn.00404830
lea eax, [ebp - 0x194]
mov edx, 0x17
call fcn.00404830
lea eax, [ebp - 0x130]
mov edx, 2
call fcn.00404830
lea eax, [ebp - 0x24]
call fcn.0040480c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404830
lea eax, [ebp - 8]
call fcn.0040480c
lea eax, [ebp + 8]
call fcn.0040480c
ret