Function at 0x4b3bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535f8f
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x460], ebx
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x464], ecx
mov ecx, 0x58c214
mov dword [ebp - 0x468], esi
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x45c], edi
mov dword [ebp - 4], 2
cmp byte [ebp + 0xc], bl
je 0x4b3de6
push 0x11
xor eax, eax
push str.PathToProgramData
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], ax
call fcn.004069f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x458]
push ecx
mov ecx, dword [ebp - 0x464]
mov edx, dword [ecx + 0xc]
push edx
lea eax, [ebp - 0x43c]
push eax
call fcn.004b39d0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x444], 8
jb 0x4b3ca5
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.004efd7c
add esp, 4
mov eax, dword [ebp - 0x42c]
push ebx
push 0x53d168
push eax
xor edx, edx
push ebx
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], dx
call fcn.00425f00
test eax, eax
jne 0x4b3d72
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea eax, [ebp - 0x218]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b3d10
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004069f0
mov dword [ebp - 0x460], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x428], 8
jb 0x4b3d54
mov ecx, dword [ebp - 0x43c]
push ecx
call fcn.004efd7c
add esp, 4
xor edx, edx
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], dx
jmp 0x4b3e73
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x43c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00420880
mov dword [ebp - 0x460], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x428], 8
jb 0x4b3db5
mov eax, dword [ebp - 0x43c]
push eax
call fcn.004efd7c
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], cx
mov dword [ebp - 4], ebx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4b3e86
push 1
push 0x1a
lea ecx, [ebp - 0x420]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4b3e22
push 0x5414c0
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x45c]
push str._s_s
push eax
call fcn.00401f60
mov edi, dword [ebp - 0x45c]
add esp, 0x10
cmp dword [edi - 4], 1
jle 0x4b3e3d
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x45c]
call fcn.00401820
mov edi, dword [ebp - 0x45c]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov eax, edi
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b3e51
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.004069f0
mov dword [ebp - 0x460], 1
mov dword [ebp - 4], ebx
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b3e92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 8