Function at 0x4077a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660abf
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x714f78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x407c5b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, eax
lea edi, [ebx - 1]
mov eax, ebx
and ecx, 0xfffffffc
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x10], ax
mov dword [ebp - 0x30], eax
je 0x407b77
nop word [eax + eax]
cmp eax, 0x1a
jg 0x407b88
mov al, byte [eax + str.cdefghijklmnopqrstuvwxyz]
mov byte [ebp - 0x10], al
test cl, 1
je 0x407b63
call fcn.00423a0b
test eax, eax
je 0x407c65
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402ad0
test al, al
jne 0x407876
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407860
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408790
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi - 0x10]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x407895
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4078ab
call fcn.00423a0b
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407c5b
mov eax, dword [ecx]
call dword [eax + 0xc]
or ebx, 2
mov dword [ebp - 0x14], ebx
lea esi, [eax + 0x10]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], eax
lea ebx, [eax + 2]
test ebx, ebx
js 0x407c6f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4078ea
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403540
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407915
test esi, esi
jne 0x407907
call fcn.00611ea9
mov dword [eax], 0x16
call fcn.00611d82
jmp 0x407912
push eax
push edi
push esi
call fcn.00605330
add esp, 0xc
mov eax, dword [ebp - 0x20]
add eax, esi
jne 0x40792b
call fcn.00611ea9
mov dword [eax], 0x16
call fcn.00611d82
jmp 0x407933
mov ecx, 0x5c3a
mov word [eax], cx
cmp ebx, dword [esi - 8]
jg 0x407c6f
mov dword [esi - 0xc], ebx
push esi
mov byte [ebx + esi], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
sete bl
and dword [ebp - 0x14], 0xfffffffd
or edi, 0xffffffff
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407972
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
mov eax, edi
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40798d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x407b58
call fcn.00423a0b
test eax, eax
je 0x407c65
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x20]
call fcn.00402ad0
test al, al
jne 0x4079e6
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079d0
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00408790
mov edi, dword [ebp - 0x20]
mov ecx, dword [edi - 0x10]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 7
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x407a05
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x407a1b
call fcn.00423a0b
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407c5b
mov eax, dword [ecx]
call dword [eax + 0xc]
or dword [ebp - 0x14], 4
lea esi, [eax + 0x10]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], eax
lea ebx, [eax + 2]
test ebx, ebx
js 0x407c6f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x407a58
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403540
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407a83
test esi, esi
jne 0x407a75
call fcn.00611ea9
mov dword [eax], 0x16
call fcn.00611d82
jmp 0x407a80
push eax
push edi
push esi
call fcn.00605330
add esp, 0xc
mov eax, dword [ebp - 0x1c]
add eax, esi
jne 0x407a99
call fcn.00611ea9
mov dword [eax], 0x16
call fcn.00611d82
jmp 0x407aa1
mov ecx, 0x5c3a
mov word [eax], cx
cmp ebx, dword [esi - 8]
jg 0x407c6f
lea eax, [ebp - 0x18]
mov dword [esi - 0xc], ebx
push eax
push 0
push esi
mov byte [ebx + esi], 0
call fcn.00407160
mov ebx, dword [ebp - 0x14]
add esp, 0xc
and ebx, 0xfffffffb
mov byte [ebp - 4], 6
mov edi, eax
mov dword [ebp - 0x14], ebx
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407ae7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407b03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x407b5d
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.00407710
mov esi, dword [ebp + 8]
add eax, 0x10
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407c47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
jmp 0x407b60
or edi, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
shr ecx, 1
inc eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], eax
test ecx, ecx
jne 0x407810
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x407c65
jmp 0x407bf9
call fcn.00423a0b
test eax, eax
je 0x407c65
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x686f7f
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00402ad0
test al, al
jne 0x407bc6
push 0
push 0x686f7f
mov ecx, esi
call fcn.00408790
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x407c47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x686f7f
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00402ad0
test al, al
jne 0x407c28
push 0
push 0x686f7f
mov ecx, esi
call fcn.00408790
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x407c47
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004020e0
push 0x80004005
call fcn.004020e0
push 0x80070057
call fcn.004020e0
int3