Function at 0x4bb950
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5931f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x54], esi
test esi, esi
jne 0x4bb9a2
xor al, al
jmp 0x4bbb86
mov ecx, esi
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bb9c2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00425810
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
sub esp, 8
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004f5e30
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.004fb590
test al, al
je 0x4bba8a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004fb160
lea ecx, [ebp - 0x1c]
call fcn.0042b930
test eax, eax
je 0x4bba8a
lea ecx, [ebp - 0x1c]
call fcn.0043d490
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0042b930
cmp esi, eax
jne 0x4bba87
mov ecx, edi
call fcn.004b1490
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [edi + 4], 1
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
jmp 0x4bbb4b
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x4bbaed
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push 0
push dword [ebx + 0xc]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov esi, dword [ebp - 0x54]
test esi, esi
jne 0x4bbaca
mov byte [ebp - 0x55], 0
jmp 0x4bbb4f
mov ecx, edi
call fcn.004b1490
push esi
mov dword [edi + 4], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp - 0x54]
mov dword [edi + 8], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4bbb4b
mov ecx, esi
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bbb07
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00425810
mov ecx, edi
call fcn.004b1490
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov dword [edi + 4], 1
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x70]
mov dword [edi + 8], eax
call fcn.004257b0
mov byte [ebp - 0x55], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4bbb7b
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4bbb7b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
lock xadd dword [esi + 8], edi
dec edi
jne 0x4bbb7b
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
lea ecx, [ebp - 0x40]
call fcn.004257b0
mov al, byte [ebp - 0x55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc