Function at 0x4972e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eee7b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x53d100]
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.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49732a
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.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497357
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 [0x542f98], edi
jne 0x497377
call fcn.004987e0
test byte [0x543870], 1
jne 0x497416
or dword [0x543870], 1
mov byte [ebp - 4], 3
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4973a9
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x54386c], eax
mov ecx, str.DeviceLanmanRedirector_
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x4973e8
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c463d
cmp eax, edi
je 0x497405
push esi
push eax
mov ecx, 0x54386c
call fcn.00424e82
jmp 0x497405
push str.DeviceLanmanRedirector_
call fcn.004cb5ea
add esp, 4
push eax
push str.DeviceLanmanRedirector_
mov ecx, 0x54386c
call fcn.004253ae
push 0x4f7640
call fcn.004cc1ac
add esp, 4
mov byte [ebp - 4], 2
test byte [0x543870], 2
jne 0x4974b5
or dword [0x543870], 2
mov byte [ebp - 4], 5
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497448
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x543868], eax
mov ecx, str.DeviceWinDfs_
mov byte [ebp - 4], 6
test ecx, 0xffff0000
jne 0x497487
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c463d
cmp eax, edi
je 0x4974a4
push esi
push eax
mov ecx, 0x543868
call fcn.00424e82
jmp 0x4974a4
push str.DeviceWinDfs_
call fcn.004cb5ea
add esp, 4
push eax
push str.DeviceWinDfs_
mov ecx, 0x543868
call fcn.004253ae
push 0x4f7610
call fcn.004cc1ac
add esp, 4
mov byte [ebp - 4], 2
test byte [0x543870], 4
mov ebx, 8
jne 0x497558
or dword [0x543870], 4
mov byte [ebp - 4], 7
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4974ec
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x543864], eax
mov ecx, str.DeviceMupDfsClient_
mov byte [ebp - 4], bl
test ecx, 0xffff0000
jne 0x49752a
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c463d
cmp eax, edi
je 0x497547
push esi
push eax
mov ecx, 0x543864
call fcn.00424e82
jmp 0x497547
push str.DeviceMupDfsClient_
call fcn.004cb5ea
add esp, 4
push eax
push str.DeviceMupDfsClient_
mov ecx, 0x543864
call fcn.004253ae
push 0x4f75e0
call fcn.004cc1ac
add esp, 4
mov byte [ebp - 4], 2
test byte [0x543870], bl
jne 0x4975f5
or dword [0x543870], ebx
mov byte [ebp - 4], 9
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497588
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x543860], eax
mov ecx, str.DeviceMUP_
mov byte [ebp - 4], 0xa
test ecx, 0xffff0000
jne 0x4975c7
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c463d
cmp eax, edi
je 0x4975e4
push esi
push eax
mov ecx, 0x543860
call fcn.00424e82
jmp 0x4975e4
push str.DeviceMUP_
call fcn.004cb5ea
add esp, 4
push eax
push str.DeviceMUP_
mov ecx, 0x543860
call fcn.004253ae
push 0x4f75b0
call fcn.004cc1ac
add esp, 4
mov byte [ebp - 4], 2
test byte [0x543870], 0x10
jne 0x497694
or dword [0x543870], 0x10
mov byte [ebp - 4], 0xb
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497627
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x54385c], eax
mov ecx, str.DeviceNetWareRedirector_
mov byte [ebp - 4], 0xc
test ecx, 0xffff0000
jne 0x497666
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c463d
cmp eax, edi
je 0x497683
push esi
push eax
mov ecx, 0x54385c
call fcn.00424e82
jmp 0x497683
push str.DeviceNetWareRedirector_
call fcn.004cb5ea
add esp, 4
push eax
push str.DeviceNetWareRedirector_
mov ecx, 0x54385c
call fcn.004253ae
push 0x4f7580
call fcn.004cc1ac
add esp, 4
mov byte [ebp - 4], 2
test byte [0x543870], 0x20
jne 0x497733
or dword [0x543870], 0x20
mov byte [ebp - 4], 0xd
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4976c6
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x543858], eax
mov ecx, str.DeviceWebDavRedirector_
mov byte [ebp - 4], 0xe
test ecx, 0xffff0000
jne 0x497705
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c463d
cmp eax, edi
je 0x497722
push esi
push eax
mov ecx, 0x543858
call fcn.00424e82
jmp 0x497722
push str.DeviceWebDavRedirector_
call fcn.004cb5ea
add esp, 4
push eax
push str.DeviceWebDavRedirector_
mov ecx, 0x543858
call fcn.004253ae
push 0x4f7550
call fcn.004cc1ac
add esp, 4
mov byte [ebp - 4], 2
mov eax, 0x40
test byte [0x543870], al
jne 0x4977d5
or dword [0x543870], eax
mov byte [ebp - 4], 0xf
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497768
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x543854], eax
mov ecx, str.DeviceCdmRedirector_
mov byte [ebp - 4], 0x10
test ecx, 0xffff0000
jne 0x4977a7
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c463d
cmp eax, edi
je 0x4977c4
push esi
push eax
mov ecx, 0x543854
call fcn.00424e82
jmp 0x4977c4
push str.DeviceCdmRedirector_
call fcn.004cb5ea
add esp, 4
push eax
push str.DeviceCdmRedirector_
mov ecx, 0x543854
call fcn.004253ae
push 0x4f7520
call fcn.004cc1ac
add esp, 4
mov byte [ebp - 4], 2
mov eax, 0x80
test byte [0x543870], al
jne 0x497877
or dword [0x543870], eax
mov byte [ebp - 4], 0x11
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49780a
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x543850], eax
mov ecx, str.DevicePicaDriveRedirector_
mov byte [ebp - 4], 0x12
test ecx, 0xffff0000
jne 0x497849
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c463d
cmp eax, edi
je 0x497866
push esi
push eax
mov ecx, 0x543850
call fcn.00424e82
jmp 0x497866
push str.DevicePicaDriveRedirector_
call fcn.004cb5ea
add esp, 4
push eax
push str.DevicePicaDriveRedirector_
mov ecx, 0x543850
call fcn.004253ae
push 0x4f74f0
call fcn.004cc1ac
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [0x54386c]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004249d9
mov edx, dword [0x54386c]
mov eax, dword [eax]
push edx
push eax
call fcn.004cb335
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 0x4978c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x497abe
push ecx
mov esi, esp
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x30], esi
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4978ed
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, 0x502a0c
mov byte [ebp - 4], 0x13
test ecx, 0xffff0000
jne 0x497926
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004c463d
cmp eax, edi
je 0x497940
push ebx
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x497940
push 0x502a0c
call fcn.004cb5ea
add esp, 4
push eax
push 0x502a0c
mov ecx, esi
call fcn.004253ae
mov byte [ebp - 4], 0x14
mov eax, dword [0x54386c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp + 0xc]
add esp, 4
push eax
mov byte [ebp - 4], 2
call fcn.0047c770
add esp, 0xc
push 1
push 2
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0042bb4b
mov byte [ebp - 4], 0x15
mov eax, dword [eax]
push 0x500024
mov ebx, 1
push eax
mov dword [ebp - 0x28], ebx
call fcn.004cb830
add esp, 8
cmp eax, edi
sete al
test al, al
je 0x4979d6
push ebx
push 4
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.0042bb4b
mov eax, dword [eax]
push 0x515d04
push eax
mov ebx, 3
call fcn.004cb830
add esp, 8
cmp eax, edi
sete al
mov byte [ebp - 0xd], 1
test al, al
jne 0x4979da
mov byte [ebp - 0xd], 0
test bl, 2
je 0x497a04
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 0x497a04
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 0x497a2f
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 0x497a2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x497a75
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 5
jle 0x497a75
add eax, 0xa
push 0x5c
push eax
call fcn.004cc4e8
add esp, 8
cmp eax, edi
je 0x497a75
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x497a75
push edi
lea ecx, [ebp + 0xc]
inc eax
push ecx
call fcn.00424881
push 0x502a0c
lea edx, [ebp + 0xc]
push edx
xor eax, eax
call fcn.004451b2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.0042541f
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 0x497aaf
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 0x4986cb
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497ad8
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, 0x50007c
mov byte [ebp - 4], 0x16
test ecx, 0xffff0000
jne 0x497b13
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c463d
test eax, eax
je 0x497b31
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00424e82
jmp 0x497b2e
push 0x50007c
call fcn.004cb5ea
add esp, 4
push eax
push 0x50007c
lea ecx, [ebp - 0x1c]
call fcn.004253ae
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x17
mov eax, dword [0x543868]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004249d9
mov edx, dword [0x543868]
mov eax, dword [eax]
push edx
push eax
call fcn.004cb335
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 0x497b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x497bdb
mov ecx, dword [0x543868]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x497c87
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x497c77
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x497c77
push eax
call fcn.0042541f
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x497bd0
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 0x497c84
mov ecx, dword [0x543864]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d9
mov ecx, dword [0x543864]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cb335
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 0x497c27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x497c87
mov ecx, dword [0x543864]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x497c87
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x497c77
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x497c77
push eax
call fcn.0042541f
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x497bd0
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 0x497c84
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004253ae
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x497e1a
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x502a0c
call fcn.004247ea
push ecx
mov byte [ebp - 4], 0x18
lea esi, [edi - 0x10]
mov dword [ebp - 0x30], esp
mov ebx, esp
push esi
call fcn.0042541f
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047c770
add esp, 0xc
push 1
push 3
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.0042bb4b
mov eax, dword [eax]
push 0x515d04
push eax
call fcn.004cb830
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 0x497d11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x497e1a
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 4
jle 0x497e1a
add eax, 8
push 0x5c
push eax
call fcn.004cc4e8
add esp, 8
test eax, eax
je 0x497e1a
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x497e1a
push 0
lea ecx, [ebp + 0xc]
inc eax
push ecx
call fcn.00424881
push 0x502a0c
lea edx, [ebp + 0xc]
push edx
xor eax, eax
call fcn.004451b2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.0042541f
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 0x497d9a
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 0x497dbd
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 0x497de0
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 0x497e06
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 [0x543860]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d9
mov ecx, dword [0x543860]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cb335
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 0x497e66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x497eee
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x502a0c
call fcn.004247ea
mov byte [ebp - 4], 0x19
mov eax, dword [0x543860]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047c770
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.0042541f
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 0x497a8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x497a8c
mov ecx, dword [0x54385c]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d9
mov ecx, dword [0x54385c]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cb335
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 0x497f3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x497fc2
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x502a0c
call fcn.004247ea
mov byte [ebp - 4], 0x1a
mov eax, dword [0x54385c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047c770
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.0042541f
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 0x497a8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x497a8c
mov ecx, dword [0x543858]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d9
mov ecx, dword [0x543858]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cb335
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 0x49800e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x498096
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x502a0c
call fcn.004247ea
mov byte [ebp - 4], 0x1b
mov eax, dword [0x543858]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047c770
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.0042541f
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 0x497a8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x497a8c
mov ecx, dword [0x543854]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.004249d9
mov ecx, dword [0x543854]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cb335
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 0x4980e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49818d
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x502a0c
call fcn.004247ea
mov byte [ebp - 4], 0x1c
mov eax, dword [0x543854]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047c770
add esp, 8
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x51766c
call fcn.004247ea
push ecx
mov byte [ebp - 4], 0x1d
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x515d04
call fcn.004247ea
lea edx, [ebp + 0xc]
push edx
mov byte [ebp - 4], 0x17
call fcn.0047c770
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.0042541f
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 0x497ed9
push 0x543478
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x543470]
mov ebx, dword [ecx]
mov esi, dword [0x543458]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esi
lea esp, [esp]
mov edi, dword [0x543470]
test esi, esi
je 0x4981c2
cmp esi, dword [0x543458]
je 0x4981c7
call fcn.004cb761
cmp ebx, edi
je 0x498283
test esi, esi
jne 0x49823d
call fcn.004cb761
cmp ebx, dword [esi + 0x18]
jne 0x4981e2
call fcn.004cb761
mov eax, dword [ebx + 0xc]
sub eax, 0x10
push eax
call fcn.0042541f
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.00496e00
test eax, eax
jne 0x498241
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 0x49822a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x3c]
call fcn.00432ebd
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
jmp 0x4981b0
mov esi, dword [esi]
jmp 0x4981d8
lea esi, [ebp - 0x3c]
call fcn.00432bcb
push eax
lea ecx, [ebp - 0x20]
call fcn.00424f10
call fcn.00432bcb
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00424f10
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 0x498283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x543478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 0
jne 0x49861d
mov eax, dword [0x543474]
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.00478210
add esp, 0x10
call fcn.00496d90
add esp, 4
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4982db
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.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49830e
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 0x522d30
push edx
call fcn.00478210
add esp, 0xc
mov bl, 0x21
push 0x50007c
mov byte [ebp - 4], bl
call fcn.004cb5ea
add esp, 4
push eax
push 0x50007c
lea ecx, [ebp - 0x14]
call fcn.004253ae
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 0x498382
push 0x104
lea ecx, [ebp - 0x14]
call fcn.004224f5
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.004cb5cb
add esp, 8
test eax, eax
jl 0x4987d5
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x4987d5
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x49852b
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
je 0x49852b
push eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
push str._s___s_
push ecx
call fcn.00478210
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.00425b30
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 0x498423
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x50007c
lea ecx, [ebp - 0x28]
call fcn.004247ea
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.0042541f
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004ad970
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
test eax, eax
je 0x4984db
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.00478210
add esp, 0x10
call fcn.00496d90
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
add esp, 4
cmp eax, esi
je 0x4984f5
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4984cc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4984cc
push eax
call fcn.0042541f
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4984c1
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 0x4984f5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004253ae
jmp 0x4984f5
mov edx, dword [ebp - 0x14]
push edx
push str.DeviceToDosName:__s_is_not_a_symbolic_link
push ecx
call fcn.00478210
add esp, 0xc
call fcn.00496d90
add esp, 4
lea esi, [ebp - 0x14]
lea eax, [ebp + 0xc]
call fcn.00496e00
test eax, eax
jne 0x49871e
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 0x49852b
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 0x49854e
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 0x498326
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.00478210
add esp, 0xc
call fcn.00496d90
mov edi, dword [ebp - 0x18]
add esp, 4
cmp dword [edi - 0xc], 0
je 0x4985da
push 0x543478
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x20]
push edx
push 0x543458
call fcn.00432906
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00424f10
mov eax, dword [0x543474]
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.00478210
add esp, 0x14
call fcn.00496d90
add esp, 4
push 0x543478
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 0x4985fd
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 0x49861d
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 0x498667
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x38], esp
mov esi, esp
push eax
call fcn.0042541f
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.0042541f
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047c770
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.0042541f
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 0x4986a1
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 0x4986c4
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 0x4986e4
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 0x49870a
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.0042c545
push eax
lea ecx, [ebp - 0x20]
call fcn.00424f10
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x498786
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x498779
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x498779
push eax
call fcn.0042541f
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x498771
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 0x498786
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004253ae
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 0x4987a9
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 0x49855b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49855b
push 0x80070057
call fcn.00422000
int3