Function at 0x412800
Capabilities:
Check internet connectivity via wininet
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4716d6
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x48e110]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x48e110]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x41287e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4128c3
push 0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4128c3
mov al, byte [esp + 0x14]
test al, 0x20
jne 0x4128c3
test al, 7
je 0x4128c3
push 0x476a14
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4928a4], eax
test eax, eax
je 0x412a36
push 0x476a3c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412a36
push 5
push 0
push 0
push str.http:__www.baofeng.com_permit_BFVideo.html
push str.open
push 0
call eax
jmp 0x412a36
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x7e]
push eax
mov word [esp + 0x80], dx
call fcn.0045c960
add esp, 0xc
lea ecx, [esp + 0x74]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x78]
call fcn.00403080
push 0xb
push str.License.txt
lea ebx, [esp + 0x1c]
mov dword [esp + 0x298], 6
call fcn.00402d70
mov eax, dword [0x4928a8]
mov esi, dword [esp + 0x14]
push str.RESOURCE_DATA
push 0x88
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x412a0b
push esi
mov ecx, edi
call fcn.00401120
add esp, 4
test al, al
je 0x412a0b
lea eax, [esp + 0x18]
push eax
mov ecx, str.notepad.exe
call fcn.00403080
mov byte [esp + 0x290], 7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [esp + 0x20]
call fcn.00402d70
push 0x40
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0045c960
mov ecx, dword [esp + 0x24]
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4129e3
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov byte [esp + 0x290], 6
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 0x412a0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret