Function at 0x497750
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef64b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x53f100]
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.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49779a
push 0x80004005
call fcn.00422000
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.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4977c7
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
cmp dword [0x544f9c], edi
jne 0x4977e7
call fcn.00498c50
test byte [0x545880], 1
jne 0x497886
or dword [0x545880], 1
mov byte [ebp - 4], 3
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497819
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x54587c], eax
mov ecx, str.DeviceLanmanRedirector_
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x497858
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
cmp eax, edi
je 0x497875
push esi
push eax
mov ecx, 0x54587c
call fcn.00424e60
jmp 0x497875
push str.DeviceLanmanRedirector_
call fcn.004cbe7a
add esp, 4
push eax
push str.DeviceLanmanRedirector_
mov ecx, 0x54587c
call fcn.004253b1
push 0x4f7f10
call fcn.004cca3c
add esp, 4
mov byte [ebp - 4], 2
test byte [0x545880], 2
jne 0x497925
or dword [0x545880], 2
mov byte [ebp - 4], 5
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4978b8
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x545878], eax
mov ecx, str.DeviceWinDfs_
mov byte [ebp - 4], 6
test ecx, 0xffff0000
jne 0x4978f7
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
cmp eax, edi
je 0x497914
push esi
push eax
mov ecx, 0x545878
call fcn.00424e60
jmp 0x497914
push str.DeviceWinDfs_
call fcn.004cbe7a
add esp, 4
push eax
push str.DeviceWinDfs_
mov ecx, 0x545878
call fcn.004253b1
push 0x4f7ee0
call fcn.004cca3c
add esp, 4
mov byte [ebp - 4], 2
test byte [0x545880], 4
mov ebx, 8
jne 0x4979c8
or dword [0x545880], 4
mov byte [ebp - 4], 7
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49795c
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x545874], eax
mov ecx, str.DeviceMupDfsClient_
mov byte [ebp - 4], bl
test ecx, 0xffff0000
jne 0x49799a
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
cmp eax, edi
je 0x4979b7
push esi
push eax
mov ecx, 0x545874
call fcn.00424e60
jmp 0x4979b7
push str.DeviceMupDfsClient_
call fcn.004cbe7a
add esp, 4
push eax
push str.DeviceMupDfsClient_
mov ecx, 0x545874
call fcn.004253b1
push 0x4f7eb0
call fcn.004cca3c
add esp, 4
mov byte [ebp - 4], 2
test byte [0x545880], bl
jne 0x497a65
or dword [0x545880], ebx
mov byte [ebp - 4], 9
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4979f8
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x545870], eax
mov ecx, str.DeviceMUP_
mov byte [ebp - 4], 0xa
test ecx, 0xffff0000
jne 0x497a37
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
cmp eax, edi
je 0x497a54
push esi
push eax
mov ecx, 0x545870
call fcn.00424e60
jmp 0x497a54
push str.DeviceMUP_
call fcn.004cbe7a
add esp, 4
push eax
push str.DeviceMUP_
mov ecx, 0x545870
call fcn.004253b1
push 0x4f7e80
call fcn.004cca3c
add esp, 4
mov byte [ebp - 4], 2
test byte [0x545880], 0x10
jne 0x497b04
or dword [0x545880], 0x10
mov byte [ebp - 4], 0xb
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497a97
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x54586c], eax
mov ecx, str.DeviceNetWareRedirector_
mov byte [ebp - 4], 0xc
test ecx, 0xffff0000
jne 0x497ad6
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
cmp eax, edi
je 0x497af3
push esi
push eax
mov ecx, 0x54586c
call fcn.00424e60
jmp 0x497af3
push str.DeviceNetWareRedirector_
call fcn.004cbe7a
add esp, 4
push eax
push str.DeviceNetWareRedirector_
mov ecx, 0x54586c
call fcn.004253b1
push 0x4f7e50
call fcn.004cca3c
add esp, 4
mov byte [ebp - 4], 2
test byte [0x545880], 0x20
jne 0x497ba3
or dword [0x545880], 0x20
mov byte [ebp - 4], 0xd
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497b36
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x545868], eax
mov ecx, str.DeviceWebDavRedirector_
mov byte [ebp - 4], 0xe
test ecx, 0xffff0000
jne 0x497b75
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
cmp eax, edi
je 0x497b92
push esi
push eax
mov ecx, 0x545868
call fcn.00424e60
jmp 0x497b92
push str.DeviceWebDavRedirector_
call fcn.004cbe7a
add esp, 4
push eax
push str.DeviceWebDavRedirector_
mov ecx, 0x545868
call fcn.004253b1
push 0x4f7e20
call fcn.004cca3c
add esp, 4
mov byte [ebp - 4], 2
mov eax, 0x40
test byte [0x545880], al
jne 0x497c45
or dword [0x545880], eax
mov byte [ebp - 4], 0xf
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497bd8
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x545864], eax
mov ecx, str.DeviceCdmRedirector_
mov byte [ebp - 4], 0x10
test ecx, 0xffff0000
jne 0x497c17
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
cmp eax, edi
je 0x497c34
push esi
push eax
mov ecx, 0x545864
call fcn.00424e60
jmp 0x497c34
push str.DeviceCdmRedirector_
call fcn.004cbe7a
add esp, 4
push eax
push str.DeviceCdmRedirector_
mov ecx, 0x545864
call fcn.004253b1
push 0x4f7df0
call fcn.004cca3c
add esp, 4
mov byte [ebp - 4], 2
mov eax, 0x80
test byte [0x545880], al
jne 0x497ce7
or dword [0x545880], eax
mov byte [ebp - 4], 0x11
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497c7a
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x545860], eax
mov ecx, str.DevicePicaDriveRedirector_
mov byte [ebp - 4], 0x12
test ecx, 0xffff0000
jne 0x497cb9
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
cmp eax, edi
je 0x497cd6
push esi
push eax
mov ecx, 0x545860
call fcn.00424e60
jmp 0x497cd6
push str.DevicePicaDriveRedirector_
call fcn.004cbe7a
add esp, 4
push eax
push str.DevicePicaDriveRedirector_
mov ecx, 0x545860
call fcn.004253b1
push 0x4f7dc0
call fcn.004cca3c
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [0x54587c]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004249d8
mov edx, dword [0x54587c]
mov eax, dword [eax]
push edx
push eax
call fcn.004cbbc8
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497d32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x497f2e
push ecx
mov esi, esp
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x30], esi
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497d5d
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x503a24
mov byte [ebp - 4], 0x13
test ecx, 0xffff0000
jne 0x497d96
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004c4eeb
cmp eax, edi
je 0x497db0
push ebx
push eax
mov ecx, esi
call fcn.00424e60
jmp 0x497db0
push 0x503a24
call fcn.004cbe7a
add esp, 4
push eax
push 0x503a24
mov ecx, esi
call fcn.004253b1
mov byte [ebp - 4], 0x14
mov eax, dword [0x54587c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp + 0xc]
add esp, 4
push eax
mov byte [ebp - 4], 2
call fcn.0047cb70
add esp, 0xc
push 1
push 2
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0042bb60
mov byte [ebp - 4], 0x15
mov eax, dword [eax]
push 0x501024
mov ebx, 1
push eax
mov dword [ebp - 0x28], ebx
call fcn.004cc0c0
add esp, 8
cmp eax, edi
sete al
test al, al
je 0x497e46
push ebx
push 4
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.0042bb60
mov eax, dword [eax]
push 0x516e3c
push eax
mov ebx, 3
call fcn.004cc0c0
add esp, 8
cmp eax, edi
sete al
mov byte [ebp - 0xd], 1
test al, al
jne 0x497e4a
mov byte [ebp - 0xd], 0
test bl, 2
je 0x497e74
mov eax, dword [ebp - 0x30]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x28], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497e74
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 0x497e9f
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497e9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x497ee5
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 5
jle 0x497ee5
add eax, 0xa
push 0x5c
push eax
call fcn.004ccd78
add esp, 8
cmp eax, edi
je 0x497ee5
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x497ee5
push edi
lea ecx, [ebp + 0xc]
inc eax
push ecx
call fcn.00424880
push 0x503a24
lea edx, [ebp + 0xc]
push edx
xor eax, eax
call fcn.004452d7
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00425422
mov esi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
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 0x497f1f
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
jmp 0x498b3b
call fcn.004bcd4c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497f48
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov ecx, 0x50107c
mov byte [ebp - 4], 0x16
test ecx, 0xffff0000
jne 0x497f83
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c4eeb
test eax, eax
je 0x497fa1
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00424e60
jmp 0x497f9e
push 0x50107c
call fcn.004cbe7a
add esp, 4
push eax
push 0x50107c
lea ecx, [ebp - 0x1c]
call fcn.004253b1
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x17
mov eax, dword [0x545878]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004249d8
mov edx, dword [0x545878]
mov eax, dword [eax]
push edx
push eax
call fcn.004cbbc8
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497ff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49804b
mov ecx, dword [0x545878]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4980f7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4980e7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4980e7
push eax
call fcn.00425422
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x498040
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 0x4980f4
mov ecx, dword [0x545874]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d8
mov ecx, dword [0x545874]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cbbc8
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x498097
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4980f7
mov ecx, dword [0x545874]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4980f7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4980e7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4980e7
push eax
call fcn.00425422
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x498040
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 0x4980f4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004253b1
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x49828a
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x503a24
call fcn.004247e9
push ecx
mov byte [ebp - 4], 0x18
lea esi, [edi - 0x10]
mov dword [ebp - 0x30], esp
mov ebx, esp
push esi
call fcn.00425422
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047cb70
add esp, 0xc
push 1
push 3
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.0042bb60
mov eax, dword [eax]
push 0x516e3c
push eax
call fcn.004cc0c0
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498181
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49828a
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 4
jle 0x49828a
add eax, 8
push 0x5c
push eax
call fcn.004ccd78
add esp, 8
test eax, eax
je 0x49828a
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x49828a
push 0
lea ecx, [ebp + 0xc]
inc eax
push ecx
call fcn.00424880
push 0x503a24
lea edx, [ebp + 0xc]
push edx
xor eax, eax
call fcn.004452d7
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00425422
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49820a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 1
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 0x49822d
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 0x498250
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 0x498276
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
mov ecx, dword [0x545870]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d8
mov ecx, dword [0x545870]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cbbc8
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4982d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49835e
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x503a24
call fcn.004247e9
mov byte [ebp - 4], 0x19
mov eax, dword [0x545870]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047cb70
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00425422
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x497efc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x497efc
mov ecx, dword [0x54586c]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d8
mov ecx, dword [0x54586c]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cbbc8
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4983aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x498432
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x503a24
call fcn.004247e9
mov byte [ebp - 4], 0x1a
mov eax, dword [0x54586c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047cb70
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00425422
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x497efc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x497efc
mov ecx, dword [0x545868]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d8
mov ecx, dword [0x545868]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cbbc8
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49847e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x498506
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x503a24
call fcn.004247e9
mov byte [ebp - 4], 0x1b
mov eax, dword [0x545868]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047cb70
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00425422
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x497efc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x497efc
mov ecx, dword [0x545864]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d8
mov ecx, dword [0x545864]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cbbc8
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x498552
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4985fd
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x503a24
call fcn.004247e9
mov byte [ebp - 4], 0x1c
mov eax, dword [0x545864]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047cb70
add esp, 8
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5187a4
call fcn.004247e9
push ecx
mov byte [ebp - 4], 0x1d
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x516e3c
call fcn.004247e9
lea edx, [ebp + 0xc]
push edx
mov byte [ebp - 4], 0x17
call fcn.0047cb70
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00425422
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x498349
push 0x545484
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x54547c]
mov ebx, dword [ecx]
mov esi, dword [0x545464]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esi
lea esp, [esp]
mov edi, dword [0x54547c]
test esi, esi
je 0x498632
cmp esi, dword [0x545464]
je 0x498637
call fcn.004cbff1
cmp ebx, edi
je 0x4986f3
test esi, esi
jne 0x4986ad
call fcn.004cbff1
cmp ebx, dword [esi + 0x18]
jne 0x498652
call fcn.004cbff1
mov eax, dword [ebx + 0xc]
sub eax, 0x10
push eax
call fcn.00425422
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x30], ebx
lea esi, [ebp - 0x30]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 0x1e
call fcn.00497270
test eax, eax
jne 0x4986b1
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0x17
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49869a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x3c]
call fcn.0042ee26
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
jmp 0x498620
mov esi, dword [esi]
jmp 0x498648
lea esi, [ebp - 0x3c]
call fcn.0042babd
push eax
lea ecx, [ebp - 0x20]
call fcn.00424eee
call fcn.0042babd
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00424eee
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0x17
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4986f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x545484
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 0
jne 0x498a8d
mov eax, dword [0x545480]
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, esp
mov dword [ebp - 0x34], esp
push eax
push ecx
push str.DeviceToDosName:__s_not_found_in_cache__d_._Querying_name.
push edx
call fcn.00478610
add esp, 0x10
call fcn.00497200
add esp, 4
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49874b
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x1f
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49877e
push 0x80004005
call fcn.00422000
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], 0x20
mov dword [ebp - 0x2c], edi
lea ecx, [edi + 0x41]
push ecx
lea edx, [ebp - 0x24]
push 0x5240d8
push edx
call fcn.00478610
add esp, 0xc
mov bl, 0x21
push 0x50107c
mov byte [ebp - 4], bl
call fcn.004cbe7a
add esp, 4
push eax
push 0x50107c
lea ecx, [ebp - 0x14]
call fcn.004253b1
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 0x4987f2
push 0x104
lea ecx, [ebp - 0x14]
call fcn.004224ff
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
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.004cbe5b
add esp, 8
test eax, eax
jl 0x498c45
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x498c45
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x49899b
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
je 0x49899b
push eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
push str._s___s_
push ecx
call fcn.00478610
add esp, 0x10
mov byte [ebp - 4], 0x22
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00425b52
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x498893
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x50107c
lea ecx, [ebp - 0x28]
call fcn.004247e9
mov byte [ebp - 4], 0x23
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x38], esp
mov esi, esp
push eax
lea ebx, [ebp - 0x28]
call fcn.00425422
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004ae040
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
test eax, eax
je 0x49894b
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
push edx
push eax
push str.DeviceToDosName:_Resolved_symbolic_link__s___s
push ecx
call fcn.00478610
add esp, 0x10
call fcn.00497200
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
add esp, 4
cmp eax, esi
je 0x498965
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x49893c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49893c
push eax
call fcn.00425422
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x498931
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 0x498965
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004253b1
jmp 0x498965
mov edx, dword [ebp - 0x14]
push edx
push str.DeviceToDosName:__s_is_not_a_symbolic_link
push ecx
call fcn.00478610
add esp, 0xc
call fcn.00497200
add esp, 4
lea esi, [ebp - 0x14]
lea eax, [ebp + 0xc]
call fcn.00497270
test eax, eax
jne 0x498b8e
mov byte [ebp - 4], 0x21
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 0x49899b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x20
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4989be
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 0x498796
mov esi, dword [ebp - 0x30]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push esi
push str.QueryDosDevice:__s
push ecx
call fcn.00478610
add esp, 0xc
call fcn.00497200
mov edi, dword [ebp - 0x18]
add esp, 4
cmp dword [edi - 0xc], 0
je 0x498a4a
push 0x545484
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x20]
push edx
push 0x545464
call fcn.00432b2e
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00424eee
mov eax, dword [0x545480]
push ecx
mov ecx, dword [ebp - 0x20]
mov edx, esp
mov dword [ebp - 0x38], esp
push eax
push edi
push ecx
push str.DeviceToDosName:_Adding_to_cache___s_s_._Cache_now_has__d_items.
push edx
call fcn.00478610
add esp, 0x14
call fcn.00497200
add esp, 4
push 0x545484
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x1f
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 0x498a6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0x17
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498a8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
je 0x498ad7
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x38], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x24
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047cb70
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00425422
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x498b11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
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 0x498b34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498b54
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
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498b7a
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
push 0x5c
lea edi, [ebp - 0x14]
call fcn.0042c77d
push eax
lea ecx, [ebp - 0x20]
call fcn.00424eee
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x498bf6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x498be9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x498be9
push eax
call fcn.00425422
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x498be1
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 0x498bf6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004253b1
mov byte [ebp - 4], 0x21
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 0x498c19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x20
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 0x4989cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4989cb
push 0x80070057
call fcn.00422000
int3