Function at 0x478cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edc4f
mov eax, dword fs:[0]
push eax
sub esp, 0x454
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
mov edi, ecx
push 1
push 0x23
lea eax, [ebp - 0x420]
push eax
push 0
mov esi, edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x420]
call fcn.0045ab70
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x438]
push eax
mov ebx, str.BaofengStormPlayerProfilesConfig.ini
mov dword [ebp - 4], 0
call fcn.0045c1d0
lea ecx, [ebp - 0x454]
push ecx
lea edx, [ebp - 0x44c]
push edx
mov ebx, str.BaofengStormPlayerProfiles
mov byte [ebp - 4], 1
call fcn.0045c1d0
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x460]
push ecx
mov ebx, str.crt.dll
mov byte [ebp - 4], 2
call fcn.0045c1d0
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [esi + 0x68], 0
jne 0x478d7c
mov edx, dword [ebp - 0x460]
push 8
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 0x68], eax
test edi, edi
jne 0x479261
mov eax, dword [esi + 0x68]
test eax, eax
je 0x478dcf
push str.GetUserId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x478dcf
mov eax, dword [esi + 0x58]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x478dc1
mov eax, 0x104
lea ecx, [esi + 0x58]
call fcn.00458cd0
mov edi, dword [esi + 0x58]
push 0x104
push edi
call ebx
add esp, 8
mov eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x478def
mov ecx, dword [ebp - 0x44c]
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 - 0x444], eax
mov byte [ebp - 4], 4
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 5
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 6
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 7
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x458], eax
push 2
push 0x4f8990
lea edi, [ebp - 0x444]
mov byte [ebp - 4], 8
call fcn.00458b70
push 0x33c
push 0x4f8990
lea edi, [ebp - 0x45c]
call fcn.00458b70
push 0x38a
push 0x4f8990
lea edi, [ebp - 0x450]
call fcn.00458b70
push 2
push 0x4f8990
lea edi, [ebp - 0x458]
call fcn.00458b70
push 0
push 0x4f8990
lea edi, [ebp - 0x448]
call fcn.00458b70
mov ecx, dword [ebp - 0x438]
mov eax, dword [esi + 0x58]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x28
push ecx
push eax
push 0x4fe27c
push str.Product
call ebx
test eax, eax
jne 0x478f1c
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x1771
call fcn.0047d470
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x444]
push edx
push eax
push 0x4fe294
push str.Product
call ebx
test eax, eax
jne 0x478f52
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x1772
call fcn.0047d470
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp - 0x45c]
push ecx
push edx
push 0x4fe29c
push str.Product
call ebx
test eax, eax
jne 0x478f88
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x1773
call fcn.0047d470
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 0x450]
push eax
push ecx
push 0x4fe2a4
push str.Product
call ebx
test eax, eax
jne 0x478fbe
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x1774
call fcn.0047d470
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x448]
push edx
push eax
push str.ShowWelcome
push str.Welcome
call ebx
test eax, eax
jne 0x478ff4
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x1775
call fcn.0047d470
cmp dword [esi + 0x5c], 0
je 0x479030
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp - 0x458]
push ecx
push edx
push 0x4fe2d4
push str.DZone
call ebx
test eax, eax
jne 0x479030
lea edi, [esi + 0x6c]
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x1776
call fcn.0047d470
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004cfd40
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x218]
call fcn.0045ab70
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x43c]
push 0x2e
push ecx
call fcn.004ce618
add esp, 8
test eax, eax
jne 0x479092
or eax, 0xffffffff
jmp 0x47909a
sub eax, dword [ebp - 0x43c]
sar eax, 1
lea ecx, [ebp - 0x434]
lea edx, [ebp - 0x43c]
call fcn.0045ccb0
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x434]
push 0x5f
push edi
call fcn.004ce618
add esp, 8
test eax, eax
jne 0x4790c9
or ecx, 0xffffffff
jmp 0x4790cf
sub eax, edi
sar eax, 1
mov ecx, eax
mov eax, dword [edi - 0xc]
sub eax, ecx
lea edx, [ebp - 0x434]
dec eax
push edx
lea ecx, [ebp - 0x440]
call fcn.0045cc30
lea edi, [ebp - 0x434]
mov byte [ebp - 4], 0xb
call fcn.0045c2b0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47911c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x434]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x479171
cmp eax, 0xa
jg 0x479171
push ecx
mov dword [ebp - 0x440], esp
lea eax, [edi - 0x10]
mov dword [ebp - 0x440], esp
call fcn.0045c3c0
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
call fcn.0048fc70
test eax, eax
je 0x479171
mov edx, dword [ebp - 0x438]
push edx
push edi
push 0x4fe2e8
push str.Product
call ebx
mov dword [esi + 0x80], 1
add edi, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x479191
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4791b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x458]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4791dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479203
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479229
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x45c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47924f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
jmp 0x479325
cmp edi, 1
jne 0x47933e
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x43c], eax
lea ecx, [ebp - 0x430]
push ecx
mov byte [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x42a]
movzx eax, word [ebp - 0x42e]
movzx ecx, word [ebp - 0x430]
push edx
push eax
push ecx
push str._4d_.2d_.2d
lea edi, [ebp - 0x43c]
call fcn.00458b70
mov edx, dword [ebp - 0x438]
mov edi, dword [ebp - 0x43c]
add esp, 0x10
push edx
push edi
push 0x4f891c
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, dword [esi + 0x68]
test esi, esi
je 0x47931e
push str.CrtSetInstallDate
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47931e
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x479318
xor eax, eax
lea ecx, [ebp - 0x43c]
call fcn.00458cd0
mov edi, dword [ebp - 0x43c]
push edi
call esi
add esp, 4
mov byte [ebp - 4], 3
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47933e
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 - 0x460]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479364
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 - 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47938a
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 - 0x438]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4793b0
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 - 0x454]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4793d9
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