Function at 0x4132ea
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.004327e2
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x466391
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.004327e2
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x466391
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.004327e2
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x466391
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, 0x466391
test eax, eax
je 0x41337d
add eax, 8
push eax
push 0
xor eax, eax
call dword [0x9cd777]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x41339f
push 6
call fcn.004327d6
add esp, 4
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.00433b60
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4133d5
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], esp
mov eax, dword [ebp - 8]
test eax, eax
je 0x4133e6
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [0x9cd777]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x413406
push 6
call fcn.004327d6
add esp, 4
push 0
push 0
push 0
push reloc.WSOCK32.dll_getpeername
push 0
push 0x46658c
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41342b
mov eax, 0x466391
push eax
push 3
mov ebx, 0x1c4
call fcn.00435540
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 0x413463
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x41345f
imul eax, dword [ebx]
jmp 0x413454
mov ecx, eax
test ecx, ecx
je 0x413482
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x41347b
push ebx
push eax
call fcn.004327ee
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x413469
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.0040422b
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x4663d9]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.00402ea1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x413ae1
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x4134dc
push 0xa
call fcn.004327d6
add esp, 4
mov dword [ebp - 0x28], eax
lea ebx, [ebp - 0x2c]
call fcn.004010c7
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.004327e2
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.004010c7
pop edx
test ecx, ecx
je 0x413538
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41352e
push ebx
call fcn.004327ee
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x41351d
pop edx
pop edi
test edx, edx
je 0x413546
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x14]
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x413571
push 0xa
call fcn.004327d6
add esp, 4
mov dword [ebp - 0x28], eax
lea ebx, [ebp - 0x2c]
call fcn.004010c7
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.004327e2
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.004010c7
pop edx
test ecx, ecx
je 0x4135cd
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4135c3
push ebx
call fcn.004327ee
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x4135b2
pop edx
pop edi
test edx, edx
je 0x4135db
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x18]
call fcn.004327ee
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 0x41385a
mov ebx, dword [ebp - 0xc]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x413621
push 4
call fcn.004327d6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x413634
push 1
call fcn.004327d6
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 0x413658
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004327e2
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 0x413669
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.004010c7
push ebx
push ecx
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41368a
mov eax, 0x466391
push eax
push 1
mov ebx, 0x194
call fcn.00433d90
add esp, 0x10
dec eax
jns 0x4136ad
push 4
call fcn.004327d6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4136c0
push 1
call fcn.004327d6
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.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4136e8
push 4
call fcn.004327d6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4136fb
push 1
call fcn.004327d6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x413716
mov eax, 0x466391
push eax
push 1
mov ebx, 0x168
call fcn.00433e70
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 0x413742
push ebx
call fcn.004327ee
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.00434230
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41377d
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x41379e
push 4
call fcn.004327d6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4137b1
push 1
call fcn.004327d6
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]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4137e5
push 6
call fcn.004327d6
add esp, 4
mov ebx, dword [ebp - 0x18]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x413802
push 4
call fcn.004327d6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x413815
push 1
call fcn.004327d6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x413839
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.004327e2
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 0x41384c
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x4135f6
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 0x413ade
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x772d2c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.00413c0b
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4138bd
push ebx
call fcn.004327ee
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4138d1
push ebx
call fcn.004327ee
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, 0x466300
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00413e15
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x413915
push ebx
call fcn.004327ee
add esp, 4
push dword [ebp - 0x34]
push 0x772d2c
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x41393d
push ebx
call fcn.004327ee
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x413951
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x413972
push 4
call fcn.004327d6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x413985
push 1
call fcn.004327d6
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.004010e7
add esp, 8
cmp eax, 0
jne 0x413ad6
mov ebx, dword [ebp - 0x18]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4139c4
push 4
call fcn.004327d6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4139d7
push 1
call fcn.004327d6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x14]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4139fc
push 4
call fcn.004327d6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x413a0f
push 1
call fcn.004327d6
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 reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x413a50
mov eax, 0x466304
push eax
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x413a66
mov eax, 0x466304
push eax
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x413a7c
mov eax, 0x466304
push eax
push 6
mov ebx, 0x180
call fcn.004351c0
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 0x413aa8
push ebx
call fcn.004327ee
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 0x413acc
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.004327e2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x413b04
pop eax
pop ebx
pop ecx
jmp 0x413870
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x413aff
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.004327e2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x413b04
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x413b15
push ebx
call fcn.004327ee
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x413b33
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x413b2f
imul eax, dword [ebx]
jmp 0x413b24
mov ecx, eax
test ecx, ecx
je 0x413b52
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x413b4b
push ebx
push eax
call fcn.004327ee
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x413b39
call fcn.004327ee
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x413b78
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x413b74
imul eax, dword [ebx]
jmp 0x413b69
mov ecx, eax
test ecx, ecx
je 0x413b97
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x413b90
push ebx
push eax
call fcn.004327ee
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x413b7e
call fcn.004327ee
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x413bbd
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x413bb9
imul eax, dword [ebx]
jmp 0x413bae
mov ecx, eax
test ecx, ecx
je 0x413bdc
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x413bd5
push ebx
push eax
call fcn.004327ee
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x413bc3
call fcn.004327ee
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x413bf4
push ebx
call fcn.004327ee
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x413c04
push ebx
call fcn.004327ee
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4