Function at 0x42b330
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
mov esi, dword [0x496758]
push edi
lea eax, [esp + 0x14]
push eax
lea edi, [esi + 0x244]
push edi
lea ecx, [esp + 0x24]
push ecx
push str.szBkavDir
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42b400
push str.SystemFirewall
push edi
push 0x47903c
lea ebx, [esi + 0x44c]
push 0x104
push ebx
call fcn.0043ed50
add esp, 0x14
push 0x114
lea edi, [esi + 0x50c94]
push 0
push edi
call fcn.004416b0
add esp, 0xc
push edi
mov dword [edi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
call fcn.0042c520
push str.BkavFWServer_123456
mov ecx, esi
mov dword [esi + 0x50dac], eax
call fcn.0043d0f0
test eax, eax
jne 0x42b417
push str.ActivateServer_FW_fail_n
call fcn.00404c20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret
push str.ActivateServer_FW_OK_n
call fcn.00404c20
add esp, 4
call fcn.00428420
push str.FirewallDiary_List
push ebx
push 0x47903c
lea edi, [esi + 0x514e4]
push 0x104
push edi
call fcn.0043ed50
add esp, 0x14
push 0x45c
lea edx, [esi + 0x5103c]
mov ecx, str.FWDIARY
mov eax, edi
call fcn.00403510
call fcn.0040d850
mov dword [esi + 0x4fbfc], eax
call fcn.00426810
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..FwDrv0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x42b400
lea eax, [esi + 0x51020]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x51018]
sub edx, dword [esi + 0x51014]
xor edi, edi
test edx, 0xfffffffc
jle 0x42b5fe
jmp 0x42b4d0
mov eax, dword [esi + 0x51018]
sub eax, dword [esi + 0x51014]
sar eax, 2
cmp edi, eax
jb 0x42b4e8
call fcn.0043f37f
mov ecx, dword [esi + 0x51014]
mov ebx, dword [ecx + edi*4]
xor eax, eax
push 0x220
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x2c], 0
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
call fcn.004416b0
mov al, byte [ebx]
add esp, 0xc
cmp al, 1
je 0x42b575
cmp al, 2
je 0x42b575
cmp al, 3
je 0x42b575
cmp al, 6
je 0x42b575
cmp al, 4
je 0x42b575
cmp al, 5
je 0x42b575
lea ecx, [ebx + 0x1a]
push ecx
mov byte [esp + 0x24], al
mov al, byte [ebx + 8]
lea edx, [esp + 0x3e]
push 0x105
push edx
mov byte [esp + 0x34], al
call fcn.0043efc3
add esp, 0xc
add ebx, 9
je 0x42b5bd
mov eax, dword [ebx]
mov dword [esp + 0x29], eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x2d], ecx
mov edx, dword [ebx + 8]
mov dword [esp + 0x31], edx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x35], eax
jmp 0x42b5bd
mov byte [esp + 0x20], al
mov cl, byte [ebx + 8]
add ebx, 0x1a
push ebx
lea edx, [esp + 0x3e]
push 0x105
push edx
mov byte [esp + 0x34], cl
call fcn.0043efc3
add esp, 0xc
call fcn.0040e010
mov ebx, eax
test ebx, ebx
je 0x42b5bd
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x42b5b4
mov dword [esp + 0x244], eax
push ebx
call fcn.0043efb8
add esp, 4
mov ebx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x228
lea ecx, [esp + 0x34]
push ecx
push 0x22e075
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42b62a
mov edx, dword [esi + 0x51018]
sub edx, dword [esi + 0x51014]
inc edi
sar edx, 2
cmp edi, edx
jl 0x42b4d0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_error:__d
call fcn.00404c20
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret