Function at 0x3403776d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3413ca9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push edi
cmp dword [ebp + 8], 0
je 0x3403779e
cmp dword [ebp + 0xc], 0
je 0x3403779e
cmp dword [ebp + 0x10], 0
jne 0x340377a8
mov eax, 0xc000000d
jmp 0x34037cf1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.340a6b90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.3400b5e0
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
call fcn.340020d0
test eax, eax
jne 0x340377d8
cmp dword [ebp - 0x10], 0
jne 0x340377fc
mov dword [ebp - 0xb8], 0xc000000d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xb8]
jmp 0x34037cf1
push 0x34179e50
call fcn.340bd4b7
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.340bdc7c
add esp, 0xc
test eax, eax
je 0x34037842
mov eax, dword [ebp - 0x18]
push eax
push str..TSD_VOLUME_
mov ecx, dword [ebp + 8]
push ecx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x340379a0
push 0x3a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.340bd48e
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x34037883
mov dword [ebp - 0xbc], 0xc000000d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xbc]
jmp 0x34037cf1
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 0x340378c5
mov dword [ebp - 0xc0], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xc0]
jmp 0x34037cf1
mov ecx, dword [ebp - 0x10]
add ecx, 7
cmp dword [ebp + 0x10], ecx
jae 0x340378f4
mov dword [ebp - 0xc4], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xc4]
jmp 0x34037cf1
mov edx, dword [ebp + 0x10]
shl edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.340bd3e0
add esp, 0xc
push 0x2e
push 0x34179eb0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340be130
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.340be130
add esp, 0xc
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
sub ecx, 1
test ecx, ecx
jbe 0x3403797c
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
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 - 0x1c]
lea edx, [eax + ecx*2 + 2]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2 + 0x2e]
push edx
call fcn.340be130
add esp, 0xc
mov dword [ebp - 0xc8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xc8]
jmp 0x34037cf1
push 0x34179ee0
call fcn.340bd4b7
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push str._TVD_VOLUME_
mov ecx, dword [ebp + 8]
push ecx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
je 0x340379e6
mov edx, dword [ebp - 0x18]
push edx
push str..TVD_VOLUME_
mov eax, dword [ebp + 8]
push eax
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x34037b44
push 0x3a
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
call fcn.340bd48e
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x34037a27
mov dword [ebp - 0xcc], 0xc000000d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xcc]
jmp 0x34037cf1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0x28]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
cmp dword [ebp - 0x24], edx
jbe 0x34037a69
mov dword [ebp - 0xd0], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xd0]
jmp 0x34037cf1
mov eax, dword [ebp - 0x10]
add eax, 0xa
cmp dword [ebp + 0x10], eax
jae 0x34037a98
mov dword [ebp - 0xd4], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xd4]
jmp 0x34037cf1
mov ecx, dword [ebp + 0x10]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.340bd3e0
add esp, 0xc
push 0x34
push 0x34179f40
mov eax, dword [ebp + 0xc]
push eax
call fcn.340be130
add esp, 0xc
mov ecx, dword [ebp - 0x24]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x34
push edx
call fcn.340be130
add esp, 0xc
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub eax, 1
test eax, eax
jbe 0x34037b20
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x24]
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 - 0x24]
lea ecx, [edx + eax*2 + 2]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*2 + 0x34]
push ecx
call fcn.340be130
add esp, 0xc
mov dword [ebp - 0xd8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xd8]
jmp 0x34037cf1
cmp dword [ebp - 0x10], 2
jbe 0x34037bec
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5c
jne 0x34037bec
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0x5c
jne 0x34037bec
mov eax, dword [ebp - 0x10]
add eax, 0x18
cmp dword [ebp + 0x10], eax
jae 0x34037b9c
mov dword [ebp - 0xdc], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xdc]
jmp 0x34037cf1
mov ecx, dword [ebp + 0x10]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.340bd3e0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 2
push eax
push str.DeviceLanmanRedirector_s
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340be4d8
add esp, 0xc
mov dword [ebp - 0xe0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xe0]
jmp 0x34037cf1
cmp dword [ebp - 0x10], 2
jb 0x34037cd2
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 2]
cmp eax, 0x3a
jne 0x34037cd2
mov word [ebp - 0x34], 0
xor ecx, ecx
mov dword [ebp - 0x32], ecx
mov word [ebp - 0x2e], cx
mov edx, dword [ebp + 8]
mov ax, word [edx]
mov word [ebp - 0x34], ax
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 ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x34037c7e
mov dword [ebp - 0xe4], reloc.WS2_32.dll_getpeername
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xe4]
jmp 0x34037cf1
mov eax, dword [ebp + 0x10]
shl eax, 1
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340bd3e0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 4
push edx
lea eax, [ebp - 0xb4]
push eax
push 0x34179fb0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340be4d8
add esp, 0x10
mov dword [ebp - 0xe8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xe8]
jmp 0x34037cf1
mov dword [ebp - 0xec], 0xc000000d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.340a7330
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret