Function at 0x640030f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x64142246
mov eax, dword fs:[0]
push eax
sub esp, 0xc24
mov eax, dword [0x6419e6d0]
xor eax, esp
mov dword [esp + 0xc20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6419e6d0]
xor eax, esp
push eax
lea eax, [esp + 0xc38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc48]
xor edi, edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push str.softwareCanon_Electronics_Inc.NetworkMonitor
mov dword [esp + 0xc60], edi
push SysReAllocStringLen
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x6400318a
push eax
push 0x64179cb0
push 3
mov esi, 0x641a62d4
call fcn.64004fe0
add esp, 0xc
xor eax, eax
jmp 0x640033e3
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
push str.Broadcasts
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 4
call ebx
cmp eax, edi
je 0x640031c4
xor eax, eax
jmp 0x640031c8
mov eax, dword [esp + 0x18]
xor edx, edx
cmp eax, edi
setne dl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [ebp + 4], edx
lea edx, [esp + 0x24]
push edx
push edi
push str.Resident_flag
push esi
mov dword [esp + 0x30], 4
call ebx
cmp eax, edi
mov eax, 1
jne 0x64003207
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [ebp + 8], ecx
cmp esi, edi
je 0x6400321c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.softwareCanon_Electronics_Inc.NetworkMonitorBroadcasts
mov dword [esp + 0xc60], 1
push SysReAllocStringLen
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x64003336
mov ebx, dword [esp + 0x1c]
push 0x800
lea ecx, [esp + 0x438]
push edi
push ecx
mov dword [esp + 0x38], ebx
xor ebp, ebp
call fcn.6411bc30
mov esi, 0x400
push esi
lea edx, [esp + 0x44]
push edi
push edx
mov dword [esp + 0x2c], esi
call fcn.6411bc30
add esp, 0x18
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x448]
push ecx
push edi
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
jne 0x640033b7
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x64003341
lea eax, [esp + 0x434]
lea esi, [esp + 0x28]
call fcn.64003040
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x6400330a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x30]
mov ebx, dword [esi + 0x14]
add esi, 0xc
cmp ebx, edi
jl 0x6400340d
lea edi, [ebx + 1]
call fcn.64013b20
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x24]
mov dword [ecx + ebx*4], edx
mov ebx, dword [esp + 0x1c]
xor edi, edi
jmp 0x64003356
push eax
push 0x64179d60
jmp 0x64003174
push eax
push str.CAppSettings::Load_RegEnumValue_returns_unknown_value_:__d
push 3
mov esi, 0x641a62d4
call fcn.64004fe0
add esp, 0xc
push 0x800
lea eax, [esp + 0x438]
push edi
push eax
inc ebp
call fcn.6411bc30
mov esi, 0x400
push esi
lea ecx, [esp + 0x44]
push edi
push ecx
mov dword [esp + 0x2c], esi
call fcn.6411bc30
add esp, 0x18
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x448]
push eax
push ebp
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
je 0x640032c4
cmp eax, 0x103
je 0x640033d3
push eax
push str.CAppSettings::Load_unknown_error__:__d
push 3
mov esi, 0x641a62d4
call fcn.64004fe0
add esp, 0xc
cmp ebx, edi
je 0x640033de
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0xc38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc20]
xor ecx, esp
call fcn.64119c23
add esp, 0xc30
ret 4
call fcn.6401d5d9
int3