Function at 0x48b410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed84f
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x521390]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov edi, ecx
push 1
push 0x23
lea eax, [esp + 0x264]
push eax
push 0
mov esi, edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x260]
call fcn.0045ab70
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, str.BaofengStormPlayerProfilesConfig.ini
mov dword [esp + 0x480], 0
call fcn.0045c1d0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
mov ebx, str.BaofengStormPlayerProfiles
mov byte [esp + 0x488], 1
call fcn.0045c1d0
lea eax, [esi + 0x23c]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ebx, str.crt.dll
mov byte [esp + 0x490], 2
call fcn.0045c1d0
add esp, 0x18
mov byte [esp + 0x478], 3
cmp dword [esi + 0x270], 0
jne 0x48b4fb
mov edx, dword [esp + 0x40]
push 8
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 0x270], eax
test edi, edi
jne 0x48b9ce
mov eax, dword [esi + 0x270]
test eax, eax
je 0x48b55a
push str.GetUserId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x48b55a
mov eax, dword [esi + 0x268]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x48b549
mov eax, 0x104
lea ecx, [esi + 0x268]
call fcn.00458cd0
mov edi, dword [esi + 0x268]
push 0x104
push edi
call ebx
add esp, 8
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x48b576
mov ecx, dword [esp + 0x2c]
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 [esp + 0x24], eax
mov byte [esp + 0x478], 4
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0x478], 5
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x478], 6
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x478], 7
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
push 2
push 0x4f8990
lea edi, [esp + 0x2c]
mov byte [esp + 0x480], 8
call fcn.00458b70
push 0x33c
push 0x4f8990
lea edi, [esp + 0x4c]
call fcn.00458b70
push 0x38a
push 0x4f8990
lea edi, [esp + 0x4c]
call fcn.00458b70
push 2
push 0x4f8990
lea edi, [esp + 0x58]
call fcn.00458b70
push 0
push 0x4f8990
lea edi, [esp + 0x58]
call fcn.00458b70
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x268]
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 0x48b6a3
lea edi, [esi + 0x274]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1771
call fcn.0047d470
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0x4fe294
push str.Product
call ebx
test eax, eax
jne 0x48b6d4
lea edi, [esi + 0x274]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1772
call fcn.0047d470
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push 0x4fe29c
push str.Product
call ebx
test eax, eax
jne 0x48b705
lea edi, [esi + 0x274]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1773
call fcn.0047d470
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push 0x4fe2a4
push str.Product
call ebx
test eax, eax
jne 0x48b736
lea edi, [esi + 0x274]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1774
call fcn.0047d470
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push edx
push eax
push str.ShowWelcome
push str.Welcome
call ebx
test eax, eax
jne 0x48b767
lea edi, [esi + 0x274]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1775
call fcn.0047d470
cmp dword [esi + 0x238], 0
je 0x48b7a1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
push ecx
push edx
push 0x4fe2d4
push str.DZone
call ebx
test eax, eax
jne 0x48b7a1
lea edi, [esi + 0x274]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1776
call fcn.0047d470
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x5e]
push ecx
mov word [esp + 0x60], ax
call fcn.004cfd40
add esp, 0xc
push 0x104
lea edx, [esp + 0x58]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
call fcn.0045ab70
mov byte [esp + 0x478], 9
mov ecx, dword [esp + 0x18]
push 0x2e
push ecx
call fcn.004ce618
add esp, 8
test eax, eax
jne 0x48b7fb
or eax, 0xffffffff
jmp 0x48b801
sub eax, dword [esp + 0x18]
sar eax, 1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
call fcn.0045ccb0
mov byte [esp + 0x478], 0xa
mov edi, dword [esp + 0x14]
push 0x5f
push edi
call fcn.004ce618
add esp, 8
test eax, eax
jne 0x48b82e
or ecx, 0xffffffff
jmp 0x48b834
sub eax, edi
sar eax, 1
mov ecx, eax
mov eax, dword [edi - 0xc]
sub eax, ecx
lea edx, [esp + 0x14]
dec eax
push edx
lea ecx, [esp + 0x24]
call fcn.0045cc30
lea edi, [esp + 0x14]
mov byte [esp + 0x478], 0xb
call fcn.0045c2b0
mov byte [esp + 0x478], 0xa
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x48b8ce
cmp eax, 0xa
jg 0x48b8ce
push ecx
mov dword [esp + 0x24], esp
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esp
call fcn.0045c3c0
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
call fcn.0048fc70
test eax, eax
je 0x48b8ce
mov edx, dword [esp + 0x1c]
push edx
push edi
push 0x4fe2e8
push str.Product
call ebx
mov dword [esi + 0x284], 1
add edi, 0xfffffff0
mov byte [esp + 0x478], 9
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48b8f2
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [esp + 0x478], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b91a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x478], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b942
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x478], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b96a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x478], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b992
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x478], 4
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b9ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x478], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x48ba89
cmp edi, 1
jne 0x48baa2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x47c], 0xc
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x4a]
movzx eax, word [esp + 0x46]
movzx ecx, word [esp + 0x44]
push edx
push eax
push ecx
push str._4d_.2d_.2d
lea edi, [esp + 0x28]
call fcn.00458b70
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
add esp, 0x10
push edx
push edi
push 0x4f891c
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, dword [esi + 0x270]
test esi, esi
je 0x48ba7e
push str.CrtSetInstallDate
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x48ba7e
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x48ba78
xor eax, eax
lea ecx, [esp + 0x18]
call fcn.00458cd0
mov edi, dword [esp + 0x18]
push edi
call esi
add esp, 4
mov byte [esp + 0x478], 3
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48baa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x478], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48baca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x478], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48baf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x478], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bb1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x478], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bb45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.004cbf11
mov esp, ebp
pop ebp
ret