Function at 0x47b63c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x3a
push 0
push 0
dec ecx
jne 0x47b645
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.00404d30
mov eax, dword [ebp + 8]
call fcn.00404d30
xor eax, eax
push ebp
push 0x47c158
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047c780
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047c794
push 0x47c174
push dword [ebp - 8]
push 0x47c188
push 0x47c194
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 0xc]
call fcn.004092a8
push dword [ebp - 0x130]
push 0x47c188
push 0x47c1a8
push dword [ebp + 8]
push 0x47c188
lea eax, [ebp - 0x12c]
mov edx, 9
call fcn.00404c00
mov eax, dword [ebp - 0x12c]
mov edx, 0x47c1c0
call fcn.0046cff4
xor eax, eax
push ebp
push 0x47c0de
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47c079
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x28], 2
lea eax, [ebp - 0x24]
call fcn.00404870
mov edx, dword [ebp + 8]
mov eax, 0x47c1dc
call fcn.00404e84
test eax, eax
jle 0x47b73e
mov al, byte [0x47c1e0]
push eax
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, 0x47c1dc
mov eax, dword [ebp + 8]
call fcn.0040e9d8
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0047c670
test al, al
je 0x47b7f8
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047c508
cmp dword [ebp - 0x14], 0
je 0x47b776
lea eax, [ebp - 0x14]
mov edx, 0x47c1ec
call fcn.00404b48
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
lea ecx, [ebp - 0x138]
mov edx, 0x47c1f8
mov eax, dword [ebp - 4]
call fcn.0047abfc
cmp dword [ebp - 0x14], 0
je 0x47b7f8
mov eax, dword [ebp - 0x14]
call fcn.004097c0
test al, al
je 0x47b7f8
push dword [ebp - 0x14]
push 0x47c218
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x47b7c2
call fcn.00403a58
push dword [eax*4 + 0x4aa180]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c00
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.0047ac10
test al, al
je 0x47b7f8
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x47c224
push dword [ebp - 0x14]
push 0x47c188
push 0x47c23c
push dword [ebp - 0x18]
push 0x47c188
push 0x47c250
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47c188
push 0x47c264
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47c188
push 0x47c278
lea ecx, [ebp - 0x140]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004095e0
push dword [ebp - 0x140]
push 0x47c188
push 0x47c28c
lea ecx, [ebp - 0x144]
xor edx, edx
mov eax, ebx
call fcn.004095e0
push dword [ebp - 0x144]
push 0x47c188
lea eax, [ebp - 0x13c]
mov edx, 0x12
call fcn.00404c00
mov eax, dword [ebp - 0x13c]
mov edx, 0x47c2a0
call fcn.0046cff4
test bl, bl
jne 0x47ba85
lea edx, [ebp - 0x14]
mov eax, 0x47c2d0
call fcn.0040f1f0
cmp dword [ebp - 0x14], 0
je 0x47b8bc
mov eax, dword [ebp - 0x14]
call fcn.004097c0
test al, al
jne 0x47b97c
push 0xffffffffffffffff
lea ecx, [ebp - 0x144]
mov edx, 0x47c2e8
mov eax, dword [ebp - 4]
call fcn.0047abfc
push 0x47c224
push dword [ebp - 0x14]
push 0x47c188
push 0x47c23c
push dword [ebp - 0x18]
push 0x47c188
push 0x47c250
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47c188
push 0x47c264
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47c188
push 0x47c278
lea ecx, [ebp - 0x14c]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004095e0
push dword [ebp - 0x14c]
push 0x47c188
push 0x47c28c
lea ecx, [ebp - 0x150]
xor edx, edx
mov eax, ebx
call fcn.004095e0
push dword [ebp - 0x150]
push 0x47c188
lea eax, [ebp - 0x148]
mov edx, 0x12
call fcn.00404c00
mov eax, dword [ebp - 0x148]
mov edx, 0x47c328
call fcn.0046cff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404358
jmp 0x47c0e5
push dword [ebp - 0x14]
push 0x47c218
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x47b991
call fcn.00403a58
push dword [eax*4 + 0x4aa180]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c00
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
lea ecx, [ebp - 0x138]
mov edx, 0x47c34c
mov eax, dword [ebp - 4]
call fcn.0047abfc
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.0047ac10
test al, al
je 0x47b9ec
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x47c224
push dword [ebp - 0x14]
push 0x47c188
push 0x47c23c
push dword [ebp - 0x18]
push 0x47c188
push 0x47c250
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47c188
push 0x47c264
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47c188
push 0x47c278
lea ecx, [ebp - 0x158]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004095e0
push dword [ebp - 0x158]
push 0x47c188
push 0x47c28c
lea ecx, [ebp - 0x15c]
xor edx, edx
mov eax, ebx
call fcn.004095e0
push dword [ebp - 0x15c]
push 0x47c188
lea eax, [ebp - 0x154]
mov edx, 0x12
call fcn.00404c00
mov eax, dword [ebp - 0x154]
mov edx, 0x47c368
call fcn.0046cff4
test bl, bl
jne 0x47bba9
lea edx, [ebp - 0x14]
mov eax, 0x47c390
call fcn.0040f1f0
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
lea ecx, [ebp - 0x138]
mov edx, 0x47c3a8
mov eax, dword [ebp - 4]
call fcn.0047abfc
cmp dword [ebp - 0x14], 0
je 0x47bb10
push dword [ebp - 0x14]
push 0x47c218
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x47bada
call fcn.00403a58
push dword [eax*4 + 0x4aa180]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c00
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.0047ac10
test al, al
je 0x47bb10
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x47c224
push dword [ebp - 0x14]
push 0x47c188
push 0x47c23c
push dword [ebp - 0x18]
push 0x47c188
push 0x47c250
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47c188
push 0x47c264
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47c188
push 0x47c278
lea ecx, [ebp - 0x164]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004095e0
push dword [ebp - 0x164]
push 0x47c188
push 0x47c28c
lea ecx, [ebp - 0x168]
xor edx, edx
mov eax, ebx
call fcn.004095e0
push dword [ebp - 0x168]
push 0x47c188
lea eax, [ebp - 0x160]
mov edx, 0x12
call fcn.00404c00
mov eax, dword [ebp - 0x160]
mov edx, 0x47c3c8
call fcn.0046cff4
test bl, bl
je 0x47bbbf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404358
jmp 0x47c0e5
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x128]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004032bc
lea eax, [ebp - 0x128]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
mov esi, eax
push 0x47c3e8
lea eax, [ebp - 0x170]
lea edx, [ebp - 0x128]
mov ecx, pe_nt_image_headers32
call fcn.00404af0
push dword [ebp - 0x170]
push 0x47c188
push 0x47c400
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x174]
call fcn.00409394
push dword [ebp - 0x174]
lea eax, [ebp - 0x16c]
mov edx, 5
call fcn.00404c00
mov eax, dword [ebp - 0x16c]
mov edx, 0x47c414
call fcn.0046cff4
lea edi, [ebp - 0x128]
test esi, esi
jbe 0x47c056
push 0
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 6
lea ecx, [ebp - 0x138]
mov edx, 0x47c428
mov eax, dword [ebp - 4]
call fcn.0047abfc
mov al, byte [edi]
add al, 0xbd
sub al, 0x18
jae 0x47bed5
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, 0x47c444
mov eax, dword [ebp - 4]
call fcn.0047abfc
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffe
sub eax, 2
jb 0x47bcca
dec eax
sub eax, 2
jae 0x47bed5
add dword [ebp - 0x1c], 1
jno 0x47bcd5
call fcn.00403a60
test bl, bl
jne 0x47bed5
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffe
sub eax, 2
jb 0x47bcf2
dec eax
sub eax, 2
jae 0x47bed5
push 0
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 6
lea ecx, [ebp - 0x138]
mov edx, 0x47c460
mov eax, dword [ebp - 4]
call fcn.0047abfc
mov dl, byte [edi]
mov eax, dword [ebp - 4]
call fcn.0047c55c
test al, al
je 0x47bec0
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.00404a78
lea eax, [ebp - 0x178]
mov edx, dword [ebp - 0xc]
cmp edx, 4
jbe 0x47bd50
call fcn.00403a58
mov edx, dword [edx*4 + 0x4aa180]
call fcn.00404b48
mov edx, dword [ebp - 0x178]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047ac10
test al, al
je 0x47bed5
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x17c]
call fcn.00409394
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.004048c4
mov byte [ebp - 0xd], 1
push 0x47c224
push dword [ebp - 0x14]
push 0x47c188
push 0x47c23c
push dword [ebp - 0x18]
push 0x47c188
push 0x47c250
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47c188
push 0x47c264
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47c188
push 0x47c278
lea ecx, [ebp - 0x184]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004095e0
push dword [ebp - 0x184]
push 0x47c188
push 0x47c28c
lea ecx, [ebp - 0x188]
xor edx, edx
mov eax, ebx
call fcn.004095e0
push dword [ebp - 0x188]
push 0x47c188
push 0x47c494
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 0x1c]
call fcn.004092a8
push dword [ebp - 0x18c]
push 0x47c188
lea eax, [ebp - 0x180]
mov edx, 0x15
call fcn.00404c00
mov eax, dword [ebp - 0x180]
push eax
mov edx, 0x47c4a4
lea eax, [ebp - 0x194]
call fcn.004031a0
lea eax, [ebp - 0x198]
mov dl, byte [edi]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x198]
lea eax, [ebp - 0x194]
mov cl, 2
call fcn.00403170
lea edx, [ebp - 0x194]
lea eax, [ebp - 0x1a8]
call fcn.004031a0
mov edx, 0x47c4a8
lea eax, [ebp - 0x1a8]
mov cl, 0xe
call fcn.00403170
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x190]
call fcn.00404ae4
mov edx, dword [ebp - 0x190]
pop eax
call fcn.0046cff4
jmp 0x47c056
push 0xffffffffffffffff
lea ecx, [ebp - 0x144]
mov edx, 0x47c4c0
mov eax, dword [ebp - 4]
call fcn.0047abfc
push 0x47c224
push dword [ebp - 0x14]
push 0x47c188
push 0x47c23c
push dword [ebp - 0x18]
push 0x47c188
push 0x47c250
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47c188
push 0x47c264
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47c188
push 0x47c278
lea ecx, [ebp - 0x1b0]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004095e0
push dword [ebp - 0x1b0]
push 0x47c188
push 0x47c28c
lea ecx, [ebp - 0x1b4]
xor edx, edx
mov eax, ebx
call fcn.004095e0
push dword [ebp - 0x1b4]
push 0x47c188
push 0x47c494
lea edx, [ebp - 0x1b8]
mov eax, dword [ebp - 0x1c]
call fcn.004092a8
push dword [ebp - 0x1b8]
push 0x47c188
lea eax, [ebp - 0x1ac]
mov edx, 0x15
call fcn.00404c00
mov eax, dword [ebp - 0x1ac]
push eax
mov edx, 0x47c4a4
lea eax, [ebp - 0x194]
call fcn.004031a0
lea eax, [ebp - 0x198]
mov dl, byte [edi]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x198]
lea eax, [ebp - 0x194]
mov cl, 2
call fcn.00403170
lea edx, [ebp - 0x194]
lea eax, [ebp - 0x1cc]
call fcn.004031a0
mov edx, 0x47c4dc
lea eax, [ebp - 0x1cc]
mov cl, 0xd
call fcn.00403170
lea edx, [ebp - 0x1cc]
lea eax, [ebp - 0x1bc]
call fcn.00404ae4
mov edx, dword [ebp - 0x1bc]
pop eax
call fcn.0046cff4
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1d0]
mov edx, edi
call fcn.00404a78
mov eax, dword [ebp - 0x1d0]
call fcn.00404b40
add eax, 1
jno 0x47c01c
call fcn.00403a60
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x47c02f
call fcn.00403a58
mov esi, eax
lea eax, [ebp - 0x1d4]
mov edx, edi
call fcn.00404a78
mov eax, dword [ebp - 0x1d4]
call fcn.00404b40
add edi, eax
add edi, 1
test esi, esi
ja 0x47bc59
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x47c06f
mov byte [0x4acef0], 1
dec dword [ebp - 0x28]
jne 0x47b70c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47c0c2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c0e5
mov dl, byte [ebp - 0xd]
mov eax, dword [ebp - 4]
call fcn.0047c7fc
mov byte [ebp - 0xd], al
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c15f
lea eax, [ebp - 0x1d4]
mov edx, 2
call fcn.00404894
lea eax, [ebp - 0x1bc]
mov edx, 5
call fcn.00404894
lea eax, [ebp - 0x190]
mov edx, 0x16
call fcn.00404894
lea eax, [ebp - 0x130]
mov edx, 2
call fcn.00404894
lea eax, [ebp - 0x24]
call fcn.00404870
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404894
lea eax, [ebp - 8]
call fcn.00404870
lea eax, [ebp + 8]
call fcn.00404870
ret