Function at 0x49eccd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00535595
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x6187fe
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 8
call fcn.00535595
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x6187fe
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.00535595
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x6187fe
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 dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
mov eax, 0x6187fe
test eax, eax
je 0x49ed60
add eax, 8
push eax
push 0
call dword [0x637911]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x49ed82
push 6
call fcn.0053559b
add esp, 4
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.00536520
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x49edb8
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], esp
mov eax, dword [ebp - 8]
test eax, eax
je 0x49edc9
add eax, 8
push eax
push dword [ebp - 4]
call dword [0x637911]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x49ede9
push 6
call fcn.0053559b
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
push 0x6188ef
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x49ee0e
mov eax, 0x6187fe
push eax
push 3
mov ebx, 0x1c4
call fcn.005384b0
add esp, 0x28
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x49ee46
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x49ee42
imul eax, dword [ebx]
jmp 0x49ee37
mov ecx, eax
test ecx, ecx
je 0x49ee65
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x49ee5e
push ebx
push eax
call fcn.0053558f
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x49ee4c
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.0049ecb4
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x61880c]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.0049d9a9
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x49f4c4
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x49eebf
push 0xa
call fcn.0053559b
add esp, 4
mov dword [ebp - 0x28], eax
lea ebx, [ebp - 0x2c]
call fcn.0049d8c2
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.00535595
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x28]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x14]
call fcn.0049d8c2
pop edx
test ecx, ecx
je 0x49ef1b
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x49ef11
push ebx
call fcn.0053558f
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x49ef00
pop edx
pop edi
test edx, edx
je 0x49ef29
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x14]
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x49ef54
push 0xa
call fcn.0053559b
add esp, 4
mov dword [ebp - 0x28], eax
lea ebx, [ebp - 0x2c]
call fcn.0049d8c2
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.00535595
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x28]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x18]
call fcn.0049d8c2
pop edx
test ecx, ecx
je 0x49efb0
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x49efa6
push ebx
call fcn.0053558f
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x49ef95
pop edx
pop edi
test edx, edx
je 0x49efbe
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x18]
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
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 0x49f23d
mov ebx, dword [ebp - 0xc]
call fcn.0049d8c2
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x49f004
push 4
call fcn.0053559b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49f017
push 1
call fcn.0053559b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x49f03b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00535595
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x49f04c
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.0049d8c2
push ebx
push ecx
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x49f06d
mov eax, 0x6187fe
push eax
push 1
mov ebx, 0x194
call fcn.00536830
add esp, 0x10
dec eax
jns 0x49f090
push 4
call fcn.0053559b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49f0a3
push 1
call fcn.0053559b
add esp, 4
add ebx, eax
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov byte [ebx], 0
mov ebx, dword [ebp - 0x14]
call fcn.0049d8c2
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x49f0cb
push 4
call fcn.0053559b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49f0de
push 1
call fcn.0053559b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x49f0f9
mov eax, 0x6187fe
push eax
push 1
mov ebx, 0x168
call fcn.005386e0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
test ebx, ebx
je 0x49f125
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.005383c0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x49f160
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
call fcn.0049d8c2
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x49f181
push 4
call fcn.0053559b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49f194
push 1
call fcn.0053559b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
push 0x104
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
push dword [ebx]
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x49f1c8
push 6
call fcn.0053559b
add esp, 4
mov ebx, dword [ebp - 0x18]
call fcn.0049d8c2
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x49f1e5
push 4
call fcn.0053559b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49f1f8
push 1
call fcn.0053559b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49f21c
push eax
mov ebx, eax
call fcn.0049d8e2
inc eax
push eax
call fcn.00535595
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
test ebx, ebx
je 0x49f22f
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x49efd9
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
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 0x49f4c1
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.Device_
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.0049f5ee
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x49f2a0
push ebx
call fcn.0053558f
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x49f2b4
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x618901
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0049f7f8
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x49f2f8
push ebx
call fcn.0053558f
add esp, 4
push dword [ebp - 0x34]
push str.Device_
mov ecx, 2
call fcn.0049d94d
add esp, 8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x49f320
push ebx
call fcn.0053558f
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x49f334
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
call fcn.0049d8c2
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x49f355
push 4
call fcn.0053559b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49f368
push 1
call fcn.0053559b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
push eax
push dword [ebp - 0x24]
call fcn.0049e165
add esp, 8
cmp eax, 0
jne 0x49f4b9
mov ebx, dword [ebp - 0x18]
call fcn.0049d8c2
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x49f3a7
push 4
call fcn.0053559b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49f3ba
push 1
call fcn.0053559b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x14]
call fcn.0049d8c2
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x49f3df
push 4
call fcn.0053559b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x49f3f2
push 1
call fcn.0053559b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.oleaut32.dll_SysReAllocString
push 0
push 0
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 0
push SysStringLen
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x49f433
mov eax, 0x618809
push eax
push SysStringLen
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x49f449
mov eax, 0x618809
push eax
push SysStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x49f45f
mov eax, 0x618809
push eax
push 6
mov ebx, 0x180
call fcn.00536980
add esp, 0x4c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x49f48b
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x49f4af
push eax
mov ebx, eax
call fcn.0049d8e2
inc eax
push eax
call fcn.00535595
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x49f4e7
pop eax
pop ebx
pop ecx
jmp 0x49f253
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x49f4e2
push eax
mov ebx, eax
call fcn.0049d8e2
inc eax
push eax
call fcn.00535595
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x49f4e7
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x49f4f8
push ebx
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x49f516
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x49f512
imul eax, dword [ebx]
jmp 0x49f507
mov ecx, eax
test ecx, ecx
je 0x49f535
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x49f52e
push ebx
push eax
call fcn.0053558f
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x49f51c
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x49f55b
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x49f557
imul eax, dword [ebx]
jmp 0x49f54c
mov ecx, eax
test ecx, ecx
je 0x49f57a
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x49f573
push ebx
push eax
call fcn.0053558f
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x49f561
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x49f5a0
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x49f59c
imul eax, dword [ebx]
jmp 0x49f591
mov ecx, eax
test ecx, ecx
je 0x49f5bf
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x49f5b8
push ebx
push eax
call fcn.0053558f
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x49f5a6
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x49f5d7
push ebx
call fcn.0053558f
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x49f5e7
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4