Function at 0x47a340
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x515706
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
push 0x64
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x1c], eax
xor edi, edi
lea ebx, [ebp]
lea ebx, [ebx + edi*2]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x47a5ac
call fcn.0040d266
mov ecx, eax
test ecx, ecx
je case.0x47a4b2.1
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x534850
jne 0x47a5ef
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x47a4d8
test ebx, 0xffff0000
jne 0x47a4cd
movzx ebx, bx
mov ecx, ebx
call fcn.0040d36c
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x47a4e7
mov eax, ebx
shr eax, 4
push 6
inc eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47a4e7
mov ecx, dword [ebp - 0x14]
mov edx, eax
push ebx
call fcn.0040d3cc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47a4e7
movzx edx, word [ebx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
mov dword [ebp - 0x14], edx
jge 0x47a48d
push edx
lea ecx, [ebp - 0x10]
call fcn.0040d637
movzx edx, word [ebx]
mov esi, dword [ebp - 0x10]
movzx ecx, dx
lea eax, [ebx + 2]
mov ebx, dword [ebp - 0x14]
push ecx
push eax
push ebx
push esi
call fcn.004e08e7
add esp, 0x10
cmp eax, 0x50
ja case.0x47a4b2.1
movzx eax, byte [eax + 0x47a628]
jmp dword [eax*4 + 0x47a618]
cmp ebx, dword [esi - 8]
jg case.0x47a4b2.20
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x47a4e7
push ebx
call fcn.004e07a4
add esp, 4
jmp 0x47a4da
xor eax, eax
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040d7d9
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ecx + 8]
mov edx, dword [ecx + 4]
cmp edx, ebx
jne 0x47a54a
mov ecx, dword [ecx]
lea eax, [ebp - 0x10]
cmp eax, ecx
jb 0x47a515
lea esi, [ebp - 0x10]
lea eax, [ecx + ebx*4]
cmp esi, eax
mov esi, dword [ebp - 0x10]
jb case.0x47a4b2.1
test ebx, ebx
jne 0x47a520
mov ebx, 1
jmp 0x47a52f
lea ebx, [edx + edx]
test ebx, ebx
js 0x47a578
cmp ebx, 0x1fffffff
ja 0x47a578
push 4
push ebx
push ecx
call fcn.004e327d
add esp, 0xc
test eax, eax
je 0x47a578
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov dword [ecx + 8], ebx
mov dword [ecx], eax
mov eax, dword [ecx]
lea ebx, [eax + edx*4]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x47a571
lea ecx, [esi - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.00406f9b
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
inc dword [ecx + 4]
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47a5ac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x534850
jne 0x47a5f6
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jae 0x47a5c0
cmp word [ebp + edi*2], 0
je 0x47a5c0
inc edi
cmp edi, eax
jb 0x47a5b3
inc edi
cmp edi, eax
jb 0x47a3c3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.004da696
lea esp, [ebp + 0xcc]
pop ebp
ret
call edx
jmp 0x47a3ff
call edx
jmp 0x47a5ac
push 0x80070057
call fcn.0040d795
push 0x8007000e
call fcn.0040d795
push 0x80004005
call fcn.0040d795
mov ecx, 0x40047a4
cmpsb byte [esi], byte es:[edi]
inc edi
add dl, bh
movsd dword es:[edi], dword [esi]
inc edi
add byte [esi], cl
cmpsb byte [esi], byte es:[edi]
inc edi
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3