Function at 0x497990
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f061b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x541100]
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.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4979da
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.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497a07
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 - 0x20], eax
mov byte [ebp - 4], 2
cmp dword [0x546f9c], edi
jne 0x497a27
call fcn.00498e90
test byte [0x547890], 1
jne 0x497ac6
or dword [0x547890], 1
mov byte [ebp - 4], 3
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497a59
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x54788c], eax
mov ecx, str.DeviceLanmanRedirector_
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x497a98
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
cmp eax, edi
je 0x497ab5
push esi
push eax
mov ecx, 0x54788c
call fcn.00422eb3
jmp 0x497ab5
push str.DeviceLanmanRedirector_
call fcn.004ccd1a
add esp, 4
push eax
push str.DeviceLanmanRedirector_
mov ecx, 0x54788c
call fcn.00423404
push 0x4f9240
call fcn.004cd8dc
add esp, 4
mov byte [ebp - 4], 2
test byte [0x547890], 2
jne 0x497b65
or dword [0x547890], 2
mov byte [ebp - 4], 5
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497af8
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x547888], eax
mov ecx, str.DeviceWinDfs_
mov byte [ebp - 4], 6
test ecx, 0xffff0000
jne 0x497b37
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
cmp eax, edi
je 0x497b54
push esi
push eax
mov ecx, 0x547888
call fcn.00422eb3
jmp 0x497b54
push str.DeviceWinDfs_
call fcn.004ccd1a
add esp, 4
push eax
push str.DeviceWinDfs_
mov ecx, 0x547888
call fcn.00423404
push 0x4f9210
call fcn.004cd8dc
add esp, 4
mov byte [ebp - 4], 2
test byte [0x547890], 4
mov ebx, 8
jne 0x497c08
or dword [0x547890], 4
mov byte [ebp - 4], 7
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497b9c
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x547884], eax
mov ecx, str.DeviceMupDfsClient_
mov byte [ebp - 4], bl
test ecx, 0xffff0000
jne 0x497bda
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
cmp eax, edi
je 0x497bf7
push esi
push eax
mov ecx, 0x547884
call fcn.00422eb3
jmp 0x497bf7
push str.DeviceMupDfsClient_
call fcn.004ccd1a
add esp, 4
push eax
push str.DeviceMupDfsClient_
mov ecx, 0x547884
call fcn.00423404
push 0x4f91e0
call fcn.004cd8dc
add esp, 4
mov byte [ebp - 4], 2
test byte [0x547890], bl
jne 0x497ca5
or dword [0x547890], ebx
mov byte [ebp - 4], 9
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497c38
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x547880], eax
mov ecx, str.DeviceMUP_
mov byte [ebp - 4], 0xa
test ecx, 0xffff0000
jne 0x497c77
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
cmp eax, edi
je 0x497c94
push esi
push eax
mov ecx, 0x547880
call fcn.00422eb3
jmp 0x497c94
push str.DeviceMUP_
call fcn.004ccd1a
add esp, 4
push eax
push str.DeviceMUP_
mov ecx, 0x547880
call fcn.00423404
push 0x4f91b0
call fcn.004cd8dc
add esp, 4
mov byte [ebp - 4], 2
test byte [0x547890], 0x10
jne 0x497d44
or dword [0x547890], 0x10
mov byte [ebp - 4], 0xb
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497cd7
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x54787c], eax
mov ecx, str.DeviceNetWareRedirector_
mov byte [ebp - 4], 0xc
test ecx, 0xffff0000
jne 0x497d16
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
cmp eax, edi
je 0x497d33
push esi
push eax
mov ecx, 0x54787c
call fcn.00422eb3
jmp 0x497d33
push str.DeviceNetWareRedirector_
call fcn.004ccd1a
add esp, 4
push eax
push str.DeviceNetWareRedirector_
mov ecx, 0x54787c
call fcn.00423404
push 0x4f9180
call fcn.004cd8dc
add esp, 4
mov byte [ebp - 4], 2
test byte [0x547890], 0x20
jne 0x497de3
or dword [0x547890], 0x20
mov byte [ebp - 4], 0xd
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497d76
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x547878], eax
mov ecx, str.DeviceWebDavRedirector_
mov byte [ebp - 4], 0xe
test ecx, 0xffff0000
jne 0x497db5
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
cmp eax, edi
je 0x497dd2
push esi
push eax
mov ecx, 0x547878
call fcn.00422eb3
jmp 0x497dd2
push str.DeviceWebDavRedirector_
call fcn.004ccd1a
add esp, 4
push eax
push str.DeviceWebDavRedirector_
mov ecx, 0x547878
call fcn.00423404
push 0x4f9150
call fcn.004cd8dc
add esp, 4
mov byte [ebp - 4], 2
mov eax, 0x40
test byte [0x547890], al
jne 0x497e85
or dword [0x547890], eax
mov byte [ebp - 4], 0xf
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497e18
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x547874], eax
mov ecx, str.DeviceCdmRedirector_
mov byte [ebp - 4], 0x10
test ecx, 0xffff0000
jne 0x497e57
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
cmp eax, edi
je 0x497e74
push esi
push eax
mov ecx, 0x547874
call fcn.00422eb3
jmp 0x497e74
push str.DeviceCdmRedirector_
call fcn.004ccd1a
add esp, 4
push eax
push str.DeviceCdmRedirector_
mov ecx, 0x547874
call fcn.00423404
push 0x4f9120
call fcn.004cd8dc
add esp, 4
mov byte [ebp - 4], 2
mov eax, 0x80
test byte [0x547890], al
jne 0x497f27
or dword [0x547890], eax
mov byte [ebp - 4], 0x11
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497eba
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x547870], eax
mov ecx, str.DevicePicaDriveRedirector_
mov byte [ebp - 4], 0x12
test ecx, 0xffff0000
jne 0x497ef9
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
cmp eax, edi
je 0x497f16
push esi
push eax
mov ecx, 0x547870
call fcn.00422eb3
jmp 0x497f16
push str.DevicePicaDriveRedirector_
call fcn.004ccd1a
add esp, 4
push eax
push str.DevicePicaDriveRedirector_
mov ecx, 0x547870
call fcn.00423404
push 0x4f90f0
call fcn.004cd8dc
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [0x54788c]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00422a16
mov edx, dword [0x54788c]
mov eax, dword [eax]
push edx
push eax
call fcn.004cca64
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 0x497f72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49816e
push ecx
mov esi, esp
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x30], esi
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x497f9d
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x504acc
mov byte [ebp - 4], 0x13
test ecx, 0xffff0000
jne 0x497fd6
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004c5d7f
cmp eax, edi
je 0x497ff0
push ebx
push eax
mov ecx, esi
call fcn.00422eb3
jmp 0x497ff0
push 0x504acc
call fcn.004ccd1a
add esp, 4
push eax
push 0x504acc
mov ecx, esi
call fcn.00423404
mov byte [ebp - 4], 0x14
mov eax, dword [0x54788c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp + 0xc]
add esp, 4
push eax
mov byte [ebp - 4], 2
call fcn.0047bd40
add esp, 0xc
push 1
push 2
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00429e22
mov byte [ebp - 4], 0x15
mov eax, dword [eax]
push 0x502014
mov ebx, 1
push eax
mov dword [ebp - 0x28], ebx
call fcn.004ccf60
add esp, 8
cmp eax, edi
sete al
test al, al
je 0x498086
push ebx
push 4
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.00429e22
mov eax, dword [eax]
push 0x51830c
push eax
mov ebx, 3
call fcn.004ccf60
add esp, 8
cmp eax, edi
sete al
mov byte [ebp - 0xd], 1
test al, al
jne 0x49808a
mov byte [ebp - 0xd], 0
test bl, 2
je 0x4980b4
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 0x4980b4
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 0x4980df
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 0x4980df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x498125
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 5
jle 0x498125
add eax, 0xa
push 0x5c
push eax
call fcn.004cdc18
add esp, 8
cmp eax, edi
je 0x498125
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x498125
push edi
lea ecx, [ebp + 0xc]
inc eax
push ecx
call fcn.004228be
push 0x504acc
lea edx, [ebp + 0xc]
push edx
xor eax, eax
call fcn.00443e8e
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00423475
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 0x49815f
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 0x498d7b
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x498188
push 0x80004005
call fcn.00420000
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, 0x50206c
mov byte [ebp - 4], 0x16
test ecx, 0xffff0000
jne 0x4981c3
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
test eax, eax
je 0x4981e1
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00422eb3
jmp 0x4981de
push 0x50206c
call fcn.004ccd1a
add esp, 4
push eax
push 0x50206c
lea ecx, [ebp - 0x1c]
call fcn.00423404
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x17
mov eax, dword [0x547888]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00422a16
mov edx, dword [0x547888]
mov eax, dword [eax]
push edx
push eax
call fcn.004cca64
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 0x498230
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49828b
mov ecx, dword [0x547888]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x498337
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x498327
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x498327
push eax
call fcn.00423475
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x498280
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 0x498334
mov ecx, dword [0x547884]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.00422a16
mov ecx, dword [0x547884]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cca64
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 0x4982d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x498337
mov ecx, dword [0x547884]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x498337
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x498327
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x498327
push eax
call fcn.00423475
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x498280
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 0x498334
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00423404
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x4984ca
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x504acc
call fcn.00422827
push ecx
mov byte [ebp - 4], 0x18
lea esi, [edi - 0x10]
mov dword [ebp - 0x30], esp
mov ebx, esp
push esi
call fcn.00423475
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047bd40
add esp, 0xc
push 1
push 3
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.00429e22
mov eax, dword [eax]
push 0x51830c
push eax
call fcn.004ccf60
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 0x4983c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4984ca
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 4
jle 0x4984ca
add eax, 8
push 0x5c
push eax
call fcn.004cdc18
add esp, 8
test eax, eax
je 0x4984ca
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x4984ca
push 0
lea ecx, [ebp + 0xc]
inc eax
push ecx
call fcn.004228be
push 0x504acc
lea edx, [ebp + 0xc]
push edx
xor eax, eax
call fcn.00443e8e
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00423475
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 0x49844a
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 0x49846d
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 0x498490
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 0x4984b6
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 [0x547880]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.00422a16
mov ecx, dword [0x547880]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cca64
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 0x498516
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49859e
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x504acc
call fcn.00422827
mov byte [ebp - 4], 0x19
mov eax, dword [0x547880]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047bd40
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00423475
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 0x49813c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49813c
mov ecx, dword [0x54787c]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.00422a16
mov ecx, dword [0x54787c]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cca64
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 0x4985ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x498672
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x504acc
call fcn.00422827
mov byte [ebp - 4], 0x1a
mov eax, dword [0x54787c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047bd40
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00423475
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 0x49813c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49813c
mov ecx, dword [0x547878]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.00422a16
mov ecx, dword [0x547878]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cca64
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 0x4986be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x498746
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x504acc
call fcn.00422827
mov byte [ebp - 4], 0x1b
mov eax, dword [0x547878]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047bd40
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00423475
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 0x49813c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49813c
mov ecx, dword [0x547874]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp + 0xc]
call fcn.00422a16
mov ecx, dword [0x547874]
mov eax, dword [eax]
push ecx
push eax
call fcn.004cca64
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 0x498792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49883d
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x504acc
call fcn.00422827
mov byte [ebp - 4], 0x1c
mov eax, dword [0x547874]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047bd40
add esp, 8
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x519f54
call fcn.00422827
push ecx
mov byte [ebp - 4], 0x1d
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x51830c
call fcn.00422827
lea edx, [ebp + 0xc]
push edx
mov byte [ebp - 4], 0x17
call fcn.0047bd40
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0xc
push eax
call fcn.00423475
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 0x498589
push 0x547490
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x547488]
mov ebx, dword [ecx]
mov esi, dword [0x547470]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esi
lea esp, [esp]
mov edi, dword [0x547488]
test esi, esi
je 0x498872
cmp esi, dword [0x547470]
je 0x498877
call fcn.004cce91
cmp ebx, edi
je 0x498933
test esi, esi
jne 0x4988ed
call fcn.004cce91
cmp ebx, dword [esi + 0x18]
jne 0x498892
call fcn.004cce91
mov eax, dword [ebx + 0xc]
sub eax, 0x10
push eax
call fcn.00423475
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.004974b0
test eax, eax
jne 0x4988f1
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 0x4988da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x3c]
call fcn.0042a149
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
jmp 0x498860
mov esi, dword [esi]
jmp 0x498888
lea esi, [ebp - 0x3c]
call fcn.00429d7f
push eax
lea ecx, [ebp - 0x20]
call fcn.00422f41
call fcn.00429d7f
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00422f41
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 0x498933
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x547490
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 0
jne 0x498ccd
mov eax, dword [0x54748c]
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.004777e0
add esp, 0x10
call fcn.00497440
add esp, 4
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49898b
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 - 0x30], eax
mov byte [ebp - 4], 0x1f
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4989be
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], 0x20
mov dword [ebp - 0x2c], edi
lea ecx, [edi + 0x41]
push ecx
lea edx, [ebp - 0x24]
push 0x525df8
push edx
call fcn.004777e0
add esp, 0xc
mov bl, 0x21
push 0x50206c
mov byte [ebp - 4], bl
call fcn.004ccd1a
add esp, 4
push eax
push 0x50206c
lea ecx, [ebp - 0x14]
call fcn.00423404
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 0x498a32
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0042052a
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.004cccfb
add esp, 8
test eax, eax
jl 0x498e85
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x498e85
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x498bdb
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
je 0x498bdb
push eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
push str._s___s_
push ecx
call fcn.004777e0
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.00423b68
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 0x498ad3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x50206c
lea ecx, [ebp - 0x28]
call fcn.00422827
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.00423475
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004aeed0
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
test eax, eax
je 0x498b8b
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.004777e0
add esp, 0x10
call fcn.00497440
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
add esp, 4
cmp eax, esi
je 0x498ba5
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x498b7c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x498b7c
push eax
call fcn.00423475
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x498b71
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 0x498ba5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00423404
jmp 0x498ba5
mov edx, dword [ebp - 0x14]
push edx
push str.DeviceToDosName:__s_is_not_a_symbolic_link
push ecx
call fcn.004777e0
add esp, 0xc
call fcn.00497440
add esp, 4
lea esi, [ebp - 0x14]
lea eax, [ebp + 0xc]
call fcn.004974b0
test eax, eax
jne 0x498dce
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 0x498bdb
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 0x498bfe
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 0x4989d6
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.004777e0
add esp, 0xc
call fcn.00497440
mov edi, dword [ebp - 0x18]
add esp, 4
cmp dword [edi - 0xc], 0
je 0x498c8a
push 0x547490
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x20]
push edx
push 0x547470
call fcn.00430d19
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00422f41
mov eax, dword [0x54748c]
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.004777e0
add esp, 0x14
call fcn.00497440
add esp, 4
push 0x547490
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 0x498cad
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 0x498ccd
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 0x498d17
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x38], esp
mov esi, esp
push eax
call fcn.00423475
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.00423475
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.0047bd40
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00423475
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 0x498d51
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 0x498d74
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 0x498d94
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 0x498dba
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.0042a9ac
push eax
lea ecx, [ebp - 0x20]
call fcn.00422f41
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x498e36
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x498e29
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x498e29
push eax
call fcn.00423475
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x498e21
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 0x498e36
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00423404
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 0x498e59
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 0x498c0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x498c0b
push 0x80070057
call fcn.00420000
int3