Function at 0x1007b0a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.100bca80
mov eax, dword [0x101d7380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x102b35f0]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x102b0650]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
jg 0x1007b66e
mov eax, dword [0x102b0660]
cmp eax, dword [esi + 4]
jg 0x1007b6c2
mov eax, dword [0x102b0670]
cmp eax, dword [esi + 4]
jg 0x1007b716
test ebx, ebx
je 0x1007b10c
mov dword [ebx], 0x102b0654
test edi, edi
je 0x1007b116
mov dword [edi], 0x102b0674
cmp byte [0x102b0642], 0
je 0x1007b129
cmp byte [ebp + 0x10], 0
je 0x1007b658
mov eax, dword [0x102b064c]
mov byte [0x102b0642], 1
test eax, eax
je 0x1007b160
push eax
mov dword [0x102b0648], 0
mov dword [0x102b0644], 0
call fcn.1008cda0
add esp, 4
mov dword [0x102b064c], 0
mov eax, dword [0x102b065c]
test eax, eax
je 0x1007b190
push eax
mov dword [0x102b0658], 0
mov dword [0x102b0654], 0
call fcn.1008cda0
add esp, 4
mov dword [0x102b065c], 0
push 0xffc
lea eax, [ebp - 0x120c]
mov dword [ebp - 0x1210], 0x2f3a43
push 0
push eax
call fcn.100be650
add esp, 0xc
cmp byte [ebp - 0x1210], 0x5a
jg 0x1007b230
nop dword [eax]
lea eax, [ebp - 0x1240]
push eax
lea eax, [ebp - 0x1210]
push eax
call fcn.100cde1b
add esp, 8
cmp eax, 0xffffffff
je 0x1007b21e
mov eax, dword [ebp - 0x123a]
and eax, 0xf000
cmp eax, 0x4000
jne 0x1007b21e
mov esi, dword [0x102b0664]
mov ecx, 0x102b0664
lea eax, [esi + 1]
push eax
call fcn.1007c700
shl esi, 0xc
lea ecx, [ebp - 0x1210]
add esi, dword [0x102b066c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x1007b210
mov al, byte [ebp - 0x1210]
inc al
mov byte [ebp - 0x1210], al
cmp al, 0x5a
jle 0x1007b1c0
mov eax, dword [0x102b0664]
lea esi, [eax + 7]
cmp esi, dword [0x102b0648]
jle 0x1007b289
mov eax, esi
shl eax, 0xc
push eax
call fcn.1008cd70
mov edi, eax
add esp, 4
mov eax, dword [0x102b064c]
test eax, eax
je 0x1007b278
mov ecx, dword [0x102b0644]
shl ecx, 0xc
push ecx
push eax
push edi
call fcn.100be0d0
push dword [0x102b064c]
call fcn.1008cda0
add esp, 0x10
mov eax, dword [0x102b0664]
mov dword [0x102b064c], edi
mov dword [0x102b0648], esi
lea esi, [eax + 7]
cmp esi, dword [0x102b0658]
jle 0x1007b2da
imul eax, esi, 0x410
push eax
call fcn.1008cd70
mov edi, eax
add esp, 4
mov eax, dword [0x102b065c]
test eax, eax
je 0x1007b2ce
imul ecx, dword [0x102b0654], 0x410
push ecx
push eax
push edi
call fcn.100be0d0
push dword [0x102b065c]
call fcn.1008cda0
add esp, 0x10
mov dword [0x102b065c], edi
mov dword [0x102b0658], esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
mov dword [ebp - 0x1244], ebx
nop dword [eax + eax]
xor eax, eax
mov word [ebp - 0x210], ax
mov dword [ebp - 0x1248], eax
lea eax, [ebp - 0x1248]
push eax
push dword [ebx + 0x101036dc]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x1007b4d2
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x1248]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ebx, eax
mov dword [ebp - 0x124c], 0
lea eax, [ebp - 0x124c]
shr ebx, 0x1f
push eax
xor bl, 1
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, 0x80004005
je 0x1007b378
mov ecx, dword [ebp - 0x124c]
test ecx, ecx
je 0x1007b378
push dword [ebp - 0x1248]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - 0x124c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1007b386
push dword [ebp - 0x1248]
call fcn.100c4eec
add esp, 4
test bl, bl
je 0x1007b4cc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov byte [0x102b0678], 0
push eax
push 0
push 0xfde9
call esi
push 0
push 0
push eax
push 0x102b0678
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push 0
push 0xfde9
call esi
mov esi, dword [0x102b0644]
mov ecx, 0x102b0644
lea eax, [esi + 1]
push eax
call fcn.1007c700
shl esi, 0xc
mov ecx, 0x102b0678
add esi, dword [0x102b064c]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x1007b3f0
mov ebx, dword [ebp - 0x1244]
mov edi, dword [0x102b0654]
mov ecx, dword [0x102b0658]
mov eax, dword [ebx + 0x101d6d18]
mov dword [ebp - 0x1244], eax
cmp edi, ecx
jne 0x1007b48c
lea esi, [edi + 1]
test ecx, ecx
je 0x1007b432
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1007b437
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1007b48c
imul eax, esi, 0x410
push eax
call fcn.1008cd70
mov edi, eax
add esp, 4
mov eax, dword [0x102b065c]
test eax, eax
je 0x1007b47a
imul ecx, dword [0x102b0654], 0x410
push ecx
push eax
push edi
call fcn.100be0d0
push dword [0x102b065c]
call fcn.1008cda0
add esp, 0x10
mov dword [0x102b065c], edi
mov edi, dword [0x102b0654]
mov dword [0x102b0658], esi
lea eax, [edi + 1]
mov ecx, 0x102b0654
push eax
call fcn.1007c780
mov eax, dword [ebp - 0x1244]
mov ecx, 0x101036c8
test eax, eax
cmovne ecx, eax
imul edx, edi, 0x410
add edx, dword [0x102b065c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x1007b4b6
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1007b4db
mov ebx, dword [ebp - 0x1244]
xor eax, eax
mov word [ebp - 0x210], ax
add ebx, 4
mov dword [ebp - 0x1244], ebx
cmp ebx, 0x1c
jl 0x1007b2f0
mov eax, dword [0x102b0664]
mov esi, dword [0x102b0644]
mov dword [0x102b0674], esi
mov dword [ebp - 0x1244], eax
test eax, eax
jle 0x1007b658
xor ebx, ebx
nop
mov edi, dword [0x102b066c]
lea eax, [esi + 1]
push eax
mov ecx, 0x102b0644
call fcn.1007c700
add edi, ebx
mov ecx, 0x101036c8
cmovne ecx, edi
shl esi, 0xc
add esi, dword [0x102b064c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x1007b537
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007b550
sub ecx, edx
mov esi, edi
neg esi
sbb esi, esi
lea eax, [ecx - 1]
and esi, eax
jge 0x1007b579
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1007b570
sub esi, ecx
test esi, esi
jle 0x1007b58c
push esi
push edi
push 0x102b1678
call fcn.100cc7a0
add esp, 0xc
mov edi, dword [0x102b0654]
mov ecx, dword [0x102b0658]
mov byte [esi + 0x102b1678], 0
cmp edi, ecx
jne 0x1007b60f
lea esi, [edi + 1]
test ecx, ecx
je 0x1007b5b5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1007b5ba
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1007b60f
imul eax, esi, 0x410
push eax
call fcn.1008cd70
mov edi, eax
add esp, 4
mov eax, dword [0x102b065c]
test eax, eax
je 0x1007b5fd
imul ecx, dword [0x102b0654], 0x410
push ecx
push eax
push edi
call fcn.100be0d0
push dword [0x102b065c]
call fcn.1008cda0
add esp, 0x10
mov dword [0x102b065c], edi
mov edi, dword [0x102b0654]
mov dword [0x102b0658], esi
lea eax, [edi + 1]
mov ecx, 0x102b0654
push eax
call fcn.1007c780
imul ecx, edi, 0x410
mov edx, 0x102b1678
add ecx, dword [0x102b065c]
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1007b630
add ebx, 0x1000
sub dword [ebp - 0x1244], 1
je 0x1007b658
mov esi, dword [0x102b0644]
jmp 0x1007b510
mov ecx, dword [ebp - 4]
mov eax, 0x102b0644
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bca5b
mov esp, ebp
pop ebp
ret
push 0x102b0650
call fcn.100bcb27
add esp, 4
cmp dword [0x102b0650], 0xffffffff
jne 0x1007b0e0
push 0x100ee050
mov dword [0x102b0648], 0
mov dword [0x102b0644], 0
mov dword [0x102b064c], 0
call fcn.100bca46
push 0x102b0650
call fcn.100bcad6
add esp, 8
jmp 0x1007b0e0
push 0x102b0660
call fcn.100bcb27
add esp, 4
cmp dword [0x102b0660], 0xffffffff
jne 0x1007b0f1
push 0x100edf10
mov dword [0x102b0658], 0
mov dword [0x102b0654], 0
mov dword [0x102b065c], 0
call fcn.100bca46
push 0x102b0660
call fcn.100bcad6
add esp, 8
jmp 0x1007b0f1
push 0x102b0670
call fcn.100bcb27
add esp, 4
cmp dword [0x102b0670], 0xffffffff
jne 0x1007b102
push 0x100ee000
mov dword [0x102b0668], 0
mov dword [0x102b0664], 0
mov dword [0x102b066c], 0
call fcn.100bca46
push 0x102b0670
call fcn.100bcad6
add esp, 8
jmp 0x1007b102