Function at 0x1005559d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 8
call fcn.10056873
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x101052bf
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, 0x10105243
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1005560a
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
push 0x80000301
push 0
push 0x1000
push 1
mov ebx, 0x1bc
call fcn.10057820
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10055645
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.100212f2
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
push 0x1000
push dword [ebp - 0x24]
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10019457
test eax, eax
je 0x10055d19
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push 2
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100556a4
mov eax, 0x101052bf
push eax
push 3
mov ebx, 0x19c
call fcn.10057d50
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp ecx, 0x80000101
jne 0x100556d8
and eax, 0xff
jmp 0x1005572d
cmp ecx, 0x80000201
jne 0x100556e3
cwde
jmp 0x1005572d
cmp ecx, 0x80000301
je 0x1005572d
cmp ecx, 0x80000401
je 0x1005572d
mov dword [ebp - 0x34], eax
cmp ecx, 0x80000501
je 0x1005571d
cmp ecx, 0x80000601
je 0x10055722
push 0xd6
push 0x4035679
push 2
call fcn.10056879
add esp, 0xc
fld dword [ebp - 0x34]
jmp 0x10055728
mov dword [ebp - 0x30], edx
fld qword [ebp - 0x34]
call fcn.1000252d
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 0x80000301
push 0
push 9
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10055759
mov eax, 0x101052bf
push eax
push 3
mov ebx, 0x1a8
call fcn.100584e0
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10055783
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.10055da0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100557a9
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp dword [ebp + 0x14], 0
jne 0x1005580b
mov dword [ebp - 0x24], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x100557e7
push 0x1f8
push 0x4035679
push 6
call fcn.10056879
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10055806
push eax
mov ebx, eax
call fcn.10001b7a
inc eax
push eax
call fcn.10056873
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10055d23
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x1bc
call fcn.10057820
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10055840
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10055851
add eax, 8
push eax
push 0x100
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1005587d
push 0x264
push 0x4035679
push 6
call fcn.10056879
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0x14]
push htons
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1005589d
mov eax, 0x101052bf
push eax
push 2
mov ebx, 0x1a0
call fcn.10058650
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100558c7
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push htons
push 0
push 0x101066a5
push htons
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x100558f0
mov eax, 0x101052bf
push eax
push 3
mov ebx, 0x1c4
call fcn.10058850
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10055928
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10055924
imul eax, dword [ebx]
jmp 0x10055919
mov ecx, eax
test ecx, ecx
je 0x10055947
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10055940
push ebx
push eax
call fcn.1005686d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1005592e
call fcn.1005686d
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
call fcn.10002831
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10055cc4
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.100576a0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100559a7
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
call fcn.10001079
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x100559d2
push 0x376
push 0x4035679
push 4
call fcn.10056879
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100559ef
push 0x376
push 0x4035679
push 1
call fcn.10056879
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x18]
call fcn.10001079
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10055a1e
push 0x396
push 0x4035679
push 4
call fcn.10056879
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10055a3b
push 0x396
push 0x4035679
push 1
call fcn.10056879
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push 0x101066af
mov ebx, dword [ebp - 0x28]
push dword [ebx]
mov ecx, 2
call fcn.1000a110
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10055a73
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov ebx, dword [ebp - 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
call fcn.10001079
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10055aa0
push 0x3cc
push 0x4035679
push 4
call fcn.10056879
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10055abd
push 0x3cc
push 0x4035679
push 1
call fcn.10056879
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esp
push 0x80
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
je 0x10055adc
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10055b03
push 0x3cc
push 0x4035679
push 6
call fcn.10056879
add esp, 0xc
push reloc.oleaut32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10055b28
mov eax, 0x10105243
push eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x10055b3e
mov eax, 0x10105243
push eax
push 4
mov ebx, 0x148
call fcn.10057170
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x10055cbc
mov ebx, dword [ebp - 0x18]
call fcn.10001079
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x10055b85
push 0x48a
push 0x4035679
push 4
call fcn.10056879
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10055ba2
push 0x48a
push 0x4035679
push 1
call fcn.10056879
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push htons
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x10055bbf
mov eax, 0x101052bf
push eax
push 1
mov ebx, 0x168
call fcn.100573f0
add esp, 0x10
mov dword [ebp - 0x28], eax
push reloc.oleaut32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.1000abf3
push VariantClear
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10055bfe
mov eax, 0x10105243
push eax
push VariantClear
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10055c12
mov eax, 0x10105243
push eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x10055c28
mov eax, 0x10105243
push eax
push 6
mov ebx, 0x180
call fcn.10058a10
add esp, 0x4c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10055c4e
push ebx
call fcn.1005686d
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10055c64
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x24], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x10055c98
push 0x4c4
push 0x4035679
push 6
call fcn.10056879
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10055cb7
push eax
mov ebx, eax
call fcn.10001b7a
inc eax
push eax
call fcn.10056873
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10055d23
pop eax
pop ebx
pop ecx
jmp 0x10055964
add esp, 0xc
mov dword [ebp - 0x24], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x10055cf5
push 0x51a
push 0x4035679
push 6
call fcn.10056879
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10055d14
push eax
mov ebx, eax
call fcn.10001b7a
inc eax
push eax
call fcn.10056873
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10055d23
mov eax, 0x10105243
jmp 0x10055d23
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10055d34
push ebx
call fcn.1005686d
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10055d44
push ebx
call fcn.1005686d
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10055d62
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10055d5e
imul eax, dword [ebx]
jmp 0x10055d53
mov ecx, eax
test ecx, ecx
je 0x10055d81
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10055d7a
push ebx
push eax
call fcn.1005686d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10055d68
call fcn.1005686d
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10055d99
push ebx
call fcn.1005686d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10