Function at 0x1020045
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0x248
mov eax, 0x1040cf5
call fcn.01001615
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x24c], ebx
call fcn.0101dfdf
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x1020312
mov eax, dword [0x10189ec]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10189f0]
mov dword [ebp - 0x14], eax
mov ax, word [ebp - 0x238]
push 0xa
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x10200ca
call fcn.0101dcda
mov esi, eax
cmp esi, edi
jl 0x10202eb
mov edx, 0x10189e0
lea eax, [ebp - 0x2c]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x10200f8
cmp cx, di
je 0x10200f4
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x10200f8
add eax, 4
add edx, 4
cmp cx, di
jne 0x10200d2
xor eax, eax
jmp 0x10200fd
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], ecx
push ebx
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 4], edi
call fcn.0101fef9
mov esi, eax
cmp esi, edi
jl 0x10202d9
push 0x100fe9c
lea ecx, [ebp - 0x238]
call fcn.01003bb9
mov esi, dword [ebp - 0x238]
neg esi
sbb esi, esi
mov ebx, 0x7ff8fff2
and esi, ebx
mov edi, 0x8007000e
add esi, edi
mov byte [ebp - 4], 1
js 0x102019f
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x238]
call fcn.0101db89
mov esi, dword [ebp - 0x238]
neg esi
sbb esi, esi
and esi, ebx
add esi, edi
js 0x102019f
push dword [ebp - 0x24c]
push dword [ebp - 0x254]
push dword [ebp - 0x238]
push dword [ebp - 0x248]
push dword [ebp - 0x244]
call fcn.0101fbc4
mov esi, eax
push dword [ebp - 0x238]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jl 0x10202d7
cmp dword [0x104d00c], 0x7d6
jl 0x10202d7
lea eax, [ebp - 0x234]
push eax
push 1
push 0
push 0x16
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jl 0x1020291
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x23c]
call fcn.01003bb9
mov esi, dword [ebp - 0x23c]
neg esi
sbb esi, esi
and esi, ebx
add esi, edi
mov byte [ebp - 4], 2
js 0x1020283
push 0x100fe9c
lea ecx, [ebp - 0x238]
call fcn.01003bb9
mov esi, dword [ebp - 0x238]
neg esi
sbb esi, esi
and esi, ebx
add esi, edi
mov byte [ebp - 4], 3
js 0x1020277
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x238]
call fcn.0101e1ae
mov esi, dword [ebp - 0x238]
neg esi
sbb esi, esi
and esi, ebx
add esi, edi
js 0x1020277
push dword [ebp - 0x24c]
push dword [ebp - 0x254]
push dword [ebp - 0x238]
push dword [ebp - 0x248]
push dword [ebp - 0x244]
call fcn.0101fbc4
mov esi, eax
push dword [ebp - 0x238]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x23c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10202d7
push 0
lea ecx, [ebp - 0x240]
call fcn.0101e28a
mov edi, dword [ebp - 0x24c]
push 0x7df
lea eax, [ebp - 0x240]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0100f6ba
mov eax, dword [edi]
push 0xffffffffffffffff
push dword [edi + 0xc]
mov ecx, edi
push 0x1020354
call dword [eax + 0x10]
lea ecx, [ebp - 0x240]
call fcn.0100e0c2
xor edi, edi
push dword [ebp - 0x250]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1020333
push edi
lea ecx, [ebp - 0x240]
call fcn.0101e28a
push 0x7e0
lea eax, [ebp - 0x240]
push eax
mov ecx, ebx
call fcn.0100f6ba
lea ecx, [ebp - 0x240]
jmp 0x102032e
push edi
lea ecx, [ebp - 0x18]
call fcn.0101e28a
push 0x7e1
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0100f6ba
lea ecx, [ebp - 0x18]
call fcn.0100e0c2
cmp esi, edi
jl 0x1020348
push dword [ebp - 0x248]
push dword [ebp - 0x244]
call fcn.01028ca5
mov eax, esi
call fcn.01001652
ret 0xc