Function at 0x407790
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66087f
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.004237e3
mov ecx, eax
test ecx, ecx
je 0x407c4b
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 0x407b67
nop word [eax + eax]
cmp eax, 0x1a
jg 0x407b78
mov al, byte [eax + str.cdefghijklmnopqrstuvwxyz]
mov byte [ebp - 0x10], al
test cl, 1
je 0x407b53
call fcn.004237e3
test eax, eax
je 0x407c55
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.00402920
test al, al
jne 0x407866
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407850
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408780
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 0x407885
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x40789b
call fcn.004237e3
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407c4b
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 0x407c5f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4078da
push ebx
lea ecx, [ebp - 0x28]
call fcn.004033e0
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407905
test esi, esi
jne 0x4078f7
call fcn.00611c89
mov dword [eax], 0x16
call fcn.00611b62
jmp 0x407902
push eax
push edi
push esi
call fcn.00605160
add esp, 0xc
mov eax, dword [ebp - 0x20]
add eax, esi
jne 0x40791b
call fcn.00611c89
mov dword [eax], 0x16
call fcn.00611b62
jmp 0x407923
mov ecx, 0x5c3a
mov word [eax], cx
cmp ebx, dword [esi - 8]
jg 0x407c5f
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 0x407962
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 0x40797d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x407b48
call fcn.004237e3
test eax, eax
je 0x407c55
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.00402920
test al, al
jne 0x4079d6
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079c0
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00408780
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 0x4079f5
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x407a0b
call fcn.004237e3
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407c4b
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 0x407c5f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x407a48
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004033e0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407a73
test esi, esi
jne 0x407a65
call fcn.00611c89
mov dword [eax], 0x16
call fcn.00611b62
jmp 0x407a70
push eax
push edi
push esi
call fcn.00605160
add esp, 0xc
mov eax, dword [ebp - 0x1c]
add eax, esi
jne 0x407a89
call fcn.00611c89
mov dword [eax], 0x16
call fcn.00611b62
jmp 0x407a91
mov ecx, 0x5c3a
mov word [eax], cx
cmp ebx, dword [esi - 8]
jg 0x407c5f
lea eax, [ebp - 0x18]
mov dword [esi - 0xc], ebx
push eax
push 0
push esi
mov byte [ebx + esi], 0
call fcn.00407150
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 0x407ad7
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 0x407af3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x407b4d
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.00407700
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 0x407c37
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 0x407b50
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 0x407800
call fcn.004237e3
mov ecx, eax
test ecx, ecx
je 0x407c55
jmp 0x407be9
call fcn.004237e3
test eax, eax
je 0x407c55
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.00402920
test al, al
jne 0x407bb6
push 0
push 0x686f7f
mov ecx, esi
call fcn.00408780
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 0x407c37
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.00402920
test al, al
jne 0x407c18
push 0
push 0x686f7f
mov ecx, esi
call fcn.00408780
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 0x407c37
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