Function at 0x4077c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69721f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x75f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x407c80
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
or edi, 0xffffffff
shr ecx, 2
xor eax, eax
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x10], ax
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x407b45
nop dword [eax]
cmp eax, 0x1a
jg 0x407baa
mov al, byte [eax + str.cdefghijklmnopqrstuvwxyz]
mov byte [ebp - 0x10], al
test cl, 1
je 0x407b2e
call fcn.0042a586
test eax, eax
je 0x407c8a
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.00402960
test al, al
jne 0x407896
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407880
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403730
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 0x4078b5
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4078cb
call fcn.0042a586
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407c80
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edx, eax
or ebx, 2
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], eax
lea esi, [edx + 0x10]
lea ebx, [eax + 2]
mov dword [ebp - 0x28], esi
test ebx, ebx
js 0x407c94
mov eax, dword [edx + 8]
mov ecx, 1
sub ecx, dword [edx + 0xc]
sub eax, ebx
or eax, ecx
jge 0x40790c
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403440
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407937
test esi, esi
jne 0x407929
call fcn.0063dccb
mov dword [eax], 0x16
call fcn.0063db6a
jmp 0x407934
push eax
push edi
push esi
call fcn.0062f5b0
add esp, 0xc
mov eax, dword [ebp - 0x20]
add eax, esi
jne 0x40794d
call fcn.0063dccb
mov dword [eax], 0x16
call fcn.0063db6a
jmp 0x407955
mov ecx, 0x5c3a
mov word [eax], cx
cmp ebx, dword [esi - 8]
jg 0x407c94
mov dword [esi - 0xc], ebx
push esi
mov byte [ebx + esi], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, dword [ebp - 0x14]
mov edi, eax
and ebx, 0xfffffffd
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407993
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 0x4079af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp edi, 3
jne 0x407b2b
call fcn.0042a586
test eax, eax
je 0x407c8a
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.00402960
test al, al
jne 0x407a06
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079f0
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00403730
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 0x407a25
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x407a3b
call fcn.0042a586
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407c80
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edx, eax
or ebx, 4
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], eax
lea esi, [edx + 0x10]
lea ebx, [eax + 2]
mov dword [ebp - 0x2c], esi
test ebx, ebx
js 0x407c94
mov eax, dword [edx + 8]
mov ecx, 1
sub ecx, dword [edx + 0xc]
sub eax, ebx
or eax, ecx
jge 0x407a7c
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403440
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407aa7
test esi, esi
jne 0x407a99
call fcn.0063dccb
mov dword [eax], 0x16
call fcn.0063db6a
jmp 0x407aa4
push eax
push edi
push esi
call fcn.0062f5b0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
add eax, esi
jne 0x407abd
call fcn.0063dccb
mov dword [eax], 0x16
call fcn.0063db6a
jmp 0x407ac5
mov ecx, 0x5c3a
mov word [eax], cx
cmp ebx, dword [esi - 8]
jg 0x407c94
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 0x407b0b
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 0x407b27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x407b59
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 0x407830
or edi, 0xffffffff
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x407c8a
jmp 0x407c1e
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 0x407c6c
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
call fcn.0042a586
test eax, eax
je 0x407c8a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x6c1027
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00402960
test al, al
jne 0x407be8
push 0
push 0x6c1027
mov ecx, esi
call fcn.00403730
mov edx, dword [ebp - 0x18]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x407c6c
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 0x6c1027
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00402960
test al, al
jne 0x407c4d
push 0
push 0x6c1027
mov ecx, esi
call fcn.00403730
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 0x407c6c
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.00402130
push 0x80004005
call fcn.00402130
push 0x80070057
call fcn.00402130
int3