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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad48f
mov eax, dword fs:[0]
push eax
sub esp, 0x454
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 - 0x420]
push eax
mov esi, ecx
push 0
mov dword [ebp - 0x454], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x420]
call fcn.00402120
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x424]
push eax
mov ebx, str.BaofengStormPlayerProfilesConfig.ini
mov dword [ebp - 4], 0
call fcn.00404520
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x438]
push edx
mov ebx, str.BaofengStormPlayerProfiles
mov byte [ebp - 4], 1
call fcn.00404520
lea eax, [esi + 0xa0]
push eax
lea ecx, [ebp - 0x44c]
push ecx
mov ebx, str.crt.dll
mov byte [ebp - 4], 2
call fcn.00404520
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [esi + 0x44], 0
jne 0x433123
mov edx, dword [ebp - 0x44c]
push 8
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x44]
test eax, eax
je 0x43316e
push str.GetUserId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x43316e
mov eax, dword [esi + 0x48]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x433160
mov eax, 0x104
lea ecx, [esi + 0x48]
call fcn.00402280
mov edi, dword [esi + 0x48]
push 0x104
push edi
call ebx
add esp, 8
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x43318a
mov ecx, dword [ebp - 0x438]
call fcn.00403510
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 4
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 5
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x440], eax
mov byte [ebp - 4], 6
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x450], eax
push 2
push 0x4bb008
lea edi, [ebp - 0x444]
mov byte [ebp - 4], 7
call fcn.00402360
push 0x396
push 0x4bb008
lea edi, [ebp - 0x448]
call fcn.00402360
push 2
push 0x4bb008
lea edi, [ebp - 0x450]
call fcn.00402360
push 0
push 0x4bb008
lea edi, [ebp - 0x440]
call fcn.00402360
mov ecx, dword [ebp - 0x424]
mov eax, dword [esi + 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x20
push ecx
push eax
push 0x4c3580
push str.Product
call ebx
test eax, eax
jne 0x433288
lea edi, [esi + 0xa4]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x1771
call fcn.00407530
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x444]
push edx
push eax
push 0x4c3598
push str.Product
call ebx
test eax, eax
jne 0x4332c1
lea edi, [esi + 0xa4]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x1772
call fcn.00407530
mov ecx, dword [ebp - 0x424]
mov edx, dword [ebp - 0x448]
push ecx
push edx
push 0x4c35a0
push str.Product
call ebx
test eax, eax
jne 0x4332fa
lea edi, [esi + 0xa4]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x1774
call fcn.00407530
mov eax, dword [ebp - 0x424]
push eax
push 0x4bd9b4
push str.ShowSetHome
push str.Welcome
call ebx
mov ecx, dword [ebp - 0x424]
mov edx, dword [ebp - 0x440]
push ecx
push edx
push str.ShowWelcome
push str.Welcome
call ebx
test eax, eax
jne 0x43334b
lea edi, [esi + 0xa4]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x1775
call fcn.00407530
lea eax, [ebp - 0x430]
push eax
mov ecx, 0x4bb300
call fcn.00402120
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x430]
mov eax, dword [edx - 8]
mov edi, dword [ebp - 0x424]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x433396
mov eax, 0x104
lea ecx, [ebp - 0x430]
call fcn.00402280
mov edx, dword [ebp - 0x430]
push edi
push 0x104
push edx
push 0x4bb300
push 0x4c35e8
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.004923b5
add esp, 8
test eax, eax
js 0x433847
mov ecx, dword [ebp - 0x430]
cmp eax, dword [ecx - 8]
jg 0x433847
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x430]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x430]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x433577
push 0x206
push eax
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004950a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00402120
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x428]
push 0x2e
push edx
call fcn.00492744
add esp, 8
test eax, eax
jne 0x43345c
or eax, 0xffffffff
jmp 0x433464
sub eax, dword [ebp - 0x428]
sar eax, 1
lea ecx, [ebp - 0x434]
lea edx, [ebp - 0x428]
call fcn.00405040
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x434]
push 0x5f
push edi
call fcn.00492744
add esp, 8
test eax, eax
jne 0x433493
or ecx, 0xffffffff
jmp 0x433499
sub eax, edi
sar eax, 1
mov ecx, eax
mov eax, dword [edi - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x434]
push ecx
dec eax
lea ecx, [ebp - 0x458]
call fcn.00405450
lea edi, [ebp - 0x434]
mov byte [ebp - 4], 0xb
call fcn.00404600
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x458]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4334e6
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 0x433531
cmp eax, 0x10
jg 0x433531
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x45c], esp
mov esi, esp
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
call fcn.00439c30
test eax, eax
je 0x43352b
mov ecx, dword [ebp - 0x424]
push ecx
push edi
push 0x4c35e8
push str.Product
call ebx
mov esi, dword [ebp - 0x454]
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 0x433551
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 - 0x428]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x42c]
push ecx
mov ecx, 0x4bb300
call fcn.00402120
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx - 8]
mov edi, dword [ebp - 0x424]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4335c2
mov eax, 0x104
lea ecx, [ebp - 0x42c]
call fcn.00402280
mov edx, dword [ebp - 0x42c]
push edi
push 0x104
push edx
push 0x4bb300
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.004923b5
add esp, 8
test eax, eax
js 0x433847
mov ecx, dword [ebp - 0x42c]
cmp eax, dword [ecx - 8]
jg 0x433847
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 0x433634
lea eax, [esi + 0x19c]
lea edi, [ebp - 0x42c]
call fcn.00404600
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x42c]
push eax
push ecx
push str.BBID
push str.Product
call ebx
mov edx, dword [ebp - 0x424]
mov eax, dword [esi + 0x19c]
push edx
push eax
push 0x4c35fc
push str.Product
call ebx
mov eax, dword [ebp - 0x424]
push eax
push 0
push str.DownloadVCenter
push 0x4c3624
call ebx
mov ecx, dword [ebp - 0x424]
push ecx
push 0
push str.TryTime
push str.BFVCenterDownLoad
call ebx
mov edx, dword [ebp - 0x424]
push edx
push 0
push str.IsDownload
push str.BFVCenterDownLoad
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 0x4336cd
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 0x4336f3
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 - 0x450]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433719
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 - 0x440]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43373f
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 - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433765
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 0x43378b
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 - 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4337b1
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 - 0x438]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4337d7
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 - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4337fd
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 0x433826
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
push 0x80070057
call fcn.00402bc0
int3