Function at 0x46cc20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5fd9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
call fcn.0047dccb
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46cc6a
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.0047dccb
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46cc97
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
cmp dword [0x4d177c], edi
jne 0x46ccb7
call fcn.0046e2a0
test byte [0x4d1be4], 1
jne 0x46ce1e
or dword [0x4d1be4], 1
mov byte [ebp - 4], 3
call fcn.0047dccb
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46cce9
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x4d1be0], eax
mov ecx, str.DeviceLanmanRedirector_
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x46cdf0
mov edx, ecx
movzx esi, dx
push esi
call fcn.00485bef
mov ebx, eax
cmp ebx, edi
je 0x46ce0d
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x46ce0d
push esi
push eax
push ebx
call fcn.004206ac
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x46ce0d
mov edx, dword [0x4d1be0]
movzx ebx, word [esi]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x46cd7f
push ebx
mov ecx, 0x4d1be0
call fcn.004204f5
mov edx, dword [0x4d1be0]
movzx eax, word [esi]
add esi, 2
mov dword [ebp - 0x2c], edx
cmp eax, 0xffffffff
jne 0x46cd97
push esi
call fcn.0048c02b
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2c]
push edx
push esi
lea edi, [ebx + ebx]
push edi
push eax
call fcn.0048bd6a
add esp, 0x10
cmp eax, 0x50
ja case.0x46d344.1
movzx ecx, byte [eax + 0x46e0b8]
jmp dword [ecx*4 + 0x46e0a8]
call fcn.0047e233
test ebx, ebx
jl 0x46cde6
mov eax, dword [0x4d1be0]
cmp ebx, dword [eax - 8]
jg 0x46cde6
mov dword [eax - 0xc], ebx
mov eax, dword [0x4d1be0]
xor edx, edx
mov word [edi + eax], dx
jmp 0x46ce0d
push 0x80070057
call fcn.00420000
push str.DeviceLanmanRedirector_
call fcn.0048c02b
add esp, 4
push eax
push str.DeviceLanmanRedirector_
mov ecx, 0x4d1be0
call fcn.004214c7
push 0x4aa540
call fcn.0048cef5
add esp, 4
mov byte [ebp - 4], 2
test byte [0x4d1be4], 2
jne 0x46cf7f
or dword [0x4d1be4], 2
mov byte [ebp - 4], 5
call fcn.0047dccb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46ce50
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x4d1bdc], eax
mov ecx, str.DeviceMUP_
mov byte [ebp - 4], 6
test ecx, 0xffff0000
jne 0x46cf51
mov edx, ecx
movzx esi, dx
push esi
call fcn.00485bef
mov ebx, eax
test ebx, ebx
je 0x46cf6e
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46cf6e
push esi
push eax
push ebx
call fcn.004206ac
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46cf6e
mov edx, dword [0x4d1bdc]
movzx ebx, word [esi]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x46cee6
push ebx
mov ecx, 0x4d1bdc
call fcn.004204f5
mov edx, dword [0x4d1bdc]
movzx eax, word [esi]
add esi, 2
mov dword [ebp - 0x2c], edx
cmp eax, 0xffffffff
jne 0x46cefe
push esi
call fcn.0048c02b
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2c]
push edx
push esi
lea edi, [ebx + ebx]
push edi
push eax
call fcn.0048bd6a
add esp, 0x10
cmp eax, 0x50
ja case.0x46d344.1
movzx ecx, byte [eax + 0x46e11c]
jmp dword [ecx*4 + 0x46e10c]
call fcn.0047e26b
test ebx, ebx
jl 0x46cde6
mov eax, dword [0x4d1bdc]
cmp ebx, dword [eax - 8]
jg 0x46cde6
mov dword [eax - 0xc], ebx
mov eax, dword [0x4d1bdc]
xor edx, edx
mov word [edi + eax], dx
jmp 0x46cf6e
push str.DeviceMUP_
call fcn.0048c02b
add esp, 4
push eax
push str.DeviceMUP_
mov ecx, 0x4d1bdc
call fcn.004214c7
push 0x4aa510
call fcn.0048cef5
add esp, 4
mov byte [ebp - 4], 2
test byte [0x4d1be4], 4
jne 0x46d0df
or dword [0x4d1be4], 4
mov byte [ebp - 4], 7
call fcn.0047dccb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46cfb1
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x4d1bd8], eax
mov ecx, str.DeviceNetWareRedirector_
mov byte [ebp - 4], 8
test ecx, 0xffff0000
jne 0x46d0b1
mov edx, ecx
movzx esi, dx
push esi
call fcn.00485bef
mov ebx, eax
test ebx, ebx
je 0x46d0ce
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46d0ce
push esi
push eax
push ebx
call fcn.004206ac
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46d0ce
mov edx, dword [0x4d1bd8]
movzx ebx, word [esi]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x46d047
push ebx
mov ecx, 0x4d1bd8
call fcn.004204f5
mov edx, dword [0x4d1bd8]
movzx eax, word [esi]
add esi, 2
mov dword [ebp - 0x2c], edx
cmp eax, 0xffffffff
jne 0x46d05f
push esi
call fcn.0048c02b
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2c]
push edx
push esi
lea edi, [ebx + ebx]
push edi
push eax
call fcn.0048bd6a
add esp, 0x10
cmp eax, 0x50
ja case.0x46d344.1
movzx ecx, byte [eax + 0x46e180]
jmp dword [ecx*4 + 0x46e170]
test ebx, ebx
jl 0x46cde6
mov eax, dword [0x4d1bd8]
cmp ebx, dword [eax - 8]
jg 0x46cde6
mov dword [eax - 0xc], ebx
mov eax, dword [0x4d1bd8]
xor edx, edx
mov word [edi + eax], dx
jmp 0x46d0ce
push str.DeviceNetWareRedirector_
call fcn.0048c02b
add esp, 4
push eax
push str.DeviceNetWareRedirector_
mov ecx, 0x4d1bd8
call fcn.004214c7
push 0x4aa4e0
call fcn.0048cef5
add esp, 4
mov byte [ebp - 4], 2
test byte [0x4d1be4], 8
jne 0x46d23f
or dword [0x4d1be4], 8
mov byte [ebp - 4], 9
call fcn.0047dccb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46d111
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x4d1bd4], eax
mov ecx, str.DeviceWebDavRedirector_
mov byte [ebp - 4], 0xa
test ecx, 0xffff0000
jne 0x46d211
mov edx, ecx
movzx esi, dx
push esi
call fcn.00485bef
mov ebx, eax
test ebx, ebx
je 0x46d22e
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46d22e
push esi
push eax
push ebx
call fcn.004206ac
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46d22e
mov edx, dword [0x4d1bd4]
movzx ebx, word [esi]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x46d1a7
push ebx
mov ecx, 0x4d1bd4
call fcn.004204f5
mov edx, dword [0x4d1bd4]
movzx eax, word [esi]
add esi, 2
mov dword [ebp - 0x2c], edx
cmp eax, 0xffffffff
jne 0x46d1bf
push esi
call fcn.0048c02b
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2c]
push edx
push esi
lea edi, [ebx + ebx]
push edi
push eax
call fcn.0048bd6a
add esp, 0x10
cmp eax, 0x50
ja case.0x46d344.1
movzx ecx, byte [eax + 0x46e1e4]
jmp dword [ecx*4 + 0x46e1d4]
test ebx, ebx
jl 0x46cde6
mov eax, dword [0x4d1bd4]
cmp ebx, dword [eax - 8]
jg 0x46cde6
mov dword [eax - 0xc], ebx
mov eax, dword [0x4d1bd4]
xor edx, edx
mov word [edi + eax], dx
jmp 0x46d22e
push str.DeviceWebDavRedirector_
call fcn.0048c02b
add esp, 4
push eax
push str.DeviceWebDavRedirector_
mov ecx, 0x4d1bd4
call fcn.004214c7
push 0x4aa4b0
call fcn.0048cef5
add esp, 4
mov byte [ebp - 4], 2
test byte [0x4d1be4], 0x10
jne 0x46d39f
or dword [0x4d1be4], 0x10
mov byte [ebp - 4], 0xb
call fcn.0047dccb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46d271
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x4d1bd0], eax
mov ecx, str.DeviceWinDfs_
mov byte [ebp - 4], 0xc
test ecx, 0xffff0000
jne 0x46d371
mov edx, ecx
movzx esi, dx
push esi
call fcn.00485bef
mov ebx, eax
test ebx, ebx
je 0x46d38e
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46d38e
push esi
push eax
push ebx
call fcn.004206ac
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46d38e
mov edx, dword [0x4d1bd0]
movzx ebx, word [esi]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x46d307
push ebx
mov ecx, 0x4d1bd0
call fcn.004204f5
mov edx, dword [0x4d1bd0]
movzx eax, word [esi]
add esi, 2
mov dword [ebp - 0x2c], edx
cmp eax, 0xffffffff
jne 0x46d31f
push esi
call fcn.0048c02b
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2c]
push edx
push esi
lea edi, [ebx + ebx]
push edi
push eax
call fcn.0048bd6a
add esp, 0x10
cmp eax, 0x50
ja case.0x46d344.1
movzx ecx, byte [eax + 0x46e248]
jmp dword [ecx*4 + 0x46e238]
test ebx, ebx
jl 0x46cde6
mov eax, dword [0x4d1bd0]
cmp ebx, dword [eax - 8]
jg 0x46cde6
mov dword [eax - 0xc], ebx
mov eax, dword [0x4d1bd0]
xor edx, edx
mov word [edi + eax], dx
jmp 0x46d38e
push str.DeviceWinDfs_
call fcn.0048c02b
add esp, 4
push eax
push str.DeviceWinDfs_
mov ecx, 0x4d1bd0
call fcn.004214c7
push 0x4aa480
call fcn.0048cef5
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [0x4d1be0]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp + 0xc]
call fcn.00423bc8
mov ecx, dword [0x4d1be0]
mov eax, dword [eax]
push ecx
push eax
call fcn.0048c876
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x2c]
sete bl
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d3ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x46d580
mov ecx, dword [0x4d1be0]
push 0x4b92b4
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.0042d0fb
push 1
push 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xc]
call fcn.00422679
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push 0x4b0644
mov ebx, 1
push eax
mov dword [ebp - 0x28], ebx
call fcn.0048c708
add esp, 8
test eax, eax
sete al
test al, al
je 0x46d470
push ebx
push 4
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00422679
mov eax, dword [eax]
push 0x4b7874
push eax
mov ebx, 3
call fcn.0048c708
add esp, 8
test eax, eax
sete al
mov byte [ebp - 0xd], 1
test al, al
jne 0x46d474
mov byte [ebp - 0xd], 0
test bl, 2
je 0x46d49d
mov eax, dword [ebp - 0x2c]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x28], ebx
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d49d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 2
test bl, 1
je 0x46d4c7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d4c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x46d50d
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 5
jle 0x46d50d
add eax, 0xa
push 0x5c
push eax
call fcn.0048c73f
add esp, 8
test eax, eax
je 0x46d50d
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, edi
je 0x46d50d
push 0
lea ecx, [ebp + 0xc]
inc eax
push ecx
call fcn.00423ad1
push 0x4b92b4
lea edx, [ebp + 0xc]
push edx
xor eax, eax
call fcn.00429bc6
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00421538
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d546
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x46e085
mov ecx, dword [0x4d1bd0]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp + 0xc]
call fcn.00423bc8
mov ecx, dword [0x4d1bd0]
mov eax, dword [eax]
push ecx
push eax
call fcn.0048c876
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x2c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d5cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x46d6e6
mov ecx, dword [0x4d1bd0]
push 0x4b92b4
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.0042d0fb
push 1
push 3
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00422679
mov eax, dword [eax]
push 0x4b7874
push eax
call fcn.0048c708
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x2c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d62b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x46d66f
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 4
jle 0x46d66f
add eax, 8
push 0x5c
push eax
call fcn.0048c73f
add esp, 8
test eax, eax
je 0x46d66f
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, edi
je 0x46d66f
push 0
lea ecx, [ebp + 0xc]
inc eax
push ecx
call fcn.00423ad1
push 0x4b92b4
lea edx, [ebp + 0xc]
push edx
xor eax, eax
call fcn.00429bc6
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00421538
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d6a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x46e085
mov ecx, dword [0x4d1bdc]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp + 0xc]
call fcn.00423bc8
mov ecx, dword [0x4d1bdc]
mov eax, dword [eax]
push ecx
push eax
call fcn.0048c876
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x2c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x46d7c5
mov ecx, dword [0x4d1bdc]
push 0x4b92b4
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.0042d0fb
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00421538
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d787
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x46e085
mov ecx, dword [0x4d1bd8]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp + 0xc]
call fcn.00423bc8
mov ecx, dword [0x4d1bd8]
mov eax, dword [eax]
push ecx
push eax
call fcn.0048c876
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x2c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d810
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x46d8a4
mov ecx, dword [0x4d1bd8]
push 0x4b92b4
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.0042d0fb
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00421538
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d866
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x46e085
mov ecx, dword [0x4d1bd4]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp + 0xc]
call fcn.00423bc8
mov ecx, dword [0x4d1bd4]
mov eax, dword [eax]
push ecx
push eax
call fcn.0048c876
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x2c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d8ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x46d983
mov ecx, dword [0x4d1bd4]
push 0x4b92b4
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.0042d0fb
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00421538
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d945
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x46e085
push 0x4d1a74
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4d1a6c]
mov ebx, dword [ecx]
mov esi, dword [0x4d1a54]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov edi, dword [0x4d1a6c]
test esi, esi
je 0x46d9b4
cmp esi, dword [0x4d1a54]
je 0x46d9b9
call fcn.0048c1a2
cmp ebx, edi
je 0x46db11
test esi, esi
jne 0x46da2f
call fcn.0048c1a2
cmp ebx, dword [esi + 0x18]
jne 0x46d9d4
call fcn.0048c1a2
mov eax, dword [ebx + 0xc]
sub eax, 0x10
push eax
call fcn.00421538
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x28], edi
lea esi, [ebp - 0x28]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 0xe
call fcn.0046c570
test eax, eax
jne 0x46da33
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46da1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x38]
call fcn.0045c190
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
jmp 0x46d9a2
mov esi, dword [esi]
jmp 0x46d9ca
lea esi, [ebp - 0x38]
call fcn.0045b000
mov ecx, dword [eax]
mov esi, dword [ebp - 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46da8f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46da82
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46da82
push eax
call fcn.00421538
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x46da7a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
jmp 0x46da8f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004214c7
lea esi, [ebp - 0x38]
call fcn.0045b000
mov esi, dword [ebp - 0x18]
add eax, 4
mov eax, dword [eax]
lea ecx, [eax - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
je 0x46daee
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46dae1
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x46dae1
push ecx
call fcn.00421538
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x46dad9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x46daee
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004214c7
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46db11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4d1a74
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 0
jne 0x46dff7
mov eax, dword [0x4d1a70]
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, esp
mov dword [ebp - 0x30], esp
push eax
push ecx
push str.DeviceToDosName:__s_not_found_in_cache__d_._Querying_name.
push edx
call fcn.00453c70
add esp, 0x10
call fcn.0046c500
add esp, 4
call fcn.0047dccb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46db69
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call fcn.0047dccb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46db9c
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
xor edi, edi
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x2c], edi
lea ecx, [edi + 0x41]
push ecx
lea edx, [ebp - 0x20]
push 0x4be0fc
push edx
call fcn.00453c70
add esp, 0xc
mov bl, 0x11
push 0x4b04e0
mov byte [ebp - 4], bl
call fcn.0048c02b
add esp, 4
push eax
push 0x4b04e0
lea ecx, [ebp - 0x14]
call fcn.004214c7
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x46dc10
push 0x104
lea ecx, [ebp - 0x14]
call fcn.004204f5
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0048cad9
add esp, 8
test eax, eax
jl 0x46cde6
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x46cde6
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x46ddb5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
je 0x46ddb5
push eax
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push str._s___s_
push ecx
call fcn.00453c70
add esp, 0x10
mov byte [ebp - 4], 0x12
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00423cb2
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46dcb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4b04e0
lea ecx, [ebp - 0x24]
call fcn.00421197
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
lea ebx, [ebp - 0x24]
call fcn.00421538
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0047b990
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
test eax, eax
je 0x46dd69
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
push edx
push eax
push str.DeviceToDosName:_Resolved_symbolic_link__s___s
push ecx
call fcn.00453c70
add esp, 0x10
call fcn.0046c500
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
add esp, 4
cmp eax, esi
je 0x46dd83
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46dd5a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46dd5a
push eax
call fcn.00421538
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46dd4f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x2c]
jmp 0x46dd83
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004214c7
jmp 0x46dd83
mov edx, dword [ebp - 0x14]
push edx
push str.DeviceToDosName:__s_is_not_a_symbolic_link
push ecx
call fcn.00453c70
add esp, 0xc
call fcn.0046c500
add esp, 4
lea esi, [ebp - 0x14]
lea eax, [ebp + 0xc]
call fcn.0046c570
test eax, eax
jne 0x46ddea
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ddb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ddd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, 0x19
mov dword [ebp - 0x2c], edi
jle 0x46dbb4
jmp 0x46dee1
lea ebx, [ebp - 0x14]
call fcn.00437b30
mov ecx, dword [eax]
mov esi, dword [ebp - 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46de46
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x46de39
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46de39
push eax
call fcn.00421538
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x46de31
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x1c], edi
jmp 0x46de46
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004214c7
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x46de9b
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46de8e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46de8e
push eax
call fcn.00421538
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x46de86
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x46de9b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004214c7
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46debe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dee1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push edx
push str.QueryDosDevice:__s
push ecx
call fcn.00453c70
add esp, 0xc
call fcn.0046c500
mov eax, dword [ebp - 0x18]
add esp, 4
cmp dword [eax - 0xc], 0
je 0x46dfb1
push 0x4d1a74
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x1c]
push ecx
mov edi, 0x4d1a54
call fcn.0045a6a0
mov ebx, dword [ebp - 0x18]
mov edi, eax
mov esi, dword [edi]
lea eax, [ebx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x46df7f
cmp dword [esi + 0xc], 0
jl 0x46df73
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46df73
push eax
call fcn.00421538
mov dword [ebp - 0x2c], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46df69
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x46df7f
mov eax, dword [ebx - 0xc]
push eax
push ebx
mov ecx, edi
call fcn.004214c7
mov eax, dword [0x4d1a70]
push ecx
mov ecx, dword [ebp - 0x1c]
mov edx, esp
mov dword [ebp - 0x34], esp
push eax
push ebx
push ecx
push str.DeviceToDosName:_Adding_to_cache___s_s_._Cache_now_has__d_items.
push edx
call fcn.00453c70
add esp, 0x14
call fcn.0046c500
add esp, 4
push 0x4d1a74
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0xf
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 0x46dfd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dff7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x46e00e
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.0042d0fb
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00421538
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e048
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
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 0x46e06b
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 0x46e091
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