Function at 0x480d80
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506f5f
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x54c2c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x23
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x420]
call fcn.00459410
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x428]
push eax
mov ebx, str.BaofengStormPlayerProfilesConfig.ini
mov dword [ebp - 4], 0
call fcn.0045c4b0
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x448]
push edx
mov ebx, str.BaofengStormPlayerProfiles
mov byte [ebp - 4], 1
call fcn.0045c4b0
lea eax, [esi + 0xb4]
push eax
lea ecx, [ebp - 0x450]
push ecx
mov ebx, str.crt.dll
mov byte [ebp - 4], 2
call fcn.0045c4b0
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [esi + 0x4c], 0
jne 0x480e4a
mov edx, dword [ebp - 0x450]
push 8
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x480e95
push str.GetUserId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x480e95
mov eax, dword [esi + 0x54]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x480e87
mov eax, 0x104
lea ecx, [esi + 0x54]
call fcn.004592c0
mov edi, dword [esi + 0x54]
push 0x104
push edi
call ebx
add esp, 8
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x480eb1
mov ecx, dword [ebp - 0x448]
call fcn.0045b870
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 4
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [ebp - 0x438], eax
mov byte [ebp - 4], 5
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [ebp - 0x44c], eax
mov byte [ebp - 4], 6
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [ebp - 0x440], eax
push 2
push 0x518fb8
lea edi, [ebp - 0x444]
mov byte [ebp - 4], 7
call fcn.00458e60
push 0x392
push 0x518fb8
lea edi, [ebp - 0x438]
call fcn.00458e60
push 2
push 0x518fb8
lea edi, [ebp - 0x440]
call fcn.00458e60
push 1
push 0x518fb8
lea edi, [ebp - 0x44c]
call fcn.00458e60
mov ecx, dword [ebp - 0x428]
mov eax, dword [esi + 0x54]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x20
push ecx
push eax
push 0x520818
push str.Product
call ebx
test eax, eax
jne 0x480faf
lea edi, [esi + 0xb8]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x1771
call fcn.00489ce0
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x444]
push edx
push eax
push 0x520830
push str.Product
call ebx
test eax, eax
jne 0x480fe8
lea edi, [esi + 0xb8]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x1772
call fcn.00489ce0
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x438]
push ecx
push edx
push 0x520838
push str.Product
call ebx
test eax, eax
jne 0x481021
lea edi, [esi + 0xb8]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x1774
call fcn.00489ce0
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x44c]
push eax
push ecx
push str.ShowWelcome
push str.Welcome
call ebx
test eax, eax
jne 0x48105a
lea edi, [esi + 0xb8]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x1775
call fcn.00489ce0
cmp dword [esi + 0x50], 0
je 0x481099
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x440]
push edx
push eax
push 0x51f114
push str.DZone
call ebx
test eax, eax
jne 0x481099
lea edi, [esi + 0xb8]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x1776
call fcn.00489ce0
lea ecx, [ebp - 0x430]
push ecx
mov ecx, 0x51966c
call fcn.00459410
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x430]
mov eax, dword [edx - 8]
mov edi, dword [ebp - 0x428]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4810e4
mov eax, 0x104
lea ecx, [ebp - 0x430]
call fcn.004592c0
mov edx, dword [ebp - 0x430]
push edi
push 0x104
push edx
push 0x51966c
push 0x520868
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004e30a4
add esp, 8
test eax, eax
js 0x481565
mov ecx, dword [ebp - 0x430]
cmp eax, dword [ecx - 8]
jg 0x481565
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x430]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x430]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x4812d5
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004e5590
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x218]
call fcn.00459410
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x424]
push 0x2e
push ecx
call fcn.004e3727
add esp, 8
test eax, eax
jne 0x4811aa
or eax, 0xffffffff
jmp 0x4811b2
sub eax, dword [ebp - 0x424]
sar eax, 1
lea ecx, [ebp - 0x434]
lea edx, [ebp - 0x424]
call fcn.0045d000
mov ebx, 0xa
mov byte [ebp - 4], bl
mov edi, dword [ebp - 0x434]
push 0x5f
push edi
call fcn.004e3727
add esp, 8
test eax, eax
jne 0x4811e5
or ecx, 0xffffffff
jmp 0x4811eb
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 - 0x454]
call fcn.0045cf80
lea edi, [ebp - 0x434]
mov byte [ebp - 4], 0xb
call fcn.0045c590
mov byte [ebp - 4], bl
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 0x481237
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 0x481289
cmp eax, ebx
jg 0x481289
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x458], esp
mov ebx, esp
call fcn.0045c680
add eax, 0x10
mov dword [ebx], eax
call fcn.004865d0
test eax, eax
je 0x481289
mov ecx, dword [ebp - 0x428]
push ecx
push edi
push 0x520868
push str.Product
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [esi + 0xcc], 1
lea eax, [edi - 0x10]
mov byte [ebp - 4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4812a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4812cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x42c]
push ecx
mov ecx, 0x51966c
call fcn.00459410
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx - 8]
mov edi, dword [ebp - 0x428]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x481320
mov eax, 0x104
lea ecx, [ebp - 0x42c]
call fcn.004592c0
mov edx, dword [ebp - 0x42c]
push edi
push 0x104
push edx
push 0x51966c
push str.BBID
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004e30a4
add esp, 8
test eax, eax
js 0x481565
mov ecx, dword [ebp - 0x42c]
cmp eax, dword [ecx - 8]
jg 0x481565
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x42c]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x42c]
cmp dword [edx - 0xc], 0
jne 0x481392
lea eax, [esi + 0x1b4]
lea edi, [ebp - 0x42c]
call fcn.0045c590
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x42c]
push eax
push ecx
push str.BBID
push str.Product
call ebx
mov edx, dword [ebp - 0x428]
mov eax, dword [esi + 0x1b4]
push edx
push eax
push 0x52087c
push str.Product
call ebx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4813ec
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 - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481412
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 - 0x440]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481438
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 - 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48145e
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 - 0x438]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481484
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
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4814aa
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 - 0x450]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4814d0
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 - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4814f6
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 - 0x428]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48151c
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 - 0x43c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481545
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 ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00459ec0
int3