Function at 0x64003420
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x641431bc
mov eax, dword fs:[0]
push eax
sub esp, 0xc30
mov eax, dword [0x6419e6d0]
xor eax, esp
mov dword [esp + 0xc2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6419e6d0]
xor eax, esp
push eax
lea eax, [esp + 0xc44]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
mov dword [esp + 0xc68], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push str.softwareCanon_Electronics_Inc.NetworkMonitor
push SysReAllocStringLen
mov dword [esp + 0x38], esi
call ebx
cmp eax, esi
je 0x640034b7
push eax
push str.CAppSettings::Load_reg.Create_HKEY_CURRENT_USER__APPSETTING_REGPATH_DEFAULT__failed___d
push 3
mov esi, 0x641a62d4
call fcn.64004fe0
add esp, 0xc
xor eax, eax
jmp 0x64003815
mov eax, dword [edi + 4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
push 4
cmp eax, 1
lea eax, [esp + 0x24]
push eax
push 4
sete dl
push esi
mov esi, dword [esp + 0x24]
push str.Broadcasts
push esi
mov dword [esp + 0x38], edx
call ebp
mov eax, dword [edi + 8]
push 4
xor ecx, ecx
lea edx, [esp + 0x24]
push edx
cmp eax, 1
push 4
sete cl
push 0
push str.Resident_flag
push esi
mov dword [esp + 0x38], ecx
call ebp
xor ebp, ebp
cmp esi, ebp
je 0x64003511
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push str.softwareCanon_Electronics_Inc.NetworkMonitorBroadcasts
mov dword [esp + 0xc6c], 1
push SysReAllocStringLen
mov dword [esp + 0x3c], ebp
call ebx
cmp eax, ebp
jne 0x64003712
mov eax, dword [edi + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
test eax, eax
jle 0x640035dc
mov edi, edi
test ebp, ebp
jl 0x6400371d
cmp ebp, dword [edi + 0x14]
jge 0x6400371d
mov edx, dword [edi + 0x10]
mov ebx, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
lea ecx, [esp + 0x14]
push ecx
call fcn.64001000
mov eax, dword [esp + 0x18]
add esp, 4
push eax
mov esi, eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x18]
push edx
push edi
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
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 0x640035cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
inc ebp
cmp ebp, dword [ecx + 0x14]
mov edi, ecx
jl 0x64003560
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
call fcn.64028444
push 0x800
xor ebp, ebp
lea edx, [esp + 0x444]
push ebp
push edx
mov byte [esp + 0xc58], 2
call fcn.6411bc30
mov esi, 0x400
push esi
lea eax, [esp + 0x50]
push ebp
push eax
mov dword [esp + 0x2c], esi
call fcn.6411bc30
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x20]
push eax
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x454]
push edx
push ebp
push ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x6400379f
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x64003722
lea eax, [esp + 0x440]
lea esi, [esp + 0x24]
call fcn.64003040
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x64003697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi + 0x14]
xor eax, eax
test edx, edx
jle 0x640036bc
test eax, eax
jl 0x6400371d
cmp eax, edx
jge 0x6400371d
mov ecx, dword [edi + 0x10]
cmp esi, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
je 0x64003737
inc eax
cmp eax, edx
jl 0x640036a0
lea edx, [esp + 0x440]
push edx
lea ecx, [esp + 0x24]
call fcn.640029f0
lea eax, [esp + 0x20]
mov byte [esp + 0xc4c], 3
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.640287bf
mov byte [esp + 0xc4c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x64003737
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x64003737
push eax
push str.CAppSettings::Load_reg.Create_HKEY_CURRENT_USER__APPSETTING_REGPATH_BROADCASTADDRESSES__failed___d
jmp 0x640034a1
call fcn.6401d5d9
push eax
push str.CAppSettings::Save_RegEnumValue_returns_unknown_value_:__d
push 3
mov esi, 0x641a62d4
call fcn.64004fe0
add esp, 0xc
push 0x800
lea ecx, [esp + 0x444]
push 0
push ecx
inc ebp
call fcn.6411bc30
mov esi, 0x400
push esi
lea edx, [esp + 0x50]
push 0
push edx
mov dword [esp + 0x2c], esi
call fcn.6411bc30
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x454]
push ecx
push ebp
push ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x6400364f
cmp eax, 0x103
je 0x640037bb
push eax
push str.CAppSettings::Save_unknown_error__:__d
push 3
mov esi, 0x641a62d4
call fcn.64004fe0
add esp, 0xc
mov eax, dword [esp + 0x34]
xor esi, esi
test eax, eax
jle 0x640037f4
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x640037d0
test esi, esi
jl 0x6400371d
cmp esi, eax
jge 0x6400371d
mov edx, dword [esp + 0x30]
mov eax, dword [edx + esi*4]
push eax
push ebx
call edi
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
jl 0x640037d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4c], 1
call fcn.64028670
test ebx, ebx
je 0x64003810
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0xc44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc2c]
xor ecx, esp
call fcn.64119c23
add esp, 0xc3c
ret