Function at 0x47478b
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x504c21
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x569078]
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 esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 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 0x4748ea
call fcn.00406ab4
mov ecx, eax
test ecx, ecx
je case.0x474784.1
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x4746cf
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4746d1
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x474821
test ebx, 0xffff0000
jne 0x4747a2
movzx ebx, bx
mov ecx, ebx
call fcn.0040974f
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x47489b
mov eax, ebx
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47489b
mov ecx, dword [ebp - 0x14]
mov edx, eax
push ebx
call fcn.004097b1
mov edx, eax
add esp, 4
mov dword [ebp - 0x14], edx
test edx, edx
je 0x47489b
movzx ebx, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x474762
push ebx
lea ecx, [ebp - 0x10]
call fcn.004067ae
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx]
lea eax, [edx + 2]
push ecx
push eax
push ebx
push esi
call fcn.004d40bd
add esp, 0x10
cmp eax, 0x50
ja case.0x474784.1
movzx eax, byte [eax + 0x474960]
jmp dword [eax*4 + 0x474950]
cmp ebx, dword [esi - 8]
jg case.0x474784.20
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x47489b
push ebx
call fcn.004d163d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x474821
mov eax, dword [esi - 0xc]
lea edx, [ebp]
mov dword [ebp - 0x24], eax
lea edx, [edx + edi*2]
mov eax, edx
sub eax, esi
sar eax, 1
mov dword [ebp - 0x14], eax
test ebx, ebx
js case.0x474784.20
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4747f1
push ebx
lea ecx, [ebp - 0x10]
call fcn.004067ae
mov esi, dword [ebp - 0x10]
lea edx, [ebp]
lea edx, [edx + edi*2]
mov eax, dword [ebp - 0x14]
mov ecx, esi
push ebx
cmp eax, dword [ebp - 0x24]
ja 0x474810
mov edx, dword [esi - 8]
lea eax, [esi + eax*2]
push eax
call fcn.00409955
add esp, 8
jmp case.0x474784.78
push edx
mov edx, dword [esi - 8]
call fcn.00406690
add esp, 8
jmp case.0x474784.78
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov ebx, dword [ecx]
je 0x47489b
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x47484d
cmp dword [esi - 8], 0
jl case.0x474784.20
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x47489b
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x47487c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x474878
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47487c
mov ecx, edx
call esi
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x474891
lock inc dword [ebx + 0x14]
lea eax, [ebx + 8]
jmp 0x474895
mov ecx, ebx
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004717c0
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4748ed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x4748e6
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4748ed
call edx
jmp 0x4748ed
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jae 0x474901
cmp word [ebp + edi*2], 0
je 0x474901
inc edi
cmp edi, eax
jb 0x4748f4
inc edi
cmp edi, eax
jb 0x474695
mov eax, ebx
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.004cb6da
lea esp, [ebp + 0xcc]
pop ebp
ret
push 0x80070057
call fcn.00406c36
push 0x8007000e
call fcn.00406c36
push 0x80004005
call fcn.00406c36
nop dword [eax]
mov eax, dword [edi + 0x47]
add byte [ecx], bh
dec ecx
inc edi
add byte [edi], ch
dec ecx
inc edi
add byte [ebx + 0x49], al
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