Function at 0x12247290
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x123491ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push edi
cmp dword [ebp + 8], 0
je 0x122472c1
cmp dword [ebp + 0xc], 0
je 0x122472c1
cmp dword [ebp + 0x10], 0
jne 0x122472cb
mov eax, 0xc000000d
jmp 0x122477be
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.122b55a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.1221b470
mov dword [ebp - 0x10], eax
push 0x12385e28
call fcn.122ca717
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
push str._TSD_VOLUME_
mov edx, dword [ebp + 8]
push edx
call fcn.122caedc
add esp, 0xc
test eax, eax
je 0x1224732f
mov eax, dword [ebp - 0x18]
push eax
push str..TSD_VOLUME_
mov ecx, dword [ebp + 8]
push ecx
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x1224747d
push 0x3a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.122ca6ee
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x12247370
mov dword [ebp - 0xb8], 0xc000000d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xb8]
jmp 0x122477be
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
mov edx, dword [ebp - 0x20]
sub edx, ecx
sar edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], eax
jbe 0x122473b2
mov dword [ebp - 0xbc], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xbc]
jmp 0x122477be
mov ecx, dword [ebp - 0x10]
add ecx, 7
cmp dword [ebp + 0x10], ecx
jae 0x122473e1
mov dword [ebp - 0xc0], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xc0]
jmp 0x122477be
mov edx, dword [ebp + 0x10]
shl edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.122ca640
add esp, 0xc
push 0x2e
push 0x12385e88
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.122cb390
add esp, 0xc
mov edx, dword [ebp - 0x1c]
shl edx, 1
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x2e
push eax
call fcn.122cb390
add esp, 0xc
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
mov eax, dword [ebp - 0x1c]
lea ecx, [edx + eax*2 + 2]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*2 + 0x2e]
push ecx
call fcn.122cb390
add esp, 0xc
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xc4]
jmp 0x122477be
push 0x12385eb8
call fcn.122ca717
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push str._TVD_VOLUME_
mov eax, dword [ebp + 8]
push eax
call fcn.122caedc
add esp, 0xc
test eax, eax
je 0x122474c3
mov ecx, dword [ebp - 0x18]
push ecx
push str..TVD_VOLUME_
mov edx, dword [ebp + 8]
push edx
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x12247611
push 0x3a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
call fcn.122ca6ee
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x12247504
mov dword [ebp - 0xc8], 0xc000000d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xc8]
jmp 0x122477be
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
mov eax, dword [ebp - 0x28]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x24], ecx
jbe 0x12247546
mov dword [ebp - 0xcc], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xcc]
jmp 0x122477be
mov edx, dword [ebp - 0x10]
add edx, 0xa
cmp dword [ebp + 0x10], edx
jae 0x12247575
mov dword [ebp - 0xd0], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xd0]
jmp 0x122477be
mov eax, dword [ebp + 0x10]
shl eax, 1
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.122ca640
add esp, 0xc
push 0x34
push 0x12385f18
mov edx, dword [ebp + 0xc]
push edx
call fcn.122cb390
add esp, 0xc
mov eax, dword [ebp - 0x24]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x34
push ecx
call fcn.122cb390
add esp, 0xc
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x24]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0x24]
lea edx, [eax + ecx*2 + 2]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2 + 0x34]
push edx
call fcn.122cb390
add esp, 0xc
mov dword [ebp - 0xd4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xd4]
jmp 0x122477be
cmp dword [ebp - 0x10], 2
jbe 0x122476b9
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5c
jne 0x122476b9
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 2]
cmp eax, 0x5c
jne 0x122476b9
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
cmp dword [ebp + 0x10], ecx
jae 0x12247669
mov dword [ebp - 0xd8], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xd8]
jmp 0x122477be
mov edx, dword [ebp + 0x10]
shl edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.122ca640
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 2
push ecx
push str.DeviceLanmanRedirector_s
mov edx, dword [ebp + 0xc]
push edx
call fcn.122cb738
add esp, 0xc
mov dword [ebp - 0xdc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xdc]
jmp 0x122477be
cmp dword [ebp - 0x10], 2
jb 0x1224779f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0x3a
jne 0x1224779f
mov word [ebp - 0x34], 0
xor edx, edx
mov dword [ebp - 0x32], edx
mov word [ebp - 0x2e], dx
mov eax, dword [ebp + 8]
mov cx, word [eax]
mov word [ebp - 0x34], cx
mov word [ebp - 0x32], 0x3a
mov word [ebp - 0xb4], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xb2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1224774b
mov dword [ebp - 0xe0], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xe0]
jmp 0x122477be
mov ecx, dword [ebp + 0x10]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.122ca640
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea ecx, [ebp - 0xb4]
push ecx
push 0x12385f88
mov edx, dword [ebp + 0xc]
push edx
call fcn.122cb738
add esp, 0x10
mov dword [ebp - 0xe4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xe4]
jmp 0x122477be
mov dword [ebp - 0xe8], 0xc000000d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.122b5d40
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret