Function at 0x479400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edb97
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x521390]
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 - 0x22c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0045ab70
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x220]
push eax
mov ebx, str.BaofengStormPlayerProfilesMovieListMediaLibrary.ini
mov dword [ebp - 4], 0
call fcn.0045c1d0
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x228]
push edx
mov ebx, str.BaofengStormPlayerProfilesMovieList
mov byte [ebp - 4], 1
call fcn.0045c1d0
add esp, 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4794b7
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0045b570
add esp, 4
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
cmp dword [esi + 0x60], 0
mov ebx, 1
je 0x4794ed
push 0x4fa4f8
lea ecx, [ebp - 0x224]
push ecx
jmp 0x4794f9
push 0x4fa9c4
lea edx, [ebp - 0x224]
push edx
call fcn.0045aa80
mov eax, dword [ebp - 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push str.242099
push str.1_lib
push str.userlib
call ebx
test eax, eax
jne 0x479538
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b59
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
push ecx
push edx
push str.1_upd
push str.userlib
call ebx
test eax, eax
jne 0x47956e
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b5a
call fcn.0047d470
mov eax, dword [ebp - 0x220]
push eax
push 0x4fa4f8
push str.1_att
push str.userlib
call ebx
test eax, eax
jne 0x4795a2
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b5b
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
push ecx
push 0x4fe43c
push str.1_cnt
push str.userlib
call ebx
test eax, eax
jne 0x4795d6
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b5c
call fcn.0047d470
mov edx, dword [ebp - 0x220]
push edx
push str.242110
push str.2_lib
push str.userlib
call ebx
test eax, eax
jne 0x47960a
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b5d
call fcn.0047d470
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
push eax
push ecx
push str.2_upd
push str.userlib
call ebx
test eax, eax
jne 0x479640
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b5e
call fcn.0047d470
mov edx, dword [ebp - 0x220]
push edx
push 0x4fa4f8
push str.2_att
push str.userlib
call ebx
test eax, eax
jne 0x479674
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b5f
call fcn.0047d470
mov eax, dword [ebp - 0x220]
push eax
push 0x4fe43c
push str.2_cnt
push str.userlib
call ebx
test eax, eax
jne 0x4796a8
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b60
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
push ecx
push str.1769860
push str.3_lib
push str.userlib
call ebx
test eax, eax
jne 0x4796dc
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b61
call fcn.0047d470
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
push edx
push eax
push str.3_upd
push str.userlib
call ebx
test eax, eax
jne 0x479712
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b62
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
push ecx
push 0x4fa4fc
push str.3_att
push str.userlib
call ebx
test eax, eax
jne 0x479746
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b63
call fcn.0047d470
mov edx, dword [ebp - 0x220]
push edx
push 0x4fe43c
push str.3_cnt
push str.userlib
call ebx
test eax, eax
jne 0x47977a
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b64
call fcn.0047d470
mov eax, dword [ebp - 0x220]
push eax
push str.1843909
push str.4_lib
push str.userlib
call ebx
test eax, eax
jne 0x4797ae
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b65
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
push ecx
push edx
push str.4_upd
push str.userlib
call ebx
test eax, eax
jne 0x4797e4
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b66
call fcn.0047d470
mov eax, dword [ebp - 0x220]
push eax
push 0x4fa4fc
push str.4_att
push str.userlib
call ebx
test eax, eax
jne 0x479818
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b67
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
push ecx
push 0x4fe43c
push str.4_cnt
push str.userlib
call ebx
test eax, eax
jne 0x47984c
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b68
call fcn.0047d470
mov edx, dword [ebp - 0x220]
push edx
push str.1995645
push str.5_lib
push str.userlib
call ebx
test eax, eax
jne 0x479880
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b69
call fcn.0047d470
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
push eax
push ecx
push str.5_upd
push str.userlib
call ebx
test eax, eax
jne 0x4798b6
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b6a
call fcn.0047d470
mov edx, dword [ebp - 0x220]
push edx
push 0x4fa4fc
push str.5_att
push str.userlib
call ebx
test eax, eax
jne 0x4798ea
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b6b
call fcn.0047d470
mov eax, dword [ebp - 0x220]
push eax
push 0x4fe43c
push str.5_cnt
push str.userlib
call ebx
test eax, eax
jne 0x47991e
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b6c
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
push ecx
push str.2000527
push str.6_lib
push str.userlib
call ebx
test eax, eax
jne 0x479952
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b6d
call fcn.0047d470
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
push edx
push eax
push str.6_upd
push str.userlib
call ebx
test eax, eax
jne 0x479988
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b6e
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
push ecx
push 0x4fa4fc
push str.6_att
push str.userlib
call ebx
test eax, eax
jne 0x4799bc
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b6f
call fcn.0047d470
mov edx, dword [ebp - 0x220]
push edx
push 0x4fe43c
push str.6_cnt
push str.userlib
call ebx
test eax, eax
jne 0x4799f0
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b70
call fcn.0047d470
mov eax, dword [ebp - 0x220]
push eax
push str.2000534
push str.7_lib
push str.userlib
call ebx
test eax, eax
jne 0x479a24
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b71
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
push ecx
push edx
push str.7_upd
push str.userlib
call ebx
test eax, eax
jne 0x479a5a
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b72
call fcn.0047d470
mov eax, dword [ebp - 0x220]
push eax
push 0x4fa4fc
push str.7_att
push str.userlib
call ebx
test eax, eax
jne 0x479a8e
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b73
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
push ecx
push 0x4fe43c
push str.7_cnt
push str.userlib
call ebx
test eax, eax
jne 0x479ac2
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b74
call fcn.0047d470
mov edx, dword [ebp - 0x220]
push edx
push str.2025123
push str.8_lib
push str.userlib
call ebx
test eax, eax
jne 0x479af6
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b75
call fcn.0047d470
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
push eax
push ecx
push str.8_upd
push str.userlib
call ebx
test eax, eax
jne 0x479b2c
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b76
call fcn.0047d470
mov edx, dword [ebp - 0x220]
push edx
push 0x4fa4fc
push str.8_att
push str.userlib
call ebx
test eax, eax
jne 0x479b60
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b77
call fcn.0047d470
mov eax, dword [ebp - 0x220]
push eax
push 0x4fe43c
push str.8_cnt
push str.userlib
call ebx
test eax, eax
jne 0x479b94
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b78
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
push ecx
push str.2018184
push str.9_lib
push str.userlib
call ebx
test eax, eax
jne 0x479bc8
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b79
call fcn.0047d470
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
push edx
push eax
push str.9_upd
push str.userlib
call ebx
test eax, eax
jne 0x479bfe
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b7a
call fcn.0047d470
mov ecx, dword [ebp - 0x220]
push ecx
push 0x4fa4fc
push str.9_att
push str.userlib
call ebx
test eax, eax
jne 0x479c32
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b7b
call fcn.0047d470
mov edx, dword [ebp - 0x220]
push edx
push 0x4fe43c
push str.9_cnt
push str.userlib
call ebx
test eax, eax
jne 0x479c66
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b7c
call fcn.0047d470
mov eax, dword [ebp - 0x220]
push eax
push 0x4fe650
push 0x4fe654
push str.userlib
call ebx
test eax, eax
jne 0x479c9a
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1b7d
call fcn.0047d470
cmp dword [esi + 0x60], 0
je 0x479d07
add esi, 0xc
lea ecx, [ebp - 0x21c]
push esi
push ecx
mov ebx, str.MediaLibraryUpdate.exe__hide
call fcn.0045c1d0
add esp, 8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x479cd6
call fcn.004cac50
push eax
push 0
call fcn.00458760
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x479d07
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 - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479d2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479d53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479d79
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 - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479da2
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.004cbf11
mov esp, ebp
pop ebp
ret