Function at 0x10001769
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
push 8
call fcn.10004ed4
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x10013230
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x80000301
push 0
push 0x68
push 1
mov ebx, 0x1bc
call fcn.10005840
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100017de
push ebx
call fcn.10004eda
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x100017ef
add eax, 8
push eax
push 0x68
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10001811
push 6
call fcn.10004ec8
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10001b94
push 0
push 0
push 0
push htons
push 0
push 0x10013255
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10001843
mov eax, 0x10013230
push eax
push 3
mov ebx, 0x1c4
call fcn.10005870
add esp, 0x28
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1000187b
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10001877
imul eax, dword [ebx]
jmp 0x1000186c
mov ecx, eax
test ecx, ecx
je 0x1000189a
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10001893
push ebx
push eax
call fcn.10004eda
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10001881
call fcn.10004eda
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0
push 1
mov ebx, 0x1bc
call fcn.10005840
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100018db
push ebx
call fcn.10004eda
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
mov ebx, 0x274
call fcn.10005a70
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
call fcn.10001750
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10001adf
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x10]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov eax, 0x10013230
xor ecx, ecx
test eax, eax
je 0x1000193a
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x1000194d
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x10001964
dec eax
test ecx, ecx
je 0x10001964
call fcn.1000113b
add esp, 0xc
test eax, eax
je 0x10001ad2
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x10]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 0x80000301
push 0
push 3
push htons
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x100019a9
mov eax, 0x10013230
push eax
push 2
mov ebx, 0x1a0
call fcn.10005210
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push htons
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x100019d2
mov eax, 0x10013230
push eax
push 1
mov ebx, 0x168
call fcn.100052b0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x100019f8
push ebx
call fcn.10004eda
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001a0c
push ebx
call fcn.10004eda
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x10]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 0x80000301
push 0
push 3
push htons
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x10001a4a
mov eax, 0x10013230
push eax
push 2
mov ebx, 0x1a0
call fcn.10005210
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push 0x1001325e
push dword [ebp - 0x1c]
push 0x10013268
mov ecx, 3
call fcn.100011e7
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10001a8d
push ebx
call fcn.10004eda
add esp, 4
push htons
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10001aa0
mov eax, 0x10013230
push eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x298
call fcn.10005760
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10001acd
push ebx
call fcn.10004eda
add esp, 4
jmp 0x10001ad7
jmp 0x10001adf
pop eax
pop ebx
pop ecx
jmp 0x10001905
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x28c
call fcn.10005ac0
add esp, 0x10
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x2bc
call fcn.10005b20
add esp, 0x10
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x294
call fcn.10005b70
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10001b55
push ebx
call fcn.10004eda
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x278
call fcn.10005c50
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001b8f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10004ed4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10001b9e
mov eax, 0x10013230
jmp 0x10001b9e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10001baf
push ebx
call fcn.10004eda
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10001bcd
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10001bc9
imul eax, dword [ebx]
jmp 0x10001bbe
mov ecx, eax
test ecx, ecx
je 0x10001bec
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10001be5
push ebx
push eax
call fcn.10004eda
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10001bd3
call fcn.10004eda
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001c04
push ebx
call fcn.10004eda
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret