Function at 0x34036c2d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push edi
cmp dword [ebp + 8], 0
je 0x34036c49
cmp dword [ebp + 0xc], 0
je 0x34036c49
cmp dword [ebp + 0x10], 0
jne 0x34036c53
mov eax, 0xc000000d
jmp 0x340372f5
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.340bd4b7
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [0x34179ac8]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x34179acc]
mov word [ebp - 0x18], dx
xor eax, eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
cmp ecx, 0x5a
jg 0x34036d28
mov word [ebp - 0x430], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x42e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x208
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [ebp - 0x430]
push ecx
call fcn.340bd4b7
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x34036d17
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x34036d17
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x10], ecx
jmp 0x34036d28
mov dx, word [ebp - 0x1c]
add dx, 1
mov word [ebp - 0x1c], dx
jmp 0x34036c94
cmp dword [ebp - 0x10], 0
je 0x34036d6f
mov eax, dword [ebp - 0x10]
push eax
call fcn.340bd4b7
add esp, 4
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x34036d63
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x34179ad0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340be4d8
add esp, 0x10
jmp 0x34036d6a
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372e8
push 0x34179adc
call fcn.340bd4b7
add esp, 4
mov dword [ebp - 0x434], eax
push 0x34179b14
call fcn.340bd4b7
add esp, 4
mov dword [ebp - 0x438], eax
mov edx, dword [ebp - 0x438]
push edx
push 0x34179b44
mov eax, dword [ebp + 8]
push eax
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x34036f10
mov dword [ebp - 0x440], 0
push 0x5c
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
call fcn.340bd48e
add esp, 8
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x34036e03
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0x43c]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x440], ecx
jmp 0x34036e12
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x438]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x438]
cmp dword [ebp - 0x440], eax
jbe 0x34036e2f
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372f2
mov ecx, dword [ebp - 8]
add ecx, 0x10
sub ecx, dword [ebp - 0x438]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x34036f04
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340bd3e0
add esp, 0xc
push 0x1e
push 0x34179b74
mov edx, dword [ebp + 0xc]
push edx
call fcn.340be130
add esp, 0xc
mov eax, dword [ebp - 0x440]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x1e
push ecx
call fcn.340be130
add esp, 0xc
push 2
push 0x34179b94
mov edx, dword [ebp - 0x440]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*2 + 0x1e]
push ecx
call fcn.340be130
add esp, 0xc
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x438]
sub edx, dword [ebp - 0x440]
test edx, edx
jbe 0x34036f02
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x438]
sub eax, dword [ebp - 0x440]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0x440]
lea edx, [eax + ecx*2]
push edx
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2 + 0x20]
push edx
call fcn.340be130
add esp, 0xc
jmp 0x34036f0b
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372e8
mov eax, dword [ebp - 0x434]
push eax
push 0x34179b98
mov ecx, dword [ebp + 8]
push ecx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x3403708b
mov dword [ebp - 0x448], 0
push 0x5c
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.340bd48e
add esp, 8
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x34036f7e
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
mov edx, dword [ebp - 0x444]
sub edx, ecx
sar edx, 1
mov dword [ebp - 0x448], edx
jmp 0x34036f8d
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x434]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x434]
cmp dword [ebp - 0x448], ecx
jbe 0x34036faa
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372f2
mov edx, dword [ebp - 8]
add edx, 0x10
sub edx, dword [ebp - 0x434]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x3403707f
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.340bd3e0
add esp, 0xc
push 0x1e
push 0x34179bd0
mov eax, dword [ebp + 0xc]
push eax
call fcn.340be130
add esp, 0xc
mov ecx, dword [ebp - 0x448]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x1e
push edx
call fcn.340be130
add esp, 0xc
push 2
push 0x34179bf0
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2 + 0x1e]
push edx
call fcn.340be130
add esp, 0xc
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x434]
sub eax, dword [ebp - 0x448]
test eax, eax
jbe 0x3403707d
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x434]
sub ecx, dword [ebp - 0x448]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
mov edx, dword [ebp - 0x448]
lea eax, [ecx + edx*2]
push eax
mov ecx, dword [ebp - 0x448]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2 + 0x20]
push eax
call fcn.340be130
add esp, 0xc
jmp 0x34037086
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372e8
push 8
push 0x34179bf4
mov ecx, dword [ebp + 8]
push ecx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x340370e2
mov edx, dword [ebp + 8]
push edx
call fcn.340bd4b7
add esp, 4
sub eax, 6
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x340370d6
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
push 0x34179c08
mov edx, dword [ebp + 0xc]
push edx
call fcn.340be4d8
add esp, 0xc
jmp 0x340370dd
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372e8
push 0x1a
push str.__GlobalRootDosDevices_
mov eax, dword [ebp + 8]
push eax
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x3403717e
mov dword [ebp - 0x44c], 0x1a
mov ecx, dword [ebp + 8]
push ecx
call fcn.340bd4b7
add esp, 4
sub eax, 0x1a
mov dword [ebp - 4], eax
push 7
push 0x34179c4c
mov edx, dword [ebp + 8]
add edx, 0x34
push edx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x3403714b
mov eax, dword [ebp - 0x44c]
add eax, 7
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 4]
sub ecx, 7
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x34037172
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340bd451
add esp, 0xc
jmp 0x34037179
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372e8
push 0x19
push 0x34179c5c
mov edx, dword [ebp + 8]
push edx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x340371d5
mov eax, dword [ebp + 8]
push eax
call fcn.340bd4b7
add esp, 4
sub eax, 0x17
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x340371c9
mov edx, dword [ebp + 8]
add edx, 0x32
push edx
push 0x34179c90
mov eax, dword [ebp + 0xc]
push eax
call fcn.340be4d8
add esp, 0xc
jmp 0x340371d0
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372e8
push 0xc
push str.DeviceMup_
mov ecx, dword [ebp + 8]
push ecx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x3403722c
mov edx, dword [ebp + 8]
push edx
call fcn.340bd4b7
add esp, 4
sub eax, 0xa
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x34037220
mov ecx, dword [ebp + 8]
add ecx, 0x18
push ecx
push 0x34179cb8
mov edx, dword [ebp + 0xc]
push edx
call fcn.340be4d8
add esp, 0xc
jmp 0x34037227
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372e8
push 0xd
push str.DeviceHGFS_
mov eax, dword [ebp + 8]
push eax
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x34037280
mov ecx, dword [ebp + 8]
push ecx
call fcn.340bd4b7
add esp, 4
sub eax, 0xb
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x34037277
mov eax, dword [ebp + 8]
add eax, 0x1a
push eax
push 0x34179ce0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340be4d8
add esp, 0xc
jmp 0x3403727e
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372e8
push 0x14
push str.DeviceWinDfsRoot_
mov edx, dword [ebp + 8]
push edx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x340372d4
mov eax, dword [ebp + 8]
push eax
call fcn.340bd4b7
add esp, 4
sub eax, 0x12
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x340372cb
mov edx, dword [ebp + 8]
add edx, 0x28
push edx
push 0x34179d18
mov eax, dword [ebp + 0xc]
push eax
call fcn.340be4d8
add esp, 0xc
jmp 0x340372d2
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x340372e8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.34036a84
add esp, 0xc
xor ecx, ecx
test ecx, ecx
jne 0x34036c70
mov eax, dword [ebp - 0xc]
pop edi
mov esp, ebp
pop ebp
ret