Function at 0x1224683d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push edi
cmp dword [ebp + 8], 0
je 0x12246859
cmp dword [ebp + 0xc], 0
je 0x12246859
cmp dword [ebp + 0x10], 0
jne 0x12246863
mov eax, 0xc000000d
jmp 0x12246e69
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.122ca717
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [0x12385ae8]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x12385aec]
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 0x12246938
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.122ca717
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x12246927
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x12246927
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x10], ecx
jmp 0x12246938
mov dx, word [ebp - 0x1c]
add dx, 1
mov word [ebp - 0x1c], dx
jmp 0x122468a4
cmp dword [ebp - 0x10], 0
je 0x1224697f
mov eax, dword [ebp - 0x10]
push eax
call fcn.122ca717
add esp, 4
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x12246973
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x12385af0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.122cb738
add esp, 0x10
jmp 0x1224697a
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e5c
push 0x12385afc
call fcn.122ca717
add esp, 4
mov dword [ebp - 0x434], eax
push 0x12385b34
call fcn.122ca717
add esp, 4
mov dword [ebp - 0x438], eax
mov edx, dword [ebp - 0x438]
push edx
push 0x12385b64
mov eax, dword [ebp + 8]
push eax
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x12246b20
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.122ca6ee
add esp, 8
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x12246a13
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 0x12246a22
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 0x12246a3f
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e66
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 0x12246b14
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.122ca640
add esp, 0xc
push 0x1e
push 0x12385b94
mov edx, dword [ebp + 0xc]
push edx
call fcn.122cb390
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.122cb390
add esp, 0xc
push 2
push 0x12385bb4
mov edx, dword [ebp - 0x440]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*2 + 0x1e]
push ecx
call fcn.122cb390
add esp, 0xc
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x438]
sub edx, dword [ebp - 0x440]
test edx, edx
jbe 0x12246b12
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.122cb390
add esp, 0xc
jmp 0x12246b1b
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e5c
mov eax, dword [ebp - 0x434]
push eax
push 0x12385bb8
mov ecx, dword [ebp + 8]
push ecx
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x12246c9b
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.122ca6ee
add esp, 8
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x12246b8e
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 0x12246b9d
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 0x12246bba
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e66
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 0x12246c8f
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.122ca640
add esp, 0xc
push 0x1e
push 0x12385bf0
mov eax, dword [ebp + 0xc]
push eax
call fcn.122cb390
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.122cb390
add esp, 0xc
push 2
push 0x12385c10
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2 + 0x1e]
push edx
call fcn.122cb390
add esp, 0xc
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x434]
sub eax, dword [ebp - 0x448]
test eax, eax
jbe 0x12246c8d
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.122cb390
add esp, 0xc
jmp 0x12246c96
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e5c
push 8
push 0x12385c14
mov ecx, dword [ebp + 8]
push ecx
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x12246cf2
mov edx, dword [ebp + 8]
push edx
call fcn.122ca717
add esp, 4
sub eax, 6
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x12246ce6
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
push 0x12385c28
mov edx, dword [ebp + 0xc]
push edx
call fcn.122cb738
add esp, 0xc
jmp 0x12246ced
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e5c
push 0x19
push 0x12385c34
mov eax, dword [ebp + 8]
push eax
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x12246d49
mov ecx, dword [ebp + 8]
push ecx
call fcn.122ca717
add esp, 4
sub eax, 0x17
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x12246d3d
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
push 0x12385c68
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.122cb738
add esp, 0xc
jmp 0x12246d44
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e5c
push 0xc
push str.DeviceMup_
mov edx, dword [ebp + 8]
push edx
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x12246da0
mov eax, dword [ebp + 8]
push eax
call fcn.122ca717
add esp, 4
sub eax, 0xa
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x12246d94
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
push 0x12385c90
mov eax, dword [ebp + 0xc]
push eax
call fcn.122cb738
add esp, 0xc
jmp 0x12246d9b
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e5c
push 0xd
push str.DeviceHGFS_
mov ecx, dword [ebp + 8]
push ecx
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x12246df4
mov edx, dword [ebp + 8]
push edx
call fcn.122ca717
add esp, 4
sub eax, 0xb
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x12246deb
mov ecx, dword [ebp + 8]
add ecx, 0x1a
push ecx
push 0x12385cb8
mov edx, dword [ebp + 0xc]
push edx
call fcn.122cb738
add esp, 0xc
jmp 0x12246df2
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e5c
push 0x14
push str.DeviceWinDfsRoot_
mov eax, dword [ebp + 8]
push eax
call fcn.122caedc
add esp, 0xc
test eax, eax
jne 0x12246e48
mov ecx, dword [ebp + 8]
push ecx
call fcn.122ca717
add esp, 4
sub eax, 0x12
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x12246e3f
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
push 0x12385cf0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.122cb738
add esp, 0xc
jmp 0x12246e46
mov dword [ebp - 0xc], reloc.WS2_32.dll_getpeername
jmp 0x12246e5c
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.12246694
add esp, 0xc
xor edx, edx
test edx, edx
jne 0x12246880
mov eax, dword [ebp - 0xc]
pop edi
mov esp, ebp
pop ebp
ret