Function at 0x4bb860
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 0x592d35
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 0x4bb8b2
xor al, al
jmp 0x4bba96
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 0x4bb8d2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00425790
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.004f5d20
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.004fb480
test al, al
je 0x4bb99a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004fb050
lea ecx, [ebp - 0x1c]
call fcn.0042b890
test eax, eax
je 0x4bb99a
lea ecx, [ebp - 0x1c]
call fcn.0043d400
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0042b890
cmp esi, eax
jne 0x4bb997
mov ecx, edi
call fcn.004b13a0
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 0x4bba5b
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 0x4bb9fd
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 0x4bb9da
mov byte [ebp - 0x55], 0
jmp 0x4bba5f
mov ecx, edi
call fcn.004b13a0
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 0x4bba5b
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 0x4bba17
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00425790
mov ecx, edi
call fcn.004b13a0
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.00425730
mov byte [ebp - 0x55], 1
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4bba8b
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4bba8b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
lock xadd dword [esi + 8], edi
dec edi
jne 0x4bba8b
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
lea ecx, [ebp - 0x40]
call fcn.00425730
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.00553cca
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc