Function at 0x100518d0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x100a05af
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov edi, dword [ebp + 0xd4]
mov eax, dword [ebp + 0xdc]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.10040870
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.1003aaa0
test eax, eax
je 0x10051f53
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x10051ac8
push 0x3f
push eax
call fcn.10078003
mov esi, eax
add esp, 8
test esi, esi
je 0x10051ac8
sub esi, dword [edi]
sar esi, 1
test esi, esi
jle 0x10051ac8
push esi
push 0
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.10040470
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x10051a05
cmp dword [edi + 0xc], 0
jl 0x100519f9
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x100519f9
call fcn.10040870
mov dword [ebp - 0x20], eax
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100519f1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x10051a05
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.1003f950
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051a23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x14]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.10040470
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x30]
add esi, 0xfffffff0
mov dword [ebp - 0x1c], 2
lea edx, [eax - 0x10]
mov dword [ebp - 0x14], edx
cmp edx, esi
je 0x10051a9c
cmp dword [esi + 0xc], 0
jl 0x10051a90
mov edx, dword [edx]
cmp edx, dword [esi]
jne 0x10051a90
mov ecx, dword [ebp - 0x14]
call fcn.10040870
mov dword [ebp - 0x14], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051a88
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x30], eax
jmp 0x10051a9c
push dword [eax - 0xc]
lea ecx, [ebp - 0x30]
push eax
call fcn.1003f950
mov esi, 2
mov dword [ebp - 0x1c], esi
and esi, 0xfffffffd
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051ac8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5c
push dword [ebp - 0x18]
call fcn.100780b3
mov ecx, dword [ebp - 0x18]
add esp, 8
test eax, eax
je 0x10051ae6
sub eax, ecx
sar eax, 1
jns 0x10051b9a
mov esi, 0x100c8b1c
nop dword [eax + eax]
movzx eax, word [esi]
push eax
push ecx
call fcn.100780b3
mov ecx, dword [ebp - 0x18]
add esp, 8
test eax, eax
je 0x10051b0e
sub eax, ecx
sar eax, 1
jns 0x10051b9a
add esi, 2
cmp esi, 0x100c8b22
jl 0x10051af0
mov byte [ebp - 4], 9
lea eax, [ebp]
or dword [ebp - 0x1c], 1
push eax
push 0x64
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
xor esi, esi
lea ebx, [ebp]
lea ebx, [ebx + esi*2]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10051c6c
call fcn.1003aaa0
test eax, eax
je 0x10051f53
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10]
push ebx
call fcn.1003f670
test al, al
jne 0x10051c3d
test ebx, ebx
jne 0x10051c1f
xor ecx, ecx
jmp 0x10051c33
push edi
lea ecx, [ebp - 0x2c]
call fcn.10040300
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0x10
mov ebx, dword [ebp + 0xd8]
test bl, bl
je 0x10051bd7
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x34]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov byte [ebp - 0x34], cl
mov eax, dword [ebp - 0x28]
xor esi, esi
mov edi, eax
test edi, edi
jle 0x10051eba
test esi, esi
js 0x10051f5d
cmp esi, eax
jge 0x10051f5d
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
push ebx
lea eax, [eax + esi*4]
push eax
call fcn.10051f70
test eax, eax
je 0x10051df8
inc esi
cmp esi, edi
jge 0x10051eba
mov eax, dword [ebp - 0x28]
jmp 0x10051be6
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10051c24
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.1003f950
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
call fcn.10040300
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051c6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, edi
jae 0x10051c7d
cmp word [ebp + esi*2], 0
je 0x10051c7d
inc esi
cmp esi, edi
jb 0x10051c70
inc esi
cmp esi, edi
jb 0x10051b46
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x40]
cmp esi, eax
je 0x10051cb4
lea ecx, [ebp - 0x2c]
call fcn.10040260
push 4
push dword [ebp - 0x40]
call fcn.1007c4f0
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
mov eax, dword [ebp - 0x40]
je 0x10051cc9
mov dword [ebp - 0x24], eax
jmp 0x10051cc9
test esi, esi
jle 0x10051cc9
dec esi
lea ecx, [ebp - 0x2c]
push esi
call fcn.10055510
test esi, esi
jg 0x10051cb8
mov eax, dword [ebp - 0x40]
xor esi, esi
test eax, eax
jle 0x10051cf7
nop
test esi, esi
js 0x10051f5d
cmp esi, eax
jge 0x10051f5d
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
lea eax, [eax + esi*4]
push eax
call fcn.10040300
mov eax, dword [ebp - 0x40]
inc esi
cmp esi, eax
jl 0x10051cd0
and dword [ebp - 0x1c], 0xfffffffe
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.10040260
mov eax, dword [ebp - 0x28]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x48], ecx
test ecx, ecx
jle 0x10051ba3
nop dword [eax]
test esi, esi
js 0x10051f5d
cmp esi, eax
jge 0x10051f5d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + esi*4]
sub ecx, 0x10
call fcn.10040870
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x18]
push dword [eax - 0xc]
push eax
call fcn.1003f390
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.1003f390
cmp esi, dword [ebp - 0x28]
jge 0x10051f5d
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + esi*4]
lea edx, [eax + esi*4]
mov eax, dword [ebp - 0x10]
sub edi, 0x10
mov dword [ebp - 0x20], edx
lea ebx, [eax - 0x10]
cmp ebx, edi
je 0x10051dcd
cmp dword [edi + 0xc], 0
jl 0x10051dc2
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x10051dc2
mov ecx, ebx
call fcn.10040870
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051db8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
jmp 0x10051dcd
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.1003f950
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10051de6
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x48]
jge 0x10051ba3
mov eax, dword [ebp - 0x28]
jmp 0x10051d20
call fcn.10055620
cmp byte [eax + 0x1c], 0
je 0x10051eb6
call fcn.10055620
mov esi, eax
call fcn.1003aaa0
test eax, eax
je 0x10051f53
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x10]
push 0xf
push str.File_was_found.
call fcn.1003f390
call fcn.1003aaa0
test eax, eax
je 0x10051f53
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x20]
push 0
push 0x100c62fc
call fcn.1003f390
push ecx
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
sub esp, 8
call fcn.10055700
mov byte [ebp - 4], 0x13
or ebx, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051e98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051eb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x10051ebf
mov esi, 1
mov byte [ebp - 4], 4
cmp byte [ebp - 0x34], 0
je 0x10051ee0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x34]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x34], cl
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051f01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10051f1d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10040260
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.1007685e
lea esp, [ebp + 0xcc]
pop ebp
ret 0xc
push 0x80004005
call fcn.100374f0
push 0x8000000b
call fcn.100374f0
int3