Function at 0x407d87
Capabilities:
Get common file path
Get disk information
Get disk size

Disassembly:
push 0x110
mov eax, 0x450c2b
call fcn.0044d453
mov eax, dword [ebp + 8]
and dword [ebp - 0xec], 0
mov dword [ebp - 0x100], eax
mov eax, dword [section..data]
mov ebx, section..data
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xe4], edi
and dword [ebp - 4], 0
mov eax, dword [edi - 8]
xor ecx, ecx
inc ecx
sub ecx, dword [edi - 4]
mov esi, 0x208
sub eax, esi
or eax, ecx
jge 0x407de9
mov eax, esi
lea ecx, [ebp - 0xe4]
call fcn.00402a6b
mov edi, dword [ebp - 0xe4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea esi, [ebp - 0xe4]
call fcn.00408697
push 3
pop ecx
cmp dword [edi - 0xc], ecx
jl 0x407e34
lea edx, [ebp - 0xe8]
mov eax, esi
call fcn.004082aa
mov edi, esi
mov byte [ebp - 4], 1
call fcn.004081c8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xe8]
add eax, 0xfffffff0
call fcn.00402c12
mov edi, dword [ebp - 0xe4]
mov eax, dword [section..data]
mov ecx, ebx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0xe8], ebx
push 0x64
xor esi, esi
lea eax, [ebp - 0xdc]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.00438e30
add esp, 0xc
lea eax, [ebp - 0xdc]
push eax
push 0x64
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0xdc], 0
lea esi, [ebp - 0xdc]
je 0x407faa
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ebx, ebx
cmp eax, 3
jne 0x407f4e
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0xfc]
push eax
push esi
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
lea eax, [ebp - 0xe4]
push eax
call fcn.00402785
test eax, eax
jne 0x407f17
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x108], eax
jmp 0x407f4e
mov ecx, dword [ebp - 0xf8]
cmp dword [ebp - 0xf0], ecx
jg 0x407f4e
mov eax, dword [ebp - 0xfc]
jl 0x407f35
cmp dword [ebp - 0xf4], eax
jae 0x407f4e
mov dword [ebp - 0xf4], eax
push esi
lea eax, [ebp - 0xe8]
push eax
mov dword [ebp - 0xf0], ecx
call fcn.00402b88
push esi
call fcn.004398c1
lea esi, [esi + eax*2 + 2]
pop ecx
cmp word [esi], bx
jne 0x407e9a
cmp dword [ebp - 0xf0], 2
jg 0x407fa4
mov eax, connect
jl 0x407f7a
cmp dword [ebp - 0xf4], eax
jae 0x407fa4
cmp dword [ebp - 0x108], 2
jl 0x407fa4
jg 0x407f8d
cmp dword [ebp - 0x10c], eax
jbe 0x407fa4
lea eax, [ebp - 0xe4]
lea edi, [ebp - 0xe8]
call fcn.004081c8
mov edi, dword [ebp - 0xe4]
mov ebx, dword [ebp - 0xe8]
lea esi, [ebp - 0x104]
call fcn.004198a0
mov byte [ebp - 4], 3
cmp dword [ebx - 0xc], 0
je 0x408017
push 2
pop ecx
lea edx, [ebp - 0xf0]
mov eax, esi
call fcn.004082aa
mov esi, eax
push 2
mov byte [ebp - 4], 4
pop ecx
lea edx, [ebp - 0xf8]
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xec], 1
call fcn.004082aa
mov dword [ebp - 4], 5
push dword [esi]
mov dword [ebp - 0xec], 3
push eax
call fcn.00402785
mov byte [ebp - 0xdd], 0
test eax, eax
jne 0x40801e
mov byte [ebp - 0xdd], 1
test byte [ebp - 0xec], 2
je 0x40803c
mov eax, dword [ebp - 0xf8]
and dword [ebp - 0xec], 0xfffffffd
add eax, 0xfffffff0
call fcn.00402c12
mov dword [ebp - 4], 3
test byte [ebp - 0xec], 1
je 0x40805a
mov eax, dword [ebp - 0xf0]
add eax, 0xfffffff0
call fcn.00402c12
cmp byte [ebp - 0xdd], 0
je 0x408090
mov esi, dword [ebp - 0x100]
call fcn.004198a0
mov eax, dword [ebp - 0x104]
add eax, 0xfffffff0
call fcn.00402c12
lea eax, [ebx - 0x10]
call fcn.00402c12
lea eax, [edi - 0x10]
call fcn.00402c12
mov eax, esi
jmp 0x4080c8
mov edx, dword [ebp - 0x100]
push 2
pop ecx
lea eax, [ebp - 0xe8]
call fcn.004082aa
mov eax, dword [ebp - 0x104]
add eax, 0xfffffff0
call fcn.00402c12
lea eax, [ebx - 0x10]
call fcn.00402c12
lea eax, [edi - 0x10]
call fcn.00402c12
mov eax, dword [ebp - 0x100]
call fcn.0044d4d6
ret 4