Function at 0x475ca5
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x509dd6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x570074]
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 0x475d9a
call fcn.0040cc51
mov ecx, eax
test ecx, ecx
je case.0x475c9e.1
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x528840
jne 0x475bed
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x475bef
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x475cc4
test ebx, 0xffff0000
jne 0x475cb9
movzx ebx, bx
mov ecx, ebx
call fcn.0040cd50
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x475cd3
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 0x475cd3
mov ecx, dword [ebp - 0x14]
mov edx, eax
push ebx
call fcn.0040cdb0
mov edx, eax
add esp, 4
mov dword [ebp - 0x14], edx
test edx, edx
je 0x475cd3
movzx ebx, word [edx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x475c7c
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040d01b
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.004d5d77
add esp, 0x10
cmp eax, 0x50
ja case.0x475c9e.1
movzx eax, byte [eax + 0x475e0c]
jmp dword [eax*4 + 0x475dfc]
cmp ebx, dword [esi - 8]
jg case.0x475c9e.20
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x475cd3
push ebx
call fcn.004d5c34
add esp, 4
jmp 0x475cc6
xor eax, eax
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040d1b7
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 8]
mov ebx, dword [edx + 4]
cmp ebx, ecx
jne 0x475d2e
mov edx, dword [edx]
lea eax, [ebp - 0x10]
cmp eax, edx
jb 0x475d01
lea esi, [ebp - 0x10]
lea eax, [edx + ecx*4]
cmp esi, eax
mov esi, dword [ebp - 0x10]
jb case.0x475c9e.1
test ecx, ecx
jne 0x475d0a
lea ebx, [ecx + 1]
jmp 0x475d16
add ebx, ebx
js 0x475d62
cmp ebx, 0x1fffffff
ja 0x475d62
push 4
push ebx
push edx
call fcn.004d8728
add esp, 0xc
test eax, eax
je 0x475d62
mov edx, dword [ebp - 0x18]
mov dword [edx + 8], ebx
mov dword [edx], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [edx]
lea ebx, [eax + ecx*4]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x475d5b
lea ecx, [esi - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.0040699a
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
inc dword [edx + 4]
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x475d9a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x528840
jne 0x475d98
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x475d9a
call edx
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jae 0x475dae
cmp word [ebp + edi*2], 0
je 0x475dae
inc edi
cmp edi, eax
jb 0x475da1
inc edi
cmp edi, eax
jb 0x475bb3
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.004d0217
lea esp, [ebp + 0xcc]
pop ebp
ret
push 0x80070057
call fcn.0040d173
push 0x8007000e
call fcn.0040d173
push 0x80004005
call fcn.0040d173
nop
movsd dword es:[edi], dword [esi]
pop esp
inc edi
add bh, ah
pop ebp
inc edi
add ch, bl
pop ebp
inc edi
add cl, dh
pop ebp
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