Function at 0x1002f800
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f243
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
call fcn.10022690
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x1002f855
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x1002f880
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
cmp dword [0x101726a8], 0
jne 0x1002f89f
call fcn.10030940
mov eax, dword [0x10175990]
test al, 1
jne 0x1002f8d9
or eax, 1
mov dword [0x10175990], eax
push str.DeviceLanmanRedirector_
mov ecx, 0x101759a0
mov byte [ebp - 4], 3
call fcn.10023fc0
push 0x101274d0
call fcn.10103a78
mov byte [ebp - 4], 2
add esp, 4
mov eax, dword [0x10175990]
test al, 2
jne 0x1002f90e
or eax, 2
mov dword [0x10175990], eax
push str.DeviceWinDfs_
mov ecx, 0x10175994
mov byte [ebp - 4], 4
call fcn.10023fc0
push 0x101274a0
call fcn.10103a78
mov byte [ebp - 4], 2
add esp, 4
mov eax, dword [0x10175990]
test al, 4
jne 0x1002f943
or eax, 4
mov dword [0x10175990], eax
push str.DeviceMupDfsClient_
mov ecx, 0x1017599c
mov byte [ebp - 4], 5
call fcn.10023fc0
push 0x10127470
call fcn.10103a78
mov byte [ebp - 4], 2
add esp, 4
mov eax, dword [0x10175990]
test al, 8
jne 0x1002f978
or eax, 8
mov dword [0x10175990], eax
push str.DeviceMUP_
mov ecx, 0x10175984
mov byte [ebp - 4], 6
call fcn.10023fc0
push 0x10127440
call fcn.10103a78
mov byte [ebp - 4], 2
add esp, 4
mov eax, dword [0x10175990]
test al, 0x10
jne 0x1002f9ad
or eax, 0x10
mov dword [0x10175990], eax
push str.DeviceNetWareRedirector_
mov ecx, 0x10175988
mov byte [ebp - 4], 7
call fcn.10023fc0
push 0x10127410
call fcn.10103a78
mov byte [ebp - 4], 2
add esp, 4
mov eax, dword [0x10175990]
test al, 0x20
jne 0x1002f9e2
or eax, 0x20
mov dword [0x10175990], eax
push str.DeviceWebDavRedirector_
mov ecx, 0x1017598c
mov byte [ebp - 4], 8
call fcn.10023fc0
push 0x101273e0
call fcn.10103a78
mov byte [ebp - 4], 2
add esp, 4
mov eax, dword [0x10175990]
test al, 0x40
jne 0x1002fa17
or eax, 0x40
mov dword [0x10175990], eax
push str.DeviceCdmRedirector_
mov ecx, 0x10175998
mov byte [ebp - 4], 9
call fcn.10023fc0
push 0x101273b0
call fcn.10103a78
mov byte [ebp - 4], 2
add esp, 4
mov eax, dword [0x10175990]
test al, al
js 0x1002fa49
or eax, 0x80
mov dword [0x10175990], eax
push str.DevicePicaDriveRedirector_
mov ecx, 0x10175980
mov byte [ebp - 4], 0xa
call fcn.10023fc0
push 0x10127380
call fcn.10103a78
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [0x101759a0]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.100267b0
xor edx, edx
mov byte [ebp - 4], 0xb
mov ecx, dword [0x101759a0]
test ecx, ecx
setne dl
test edx, edx
jne 0x1002fa7c
push 0x80004005
call fcn.100223c0
push ecx
push dword [eax]
call fcn.10103523
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
test eax, eax
sete byte [ebp - 0xd]
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1002fab0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1002fc40
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x1013a340
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 0xc
mov esi, esp
mov ecx, dword [0x101759a0]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp + 8]
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.10047d00
add esp, 8
lea eax, [ebp - 0x34]
lea ecx, [ebp + 8]
push 1
push 2
push eax
call fcn.10026a50
mov ecx, 1
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov ecx, 0x1012ee38
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002fb46
test dx, dx
je 0x1002fb42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002fb46
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002fb20
xor eax, eax
jmp 0x1002fb4b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x1002fb80
push 1
push 4
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 8]
call fcn.10026a50
mov ecx, 3
mov edx, 0x1013a348
mov dword [ebp - 0x2c], ecx
mov ecx, eax
call fcn.1002cc20
mov byte [ebp - 0xd], 1
test al, al
jne 0x1002fb84
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0x2c]
test dl, 2
je 0x1002fbb4
mov esi, dword [ebp - 0x38]
and edx, 0xfffffffd
add esi, 0xfffffff0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002fbb4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 2
test dl, 1
je 0x1002fbdc
mov edx, dword [ebp - 0x34]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002fbdc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1002fc28
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 5
jle 0x1002fc2b
add eax, 0xa
push 0x5c
push eax
call fcn.101033a1
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1002fc28
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x1002fc2b
lea eax, [ecx + 1]
push eax
push 0
lea ecx, [ebp + 8]
call fcn.10026580
push 0x1013a340
push 0
lea ecx, [ebp + 8]
call fcn.1002c880
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.10024750
mov esi, dword [ebp - 0x24]
add eax, 0x10
mov dword [esi], eax
jmp 0x1003055b
push 0x1012ec60
lea ecx, [ebp - 0x1c]
call fcn.10023fc0
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 8]
mov eax, dword [0x10175994]
push dword [eax - 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.100267b0
xor edx, edx
mov byte [ebp - 4], 0xf
mov ecx, dword [0x10175994]
test ecx, ecx
setne dl
test edx, edx
jne 0x1002fc84
push 0x80004005
call fcn.100223c0
push ecx
push dword [eax]
call fcn.10103523
add esp, 8
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x38]
test eax, eax
mov ecx, edi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002fcb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1002fcc2
push 0x10175994
jmp 0x1002fd31
mov eax, dword [0x1017599c]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.100267b0
xor edx, edx
mov byte [ebp - 4], 0x10
mov ecx, dword [0x1017599c]
test ecx, ecx
setne dl
test edx, edx
jne 0x1002fcf5
push 0x80004005
call fcn.100223c0
push ecx
push dword [eax]
call fcn.10103523
add esp, 8
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x38]
test eax, eax
mov ecx, edi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002fd26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1002fd39
push 0x1017599c
lea ecx, [ebp - 0x1c]
call fcn.100244b0
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
je 0x1002fe03
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x1013a340
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 0x11
mov esi, esp
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp + 8]
mov dword [esi], eax
mov byte [ebp - 4], 0xe
call fcn.10047d00
add esp, 8
lea eax, [ebp - 0x38]
lea ecx, [ebp + 8]
push 1
push 3
push eax
call fcn.10026a50
mov edx, 0x1013a348
mov ecx, eax
call fcn.1002cc20
mov esi, dword [ebp - 0x38]
mov edx, edi
add esi, 0xfffffff0
mov byte [ebp - 0xd], al
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002fdba
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
test al, al
je 0x1002fe03
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 4
jle 0x1002fe03
add eax, 8
push 0x5c
push eax
call fcn.101033a1
add esp, 8
test eax, eax
je 0x1002fe03
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, 0xffffffff
je 0x1002fe03
inc eax
lea ecx, [ebp + 8]
push eax
push 0
call fcn.10026580
push 0x1013a340
push 0
lea ecx, [ebp + 8]
call fcn.1002c880
jmp 0x10030528
mov eax, dword [0x10175984]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.100267b0
xor edx, edx
mov byte [ebp - 4], 0x12
mov ecx, dword [0x10175984]
test ecx, ecx
setne dl
test edx, edx
jne 0x1002fe36
push 0x80004005
call fcn.100223c0
push ecx
push dword [eax]
call fcn.10103523
add esp, 8
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x38]
test eax, eax
mov ecx, edi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002fe67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1002fe8d
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x1013a340
call fcn.10023fc0
mov byte [ebp - 4], 0x13
push ecx
mov ecx, dword [0x10175984]
jmp 0x1003050a
mov eax, dword [0x10175988]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.100267b0
xor edx, edx
mov byte [ebp - 4], 0x14
mov ecx, dword [0x10175988]
test ecx, ecx
setne dl
test edx, edx
jne 0x1002fec0
push 0x80004005
call fcn.100223c0
push ecx
push dword [eax]
call fcn.10103523
add esp, 8
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x38]
test eax, eax
mov ecx, edi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002fef1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1002ff17
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x1013a340
call fcn.10023fc0
mov byte [ebp - 4], 0x15
push ecx
mov ecx, dword [0x10175988]
jmp 0x1003050a
mov eax, dword [0x1017598c]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.100267b0
xor edx, edx
mov byte [ebp - 4], 0x16
mov ecx, dword [0x1017598c]
test ecx, ecx
setne dl
test edx, edx
jne 0x1002ff4a
push 0x80004005
call fcn.100223c0
push ecx
push dword [eax]
call fcn.10103523
add esp, 8
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x38]
test eax, eax
mov ecx, edi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ff7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1002ffa1
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x1013a340
call fcn.10023fc0
mov byte [ebp - 4], 0x17
push ecx
mov ecx, dword [0x1017598c]
jmp 0x1003050a
mov eax, dword [0x10175998]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.100267b0
mov byte [ebp - 4], 0x18
mov ecx, eax
push dword [0x10175998]
call fcn.10024160
test eax, eax
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x38]
mov ecx, edi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ffec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x100300a5
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x1013a340
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 0x19
mov esi, esp
mov ecx, dword [0x10175998]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp + 8]
mov dword [esi], eax
mov byte [ebp - 4], 0xe
call fcn.10047d00
add esp, 4
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x1013a34c
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x1a
push 0x1013a348
call fcn.10023fc0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.10047d00
mov ecx, dword [ebp + 8]
add esp, 8
lea ecx, [ecx - 0x10]
call fcn.10024750
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
add eax, 0x10
mov dword [esi], eax
call fcn.10024080
lea ecx, [ebp - 0x18]
call fcn.10024080
lea ecx, [ebp - 0x20]
call fcn.10024080
lea ecx, [ebp + 8]
call fcn.10024080
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 0x10175208
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10175200]
mov esi, dword [eax]
mov dword [ebp - 0x2c], esi
cmp esi, eax
je 0x10030156
mov ecx, dword [esi + 0x10]
sub ecx, 0x10
call fcn.10024750
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 0x1b
lea ecx, [ebp + 8]
call fcn.1002f3f0
test eax, eax
jne 0x1003011b
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0xe
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10030106
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
call fcn.10030d40
mov esi, dword [ebp - 0x2c]
cmp esi, dword [0x10175200]
jne 0x100300c2
jmp 0x10030156
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.100244b0
add esi, 0x14
lea ecx, [ebp - 0x20]
push esi
call fcn.100244b0
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0xe
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10030153
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x20]
push 0x10175208
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx - 0xc], 0
jne 0x100304ef
push ecx
mov eax, esp
push dword [0x10175204]
push dword [ebp + 8]
push 0x1013a350
push eax
call fcn.10044f30
add esp, 0x10
call fcn.1002f220
add esp, 4
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100301a9
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x1c
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100301dc
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
xor eax, eax
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0x34], eax
add eax, 0x41
push eax
lea eax, [ebp - 0x28]
push 0x1013a14c
push eax
call fcn.10044f30
add esp, 0xc
push 0
push 0x1012ec60
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1e
call fcn.10024680
mov eax, dword [ebp - 0x14]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x10030242
push 0x104
lea ecx, [ebp - 0x14]
call fcn.100249c0
mov eax, dword [ebp - 0x14]
push 0x104
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
push dword [ecx - 8]
push ecx
call fcn.1010374b
mov edx, eax
add esp, 8
test edx, edx
js 0x100305cd
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x100305cd
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
test esi, esi
je 0x1003037d
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
je 0x1003037d
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x3c]
push 0x1013a3cc
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x38]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10024890
mov byte [ebp - 4], 0x1e
mov ecx, edi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100302df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x1012ec60
lea ecx, [ebp - 0x2c]
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 0x20
mov esi, esp
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x2c]
mov dword [esi], eax
call fcn.100330e0
add esp, 4
test eax, eax
push ecx
mov eax, esp
je 0x1003033f
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push str.DeviceToDosName:_Resolved_symbolic_link__s___s
push eax
call fcn.10044f30
add esp, 0x10
call fcn.1002f220
add esp, 4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push eax
call fcn.100244b0
jmp 0x10030358
push dword [ebp - 0x14]
push str.DeviceToDosName:__s_is_not_a_symbolic_link
push eax
call fcn.10044f30
add esp, 0xc
call fcn.1002f220
add esp, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp + 8]
call fcn.1002f3f0
test eax, eax
jne 0x100303af
lea ecx, [ebp - 0x2c]
call fcn.10024080
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1d
call fcn.10024080
jmp 0x1003039d
mov byte [ebp - 4], 0x1d
mov ecx, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003039d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, 0x19
jle 0x100301f2
jmp 0x100303e5
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.100309e0
push eax
lea ecx, [ebp - 0x18]
call fcn.100244b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.100244b0
lea ecx, [ebp - 0x2c]
call fcn.10024080
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1d
call fcn.10024080
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push esi
push str.QueryDosDevice:__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0x21
mov ecx, str.FileNameFromHandle
mov edx, dword [ebp - 0x34]
call fcn.10043b30
mov byte [ebp - 4], 0x1d
mov ecx, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003042b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx - 0xc], 0
je 0x100304ac
push 0x10175208
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x18]
mov ecx, 0x10175200
push eax
call fcn.10030a70
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.100244b0
push dword [0x10175204]
lea eax, [ebp - 0x34]
push ebx
push dword [ebp - 0x18]
push str.DeviceToDosName:_Adding_to_cache___s_s_._Cache_now_has__d_items.
push eax
call fcn.10044f30
add esp, 0x14
mov byte [ebp - 4], 0x22
mov ecx, str.FileNameFromHandle
mov edx, dword [ebp - 0x34]
call fcn.10043b30
mov byte [ebp - 4], 0x1d
mov ecx, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100304a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10175208
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x1c
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100304cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xe
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100304e9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx - 0xc], 0
je 0x10030528
push ecx
lea ecx, [ebx - 0x10]
mov dword [ebp - 0x40], esp
mov esi, esp
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x23
push ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
mov esi, esp
call fcn.10024750
add eax, 0x10
lea ecx, [ebp + 8]
mov dword [esi], eax
mov byte [ebp - 4], 0xe
call fcn.10047d00
add esp, 8
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10024750
mov esi, dword [ebp - 0x24]
add eax, 0x10
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov dword [esi], eax
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003055b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003057b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10030598
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100305b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x80070057
call fcn.100223c0
int3