Function at 0x416850
Capabilities:
Check internet connectivity via wininet
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bd059
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x4f52c0]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
push edi
mov eax, dword [0x4f52c0]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
mov esi, ecx
push eax
mov ecx, str.CB5_InstallApp::InitInstance
call fcn.00414620
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x448], ebx
push ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x4168e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4168ea
push ebx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4168ea
mov al, byte [esp + 0x14]
test al, 0x20
jne 0x4168ea
test al, 7
je 0x4168ea
mov dword [esi + 0x24], 1
cmp dword [0x4fb39c], ebx
jne 0x41691d
call fcn.00417fd0
mov ecx, eax
call fcn.00422810
test eax, eax
jne 0x41691d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x448], 0xffffffff
call fcn.00414520
xor eax, eax
jmp 0x416b10
cmp dword [esi + 0xc0], ebx
jne 0x41695b
push 0x1b8
call fcn.0049948f
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x448], 1
cmp eax, ebx
je 0x41694c
push ebx
mov edi, eax
call fcn.00422250
jmp 0x41694e
xor eax, eax
mov byte [esp + 0x448], bl
mov dword [esi + 0xc0], eax
mov edi, dword [esi + 0xc0]
push 0x2cc
push 0x4c88b0
lea edi, [edi + 0x1b4]
call fcn.00401f80
add esp, 8
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x416cc0
push ebx
push ebx
mov dword [esi + 0x48], eax
call fcn.0049ba9c
mov dword [esi + 0xac], eax
mov eax, dword [esi + 4]
mov edi, dword [eax + 0x38]
add esp, 0x18
lea eax, [edi + 0x1c]
push str.Skin.xml
push eax
mov ebx, 8
call fcn.00401c50
lea eax, [edi + 0x20]
push 0x4c8a90
push eax
xor ebx, ebx
call fcn.00401c50
lea eax, [edi + 0x24]
push 0x4c8a90
push eax
call fcn.00401c50
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x236]
push ecx
mov word [esp + 0x238], ax
call fcn.0049dad0
mov eax, dword [0x4fb394]
add esp, 0xc
push 0x104
lea edx, [esp + 0x230]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...Default.bfskin
lea ecx, [esp + 0x230]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2e]
push eax
mov word [esp + 0x30], dx
call fcn.0049dad0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
push str.BFInstallSkinFolder
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocStringLen
mov dword [esp + 0x2c], 0x102
mov dword [esp + 0x30], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [esp + 0x24], bx
je 0x416a92
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x416a92
lea edi, [esp + 0x24]
mov eax, esi
call fcn.00449220
jmp 0x416abf
mov eax, dword [esi + 4]
mov edx, dword [0x4fb394]
mov dword [eax + 0x5c], 2
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], 0x8c
add eax, 0x70
push str.Theme
push eax
mov ebx, 5
call fcn.00401c50
cmp dword [0x4fb39c], 0
jne 0x416af7
test byte [0x4fb704], 1
jne 0x416ad8
call fcn.00417f60
jmp 0x416add
mov eax, 0x4fb4d0
push eax
call fcn.00441dd0
test al, al
je 0x416902
call fcn.00417fd0
mov ebx, eax
call fcn.004238f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x448], 0xffffffff
call fcn.00414520
mov eax, 1
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0049908b
mov esp, ebp
pop ebp
ret