Function at 0x405ac0
Capabilities:
Delete registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
sub esp, 0x38c
push ebx
push ebp
mov ebp, ecx
mov edx, dword [ebp + 0x7f8]
mov ebx, dword [ebp + 0x7f4]
mov eax, edx
cmp eax, edx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x12], 1
je 0x405b01
mov esi, eax
mov edi, ebx
add eax, 0x320
mov ecx, 0xc8
add ebx, 0x320
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x405ae7
mov ecx, dword [ebp + 0x7f8]
mov esi, dword [esp + 0x3a0]
lea eax, [ebp + 0x7f0]
mov dword [esp + 0x74], ecx
mov dword [eax + 8], ebx
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x74], ebx
mov edx, ebx
jne 0x405b4a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x38c
ret 8
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
xor esi, esi
push 0xa
push edx
inc esi
call edi
mov edx, eax
add esp, 8
test edx, edx
je 0x405b83
inc edx
jne 0x405b71
lea ecx, [esi*4 + 4]
push ecx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x64], esi
xor ebp, ebp
mov eax, ebx
push 0xa
mov dword [esi], eax
push eax
inc ebp
add esi, 4
call edi
add esp, 8
test eax, eax
je 0x405bb6
inc eax
mov byte [eax - 1], 0
jne 0x405b9d
mov edx, ebp
shl edx, 4
xor ebx, ebx
add edx, ebp
lea esi, [ebp + edx*8]
mov eax, 0x50
shl esi, 1
push esi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x34], edi
je 0x406875
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], eax
jle 0x40674f
mov edi, dword [sym.imp.MSVCRT.dll_strtok]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
mov esi, eax
mov ebx, dword [esp + 0x64]
mov eax, dword [ebx + esi*4]
push eax
push esi
push str._ApplyPolicy__Extract_RULE__Line__d__App__s
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [ebx + esi*4]
add esp, 0x18
push ecx
push esi
push str._d__s_n
call dword [sym.imp.MSVCRT.dll_printf]
mov edx, dword [ebx + esi*4]
push 0x425cb4
push edx
call edi
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
je 0x406732
push str.policy
push eax
call ebp
add esp, 8
test eax, eax
jne 0x406732
push 0x425cb4
push ebx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x406732
push str.hostcheck
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405cce
push 0x425cb4
push ebx
call edi
add esp, 8
jmp 0x406732
push str.cleanclientcache
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405d4c
push 0x425cb4
push ebx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x405d0a
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Invalid_policy__cleanclientcache_required_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x406732
lea ecx, [esp + 0x18]
push ecx
push 0x20006
push ebx
push str.SoftwareNetentSecISCClient
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x406732
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
mov esi, dword [esp + 0x20]
push 1
push ebx
push str.CleanCachePolicy
jmp 0x405dce
push str.homepage
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405de9
push 0x425cb4
push ebx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0x20], esi
jne 0x405d91
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x40
push str.Invalid_policy__HomePage_required_n
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x406732
lea eax, [esp + 0x18]
push eax
push 0x20006
push ebx
push str.SoftwareNetentSecISCClient
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x406732
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
mov esi, dword [esp + 0x20]
push 1
push ebx
push str.HomePage
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x406732
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406732
push str.maxclient
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405e24
push 0x425cb4
push ebx
call edi
add esp, 8
cmp eax, ebx
jne 0x405e11
push str.Invalid_policy__Max_Client_required_n
jmp 0x406240
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x6c], eax
jmp 0x406732
push str.dnstimeout
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405e72
push 0x425cb4
push ebx
call edi
add esp, 8
cmp eax, ebx
jne 0x405e5f
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x40
push str.Invalid_policy__Dns_Timeout_required_n
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x406732
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x54], eax
jmp 0x406732
push str.maxidletime
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405ea7
push 0x425cb4
push ebx
call edi
add esp, 8
cmp eax, ebx
je 0x406732
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x60], eax
jmp 0x406732
push str.maxonlinetime
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405edc
push 0x425cb4
push ebx
call edi
add esp, 8
cmp eax, ebx
je 0x406732
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x70], eax
jmp 0x406732
push str.maxspeed
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405f43
push 0x425cb4
push ebx
call edi
add esp, 8
cmp eax, ebx
je 0x406732
push 0x425b7c
push eax
call edi
push 0x425b7c
push 0
mov esi, eax
call edi
add esp, 0x10
test esi, esi
mov ebx, eax
je 0x405f28
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x68], eax
test ebx, ebx
je 0x406732
push ebx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x58], eax
jmp 0x406732
push str.maxflow
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405f78
push 0x425cb4
push ebx
call edi
add esp, 8
cmp eax, ebx
je 0x406732
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x5c], eax
jmp 0x406732
push str.default
push esi
call ebp
add esp, 8
test eax, eax
jne 0x406083
push 0x425cb4
push ebx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x405fb8
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Invalid_policy__action_required_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x406732
push str.allow
push esi
call ebp
add esp, 8
test eax, eax
jne 0x405fcb
mov bl, 0x50
jmp 0x405fe0
push str.deny
push esi
call ebp
add esp, 8
test eax, eax
jne 0x40606e
mov bl, 0x44
push 0x425cb4
push 0
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x405ffc
push str.Invalid_policy__direction_required_n
jmp 0x406240
push 0x425b10
push esi
call ebp
add esp, 8
test eax, eax
jne 0x40601a
xor dx, dx
mov dl, bl
mov word [esp + 0x4c], dx
jmp 0x406732
push 0x425b0c
push esi
call ebp
add esp, 8
test eax, eax
jne 0x406038
xor ax, ax
mov al, bl
mov word [esp + 0x44], ax
jmp 0x406732
push 0x425b08
push esi
call ebp
add esp, 8
test eax, eax
jne 0x406059
xor ax, ax
mov al, bl
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
jmp 0x406732
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push esi
push str.unknown_direction__s_n
add ecx, 0x40
push ecx
jmp 0x406729
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push esi
push str.unknown_action__s__use_deny_n
add edx, 0x40
push edx
jmp 0x406729
push str.allow
push esi
call ebp
add esp, 8
test eax, eax
jne 0x406099
mov byte [esp + 0x13], 0x50
jmp 0x4060b1
push str.deny
push esi
call ebp
add esp, 8
test eax, eax
jne 0x40671a
mov byte [esp + 0x13], 0x44
push 0x425cb4
push ebx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4060de
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Invalid_policy__direction_required_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x406732
push 0x425b10
push esi
call ebp
add esp, 8
test eax, eax
jne 0x4060f7
mov dword [esp + 0x24], 1
jmp 0x406112
push 0x425b0c
push esi
call ebp
add esp, 8
test eax, eax
jne 0x406708
mov dword [esp + 0x24], 2
push 0x425cb4
push ebx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40612d
push str.Invalid_policy__protocol_required_n
jmp 0x406240
push 0x425aa8
push esi
call ebp
add esp, 8
test eax, eax
jne 0x406143
mov byte [esp + 0x14], 6
jmp 0x4061a5
push 0x425aa4
push esi
call ebp
add esp, 8
test eax, eax
jne 0x406159
mov byte [esp + 0x14], 0x11
jmp 0x4061a5
push str.icmp
push esi
call ebp
add esp, 8
test eax, eax
jne 0x40616f
mov byte [esp + 0x14], 1
jmp 0x4061a5
push 0x425a98
push esi
call ebp
add esp, 8
test eax, eax
je 0x4061a0
push 0x425b08
push esi
call ebp
add esp, 8
test eax, eax
je 0x4061a0
push 0x425a94
push esi
call ebp
add esp, 8
test eax, eax
jne 0x4066f6
mov byte [esp + 0x14], 0
push 0x425cb4
push ebx
call edi
add esp, 8
cmp eax, ebx
jne 0x4061d1
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x40
push str.Invalid_policy__begin_port_required_n
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x406732
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call esi
push 0x425cb4
push 0
mov ebx, eax
call edi
add esp, 0xc
test eax, eax
jne 0x406208
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Invalid_policy__end_port_required_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x406732
push eax
call esi
add esp, 4
test bx, bx
mov dword [esp + 0x3c], eax
jne 0x406229
test ax, ax
jne 0x406229
mov ebx, 1
mov dword [esp + 0x3c], 0xffff
push 0x425cb4
push 0
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x406258
push str.Invalid_policy__IP_Address_or_DNS_Name_required_n
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x406732
push 0x425cb4
push 0
call edi
push 0x425cb4
push 0
mov dword [esp + 0x28], eax
call edi
push 0x425b7c
push esi
mov dword [esp + 0x40], eax
call edi
push 0x425b7c
push 0
mov dword [esp + 0x68], eax
call edi
add esp, 0x20
test eax, eax
mov dword [esp + 0x38], eax
jne 0x40629a
mov dword [esp + 0x38], str.255.255.255.255
mov edx, dword [esp + 0x48]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push edx
call edi
mov esi, eax
mov eax, dword [esp + 0x38]
push eax
call edi
mov ecx, dword [esp + 0x30]
and ecx, 0xffff
mov edx, ecx
shl edx, 4
add edx, ecx
cmp esi, 0xffffffff
lea ecx, [ecx + edx*8]
mov edx, dword [esp + 0x34]
lea ebp, [edx + ecx*2]
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x14]
mov dword [ebp], ecx
mov cl, byte [esp + 0x13]
mov byte [ebp + 4], dl
mov dx, word [esp + 0x3c]
mov byte [ebp + 5], cl
mov word [ebp + 6], bx
mov word [ebp + 8], dx
mov dword [esp + 0x2c], eax
mov dword [ebp + 0xe], eax
je 0x40630e
lea edi, [ebp + 0x12]
mov ecx, 0x40
xor eax, eax
mov dword [ebp + 0xa], esi
mov dword [esp + 0x40], edi
rep stosd dword es:[edi], eax
jmp 0x40633d
mov edi, dword [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0xa], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
lea edx, [ebp + 0x12]
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov dword [esp + 0x40], edx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0xc8
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x14]
cmp al, 6
je 0x40635e
cmp al, 0x11
je 0x40635e
test al, al
jne 0x4066df
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4066df
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4066df
push 1
mov ecx, eax
push ecx
lea edx, [esp + 0x398]
push edx
call dword [sym.imp.pcre3.dll_regcomp]
add esp, 0xc
test eax, eax
jne 0x4066df
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov cl, al
or cl, 0x80
mov byte [ebp + 5], cl
mov cl, byte [esp + 0x14]
mov byte [esp + 0x80], cl
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x81], al
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x3c]
mov word [esp + 0x84], dx
mov word [esp + 0x82], bx
mov eax, dword [ebp + 0xa]
mov dword [esp + 0x8c], ecx
or ecx, 0xffffffff
mov dword [esp + 0x88], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea ebp, [esp + 0x190]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea ebp, [esp + 0x290]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea ebp, [esp + 0x90]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x4c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
and ebx, 0xffff
push ebx
push ecx
push edx
push eax
call fcn.00403b40
mov ecx, dword [esp + 0x38]
add esp, 4
push eax
push ecx
call fcn.00403b70
mov edx, dword [esp + 0x40]
add esp, 4
push eax
push edx
mov eax, dword [esp + 0x34]
push eax
push str._ApplyPolicy__Add_APP_RULE__App__s__AppClient__s__Dir__s__Proto__s__Address__s__Netmask__s__Port__d__d
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x7fc]
lea eax, [ecx + 0x7f0]
mov ecx, dword [eax + 8]
sub edx, ecx
mov eax, 0x51eb851f
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
add esp, 0x30
cmp edx, 1
mov ebp, ecx
jae 0x4065e3
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x7f4]
test esi, esi
lea edi, [edx + 0x7f0]
je 0x406511
mov edx, ecx
sub edx, esi
mov eax, 0x51eb851f
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov ebx, edx
ja 0x406516
mov ebx, 1
test esi, esi
jne 0x40651e
xor edx, edx
jmp 0x406531
sub ecx, esi
mov eax, 0x51eb851f
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [edx + ebx]
test eax, eax
mov dword [esp + 0x2c], eax
jge 0x40653e
xor eax, eax
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 5
push edx
call sub.MFC42.DLL_operatornew
mov edi, dword [edi + 4]
add esp, 4
cmp edi, ebp
mov ebx, eax
mov esi, ebx
je 0x406575
push edi
push esi
call fcn.0040b650
add edi, 0x320
add esp, 8
add esi, 0x320
cmp edi, ebp
jne 0x40655b
lea eax, [esp + 0x7c]
push eax
push esi
call fcn.0040b650
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x7f8]
add esp, 8
add esi, 0x320
push esi
lea esi, [ecx + 0x7f0]
push edx
push ebp
mov ecx, esi
call fcn.0040b5d0
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x30]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
add eax, ebx
add esp, 4
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.0040b5a0
inc eax
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 5
add ecx, ebx
mov dword [esi + 8], ecx
mov dword [esi + 4], ebx
jmp 0x4066df
mov edx, ecx
sub edx, ebp
mov eax, 0x51eb851f
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x406664
mov ebx, dword [esp + 0x1c]
lea edx, [ebp + 0x320]
push edx
push ecx
lea esi, [ebx + 0x7f0]
push ebp
mov ecx, esi
call fcn.0040b5d0
mov edi, dword [esi + 8]
lea eax, [esp + 0x7c]
push eax
mov ecx, edi
sub ecx, ebp
mov eax, 0x51eb851f
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, 1
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.0040b610
mov eax, dword [esi + 8]
cmp ebp, eax
je 0x4066ca
mov edi, ebp
add ebp, 0x320
cmp ebp, eax
mov ecx, 0xc8
lea esi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
jne 0x40664b
jmp 0x4066ca
mov ebx, dword [esp + 0x1c]
push ecx
lea eax, [ecx - 0x320]
push ecx
lea esi, [ebx + 0x7f0]
push eax
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.0040b5d0
mov edx, dword [esi + 8]
lea eax, [edx - 0x320]
cmp ebp, eax
je 0x4066a9
sub eax, 0x320
sub edx, 0x320
cmp eax, ebp
mov ecx, 0xc8
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
jne 0x40668f
lea eax, [ebp + 0x320]
cmp ebp, eax
je 0x4066ca
mov edi, ebp
add ebp, 0x320
cmp ebp, eax
mov ecx, 0xc8
lea esi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
jne 0x4066b3
mov ecx, dword [ebx + 0x7f8]
lea eax, [ebx + 0x7f0]
add ecx, 0x320
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.MSVCRT.dll_strtok]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
inc eax
mov dword [esp + 0x30], eax
jmp 0x406732
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push esi
push str.unknown_protocol__s_n
add ecx, 0x40
push ecx
jmp 0x406729
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push esi
push str.unknown_direction__s_n
add edx, 0x40
push edx
jmp 0x406729
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
push str.unknown_action__s__use_deny_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x78]
inc esi
cmp esi, eax
mov dword [esp + 0x50], esi
jl 0x405c3f
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x406792
lea ecx, [esp + 0x20]
push ecx
push 0x20006
push 0
push str.SoftwareNetentSecISCClient
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406792
mov esi, dword [esp + 0x20]
push str.HomePage
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x406792
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x30]
mov esi, ebp
and esi, 0xffff
mov edx, esi
shl edx, 4
add edx, esi
lea eax, [esi + edx*8]
lea edi, [eax + eax + 0x136]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4067dd
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push edi
add ecx, 0x40
push str.allocate_ICS_Policy_buffer__size_d__fails_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
jmp 0x406875
test esi, esi
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x3a4]
mov ecx, dword [esp + 0x54]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x70]
mov dword [ebx], edx
mov edx, dword [esp + 0x60]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x58]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x18], edx
mov edx, dword [esp + 0x1c]
mov byte [ebx + 0x20], al
mov byte [ebx + 0x21], cl
mov word [ebx + 0x22], bp
mov word [edx + 0x800], ax
mov word [edx + 0x802], cx
jle 0x406863
mov eax, dword [esp + 0x34]
lea edx, [ebx + 0x24]
mov ebp, esi
mov esi, eax
mov edi, edx
mov ecx, 0x44
rep movsd dword es:[edi], dword [esi]
add eax, 0x112
add edx, 0x112
dec ebp
movsw word es:[edi], word [esi]
jne 0x406848
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x28]
push ebx
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::AddFirewallPolicy_struct__RS_FW_POLICY__]
test eax, eax
jne 0x40687a
mov byte [esp + 0x12], 0
mov edx, dword [esp + 0x74]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
je 0x406898
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4068a9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
je 0x4068b7
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38c
ret 8