Function at 0x47da90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call fcn.004964ca
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47dada
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], edi
jge 0x47daff
push 0x80070057
call fcn.00421000
movzx eax, word [eax]
movzx ecx, ax
push ecx
call fcn.004a5e67
mov esi, eax
lea edx, [esi - 0x41]
add esp, 4
cmp edx, 0x19
ja 0x47ded5
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 1
jge 0x47db2f
push 0x80070057
call fcn.00421000
movzx eax, word [eax + 2]
cmp ax, 0x3a
jne 0x47ded5
cmp dword [0x4f3878], edi
jne 0x47db4a
call fcn.0047fc70
push 0x4f3ba8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi*4 + 0x4f3abc]
cmp eax, 0xffffffff
jne 0x47dd8b
push esi
lea eax, [ebp - 0x18]
push str._c:_
push eax
call fcn.004622a0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47dba1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 1
jne 0x47dba9
or edi, 0xffffffff
push 0x4cc12c
mov dword [ebp - 0x18], edi
mov dword [esi*4 + 0x4f3abc], edi
lea ebx, [esi*4 + 0x4f3b24]
call fcn.004a4b1a
add esp, 4
push eax
push 0x4cc12c
mov ecx, ebx
call fcn.00423f4a
cmp edi, 0xffffffff
je 0x47dde4
push 0x4cc12c
lea ecx, [ebp - 0x10]
call fcn.0042342e
push esi
lea ecx, [ebp - 0x1c]
push 0x4dce50
push ecx
mov byte [ebp - 4], 3
call fcn.004622a0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x47dc2d
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004214ff
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47dc61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004a4afb
add esp, 8
test eax, eax
jl 0x47daf5
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x47daf5
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x47dd66
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00423fbb
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x1c]
add esp, 4
push eax
call fcn.0047e0d0
add esp, 8
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00423472
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47dcee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x47dd42
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x47dd35
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47dd35
push eax
call fcn.00423fbb
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x47dd2d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x47dd42
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00423f4a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
push eax
push str.ResolveDosDrive:_DeviceFileName_s____DosDriveCache_s
push ecx
call fcn.004622a0
add esp, 0x10
call fcn.0047d990
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47dde4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47dde4
mov esi, dword [esi*4 + 0x4f3b24]
mov dword [ebp - 0x18], eax
lea eax, [esi - 0x10]
lea edi, [ebx - 0x10]
cmp eax, edi
je 0x47dde4
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x47ddd7
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x47ddd7
push eax
call fcn.00423fbb
add esp, 4
mov esi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x47ddcf
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0x10
mov dword [ebp - 0x14], esi
jmp 0x47dde4
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00423f4a
push 0x4f3ba8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x10], 0
je 0x47de67
cmp dword [ebp - 0x18], 4
je 0x47de67
mov esi, dword [ebp + 8]
push 0x4cc12c
mov ecx, esi
call fcn.0042342e
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47de2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47de53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00423fbb
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47de9b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47dec1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004964ca
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47deef
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov ecx, 0x4cc12c
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x47dfec
mov edx, ecx
movzx esi, dx
push esi
call fcn.0049e3ee
mov edi, eax
test edi, edi
je 0x47e006
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47e006
push esi
push eax
push edi
call fcn.004216e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47e006
mov eax, dword [ebx]
movzx edi, word [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x47df7b
push edi
mov ecx, ebx
call fcn.004214ff
movzx eax, word [esi]
mov edx, dword [ebx]
add esi, 2
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
jne 0x47df95
push esi
call fcn.004a4b1a
add esp, 4
inc eax
mov ecx, dword [ebp - 0x1c]
add eax, eax
push eax
push esi
lea ebx, [edi + edi]
push ebx
push ecx
call fcn.004a460f
add esp, 0x10
cmp eax, 0x50
ja case.0x47dfb5.1
movzx edx, byte [eax + 0x47e074]
jmp dword [edx*4 + 0x47e064]
call fcn.00496a32
call fcn.00496a6a
test edi, edi
jl 0x47daf5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp edi, dword [eax - 8]
jg 0x47daf5
mov dword [eax - 0xc], edi
mov eax, dword [ecx]
xor ecx, ecx
mov word [ebx + eax], cx
mov ebx, dword [ebp + 8]
jmp 0x47e006
push 0x4cc12c
call fcn.004a4b1a
add esp, 4
push eax
push 0x4cc12c
mov ecx, ebx
call fcn.00423f4a
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47e029
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e04f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret