Function at 0x423500
Capabilities:
Check if file exists
Move file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48ac58
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x498], edi
mov dword [ebp - 0x494], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x4a4], ebx
mov dword [ebp - 0x4bc], ebx
xor eax, eax
mov dword [ebp - 0x4b8], eax
mov dword [ebp - 0x4b4], eax
mov dword [ebp - 0x4a0], ebx
push str.BkavFwCfg2.dat
push edi
push 0x47903c
push 0x104
lea eax, [ebp - 0x270]
push eax
call fcn.0043ed50
add esp, 0x14
push str.BkavFwCfg2.dat
push edi
push str._s_system_firewall_s
push 0x104
lea ecx, [ebp - 0x490]
push ecx
call fcn.0043ed50
add esp, 0x14
lea edx, [ebp - 0x270]
push edx
push str.szNewRulePath:__s
call fcn.00404c20
lea eax, [ebp - 0x490]
push eax
push str.szRulePath:__s
call fcn.00404c20
add esp, 0x10
call fcn.0040d850
mov dword [edi + 0xb40], eax
mov dword [ebp - 4], ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str..FwDrv0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x494], eax
cmp eax, 0xffffffff
je 0x423699
mov esi, 4
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4c4], esi
mov dword [ebp - 0x4ac], ebx
lea ecx, [ebp - 0x4c4]
push ecx
lea edx, [ebp - 0x4ac]
push edx
lea eax, [ebp - 0x4c0]
push eax
push str.dwBlockShare
push str.SOFTWAREBkavBSPC
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x423682
push ebx
lea ecx, [ebp - 0x4a0]
push ecx
push ebx
push ebx
push esi
lea edx, [ebp - 0x4ac]
push edx
push 0x22e049
mov eax, dword [ebp - 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x423682
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_IOCTL_SEND_SHARE_STATUS_error:_0x_08X
call fcn.00404c20
add esp, 8
mov ecx, dword [ebp - 0x494]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x494], 0xffffffff
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423708
push str.New_File_Rule
call fcn.00404c20
add esp, 4
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [edi + 0xb40]
push ecx
call fcn.0040dd10
test eax, eax
je 0x423708
push str.New_Rule_OK
call fcn.00404c20
add esp, 4
mov esi, dword [edi + 0xb40]
call fcn.0040d930
push 1
lea edx, [ebp - 0x490]
push edx
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x4a4], ebx
mov edi, dword [ebp - 0x498]
mov edi, dword [edi + 0xb40]
cmp dword [edi + 0x1c], ebx
jne 0x4239be
lea ebx, [ebp - 0x490]
call fcn.0040d890
test eax, eax
je 0x4239bc
mov edi, dword [ebp - 0x498]
mov eax, dword [edi + 0xb40]
call fcn.0040d970
test eax, eax
je 0x4239bc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..FwDrv0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x494], esi
cmp esi, 0xffffffff
jne 0x423783
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateRule_open_device_error:__d
call fcn.00404c20
add esp, 8
jmp 0x4239bc
xor eax, eax
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x4b8], eax
mov dword [ebp - 0x4b4], eax
mov dword [ebp - 0x4b8], 1
push str.IOCTL_DELETE_ALL_CONNECTION_RULE
call fcn.00404c20
add esp, 4
push 0
lea ecx, [ebp - 0x4a0]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x4bc]
push edx
push 0x22e031
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4237ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_IOCTL_DELETE_ALL_CONNECTION_RULE_error:__d
call fcn.00404c20
add esp, 8
jmp 0x4239bc
mov eax, dword [edi + 0xb40]
mov edi, dword [eax + 0xc]
push 8
push str.Size_of_list_entry__d
call fcn.00404c20
push edi
push str.pConnRuleList:__08X
call fcn.00404c20
add esp, 0x10
mov dword [ebp - 0x4b0], 0
test edi, edi
je 0x4239a6
mov ebx, dword [edi + 0xc]
add ebx, 0x24
mov dword [ebp - 0x49c], ebx
push ebx
push str.dwSizeRule:__d
call fcn.00404c20
push ebx
call fcn.0043e793
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x4a8], esi
test esi, esi
je 0x4239a6
push ebx
push 0
push esi
call fcn.004416b0
add esp, 0xc
mov dword [esi + 4], 1
mov dword [esi], ebx
mov ecx, dword [edi + 0xc]
add ecx, 0x14
push ecx
push edi
lea edx, [esi + 8]
push edx
call fcn.00441730
add esp, 0xc
mov eax, dword [edi + 8]
push eax
push str.pConnRuleList__ruleType:__d
call fcn.00404c20
mov ecx, dword [edi + 0xc]
push ecx
push str.pConnRuleList__sizeData:__d
call fcn.00404c20
mov edx, dword [edi + 0x10]
push edx
push str.pConnRuleList__decision:__d
call fcn.00404c20
add esp, 0x18
mov eax, dword [edi + 8]
cmp eax, 3
jne 0x4238c3
lea eax, [edi + 0x14]
push eax
push str.pConnRuleList__pData:__s
call fcn.00404c20
add esp, 8
jmp 0x423937
cmp eax, 5
jne 0x4239e0
lea ebx, [edi + 0x14]
call fcn.0040e010
mov ebx, eax
test ebx, ebx
je 0x423931
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4238e0
sub eax, edx
push eax
push ebx
lea esi, [ebp - 0x50]
call fcn.0040ace0
mov esi, dword [ebp - 0x4a8]
add esi, 0x1c
mov ecx, dword [edi + 0xc]
push ecx
push 0
push esi
call fcn.004416b0
add esp, 0x14
mov edx, dword [ebp - 0x50]
mov dword [esi], edx
mov eax, dword [ebp - 0x4c]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x48]
mov dword [esi + 8], ecx
mov edx, dword [ebp - 0x44]
mov dword [esi + 0xc], edx
push ebx
call fcn.0043efb8
add esp, 4
mov esi, dword [ebp - 0x4a8]
mov ebx, dword [ebp - 0x49c]
mov eax, dword [esi]
push eax
push str.pConnRule__dwSize:__d
call fcn.00404c20
add esp, 8
push 0
lea ecx, [ebp - 0x4a0]
push ecx
push 0
push 0
push ebx
push esi
push 0x22e02d
mov edx, dword [ebp - 0x494]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x423980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_IOCTL_SEND_CONNECTION_RULE_error:__d
call fcn.00404c20
add esp, 8
push esi
call fcn.0043e85d
mov esi, edi
mov eax, dword [ebp - 0x498]
mov edi, dword [eax + 0xb40]
add esp, 4
call fcn.0040dcb0
mov edi, eax
test edi, edi
jne 0x423822
mov ecx, dword [ebp - 0x4b0]
mov dword [0x49674c], ecx
mov dword [ebp - 0x4a4], 1
xor ebx, ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00423ab9
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x498]
jmp 0x4235d8
cmp eax, 1
je 0x423a93
cmp eax, 2
je 0x423a93
cmp eax, 0xa
jne 0x423937
mov eax, dword [edi + 0xc]
push eax
call fcn.0043e793
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x423a26
push esi
call fcn.0043e85d
mov esi, edi
mov ecx, dword [ebp - 0x498]
mov edi, dword [ecx + 0xb40]
jmp 0x423994
mov dword [ebp - 0x4b0], 1
mov edx, dword [edi + 0xc]
push edx
lea eax, [edi + 0x14]
push eax
push ebx
call fcn.00441730
add esp, 0xc
cmp dword [ebx], 0
jne 0x423931
call fcn.00424330
mov dword [ebx], eax
test eax, eax
jne 0x423a61
push esi
call fcn.0043e85d
add esp, 4
push ebx
jmp 0x423a0e
mov edx, dword [ebx + 0xc]
push edx
mov ecx, dword [ebx + 8]
push ecx
push eax
push str.BlockAllNetwork:_Ip___x____d____d__n
call fcn.00404c20
mov edx, dword [edi + 0xc]
push edx
push ebx
lea eax, [esi + 0x1c]
push eax
call fcn.00441730
add esp, 0x1c
push ebx
call fcn.0043e85d
add esp, 4
jmp 0x423931
mov ecx, dword [edi + 0x18]
push ecx
push str.Direction:__d
call fcn.00404c20
mov edx, dword [edi + 0x14]
push edx
push str.Data:__d
call fcn.00404c20
add esp, 0x10
jmp 0x423937