Function at 0x439580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad16c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4e52d0]
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
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00402120
push eax
lea edx, [ebp - 0x230]
push edx
mov ebx, str.BaofengStormPlayerProfilesConfig.ini
mov dword [ebp - 4], 0
call fcn.00404520
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439617
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xa0]
push ecx
lea edx, [ebp - 0x234]
push edx
mov ebx, str.crt.dll
call fcn.00404520
add esp, 8
mov byte [ebp - 4], 3
cmp dword [esi + 0x44], 0
jne 0x439650
mov eax, dword [ebp - 0x234]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 0x44], eax
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x228]
push ecx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x222]
movzx eax, word [ebp - 0x226]
movzx ecx, word [ebp - 0x228]
push edx
push eax
push ecx
push str._4d_.2d_.2d
lea edi, [ebp - 0x22c]
call fcn.00402360
mov edx, dword [ebp - 0x230]
mov edi, dword [ebp - 0x22c]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x10
push edx
push edi
push str.InstallDate
push str.INSTALL
call ebx
mov esi, dword [esi + 0x44]
test esi, esi
je 0x439700
push str.CrtSetInstallDate
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x439700
cmp dword [edi - 4], 1
jle 0x4396fa
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004021c0
mov edi, dword [ebp - 0x22c]
push edi
call esi
add esp, 4
movzx edx, word [ebp - 0x21e]
movzx eax, word [ebp - 0x220]
movzx ecx, word [ebp - 0x222]
push edx
movzx edx, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push ecx
push edx
push eax
push str._4d_.2d_.2d_.2d_.2d
lea edi, [ebp - 0x22c]
call fcn.00402360
mov ecx, dword [ebp - 0x230]
mov esi, dword [ebp - 0x22c]
add esp, 0x18
push ecx
push esi
push str.CreateTime
push str.DesktopIcon
call ebx
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x439775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43979b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4397c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.004912db
mov esp, ebp
pop ebp
ret