Function at 0x4161ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ccde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x478
mov dword [ebp - 0x458], ecx
push str.Inside_PrinterInfoManager::GetIPAddressByName__
call fcn.00401000
add esp, 4
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x21c]
call fcn.004044f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.004044f0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x416229
cmp dword [ebp + 0xc], 0
jne 0x41625f
mov dword [ebp - 0x430], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0043d7a3
mov eax, dword [ebp - 0x430]
jmp 0x41676b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp - 0x458]
call fcn.00416fed
lea edx, [ebp - 0x424]
push edx
lea ecx, [ebp - 0x21c]
call fcn.0043d92c
mov dword [ebp - 0x320], 0
jmp 0x4162a2
mov eax, dword [ebp - 0x320]
add eax, 1
mov dword [ebp - 0x320], eax
mov ecx, 0x46bf50
call fcn.004045c0
cmp dword [ebp - 0x320], eax
jge 0x416489
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x320]
push edx
lea eax, [ebp - 0x434]
push eax
mov ecx, 0x46bf50
call fcn.004045e0
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x460], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x460]
mov eax, dword [edx]
push eax
push str._IN_GetIPAddressByName____Compare_Monitor_Name_:__s__Curent_Monitor_Name_:__s
call fcn.00401000
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x434]
call fcn.0043d7a3
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x320]
push edx
lea eax, [ebp - 0x43c]
push eax
mov ecx, 0x46bf50
call fcn.004045e0
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x468], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x468]
push edx
call fcn.004061a0
mov byte [ebp - 0x438], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
call fcn.0043d7a3
mov eax, dword [ebp - 0x438]
and eax, 0xff
test eax, eax
je 0x416484
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x320]
push edx
lea eax, [ebp - 0x440]
push eax
mov ecx, 0x46bf64
call fcn.004045e0
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx]
push edx
push 0x461260
lea eax, [ebp - 0x210]
push eax
call fcn.0042a6b4
add esp, 0x10
lea ecx, [ebp - 0x440]
call fcn.0043d7a3
mov ecx, dword [ebp - 0x320]
push ecx
lea edx, [ebp - 0x444]
push edx
mov ecx, 0x46bf78
call fcn.004045e0
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x474]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0043d8dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x444]
call fcn.0043d7a3
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x31c]
push edx
call fcn.0042a3a0
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00404570
cmp eax, 0x100
jae 0x41644f
lea ecx, [ebp - 0x218]
call fcn.00404570
mov dword [ebp - 0x478], eax
jmp 0x416459
mov dword [ebp - 0x478], 0xff
mov eax, dword [ebp - 0x478]
push eax
lea ecx, [ebp - 0x218]
call fcn.00404560
push eax
lea ecx, [ebp - 0x31c]
push ecx
call fcn.0042a150
add esp, 0xc
mov dword [ebp - 0x10], 1
jmp 0x416489
jmp 0x416293
cmp dword [ebp - 0x10], 0
jne 0x4164d2
push str.mismatch_network_port
call fcn.00401000
add esp, 4
mov dword [ebp - 0x448], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0043d7a3
mov eax, dword [ebp - 0x448]
jmp 0x41676b
lea edx, [ebp - 0x210]
push edx
push str.GetPrinterIPfromRegistry:_cszRegPath_s_n
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x210]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4166cb
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x214], pe_nt_image_headers32
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x324]
push ecx
push 0
lea edx, [ebp - 0x31c]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4166b5
push 0x46c9d8
lea ecx, [ebp - 0x110]
push ecx
call fcn.0042a630
add esp, 8
test eax, eax
je 0x416584
lea edx, [ebp - 0x110]
push edx
call fcn.0042a0a0
add esp, 4
test eax, eax
jne 0x4166a9
mov eax, dword [ebp - 0x320]
push eax
lea ecx, [ebp - 0x44c]
push ecx
mov ecx, 0x46bf8c
call fcn.004045e0
mov dword [ebp - 0x47c], eax
mov edx, dword [ebp - 0x47c]
mov dword [ebp - 0x480], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x480]
push eax
lea ecx, [ebp - 0x218]
call fcn.0043d8dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44c]
call fcn.0043d7a3
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x31c]
push ecx
call fcn.0042a3a0
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00404570
cmp eax, 0x100
jae 0x41660e
lea ecx, [ebp - 0x218]
call fcn.00404570
mov dword [ebp - 0x484], eax
jmp 0x416618
mov dword [ebp - 0x484], 0xff
mov edx, dword [ebp - 0x484]
push edx
lea ecx, [ebp - 0x218]
call fcn.00404560
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.0042a150
add esp, 0xc
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x214], pe_nt_image_headers32
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x324]
push eax
push 0
lea ecx, [ebp - 0x31c]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41669d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetPrinterIPfromRegistry:_RegQueryValueEx___for_DNS_fail_Lasterror_d_n
call fcn.00401000
add esp, 8
mov dword [ebp - 0x428], 0
jmp 0x4166a7
mov dword [ebp - 0x428], 1
jmp 0x4166b3
mov dword [ebp - 0x428], 1
jmp 0x4166c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetPrinterIPfromRegistry:_RegQueryValueEx_fail_Lasterror_d_n
call fcn.00401000
add esp, 8
jmp 0x4166df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetPrinterIPfromRegistry:_RegOpenKeyEx_fail_Lasterror_d_n
call fcn.00401000
add esp, 8
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x428], 0
je 0x41673a
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x458]
call fcn.00417f91
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0043d7a3
mov eax, dword [ebp - 0x450]
jmp 0x41676b
mov dword [ebp - 0x454], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0043d7a3
mov eax, dword [ebp - 0x454]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8