Function at 0x415d08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cc8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov dword [ebp - 0x44c], ecx
push str.Inside_PrinterInfoManager::GetIPAddressFromReg__
call fcn.00401000
add esp, 4
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x218]
call fcn.004044f0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x415d89
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0043d7a3
mov eax, dword [ebp - 0x430]
jmp 0x4161aa
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp - 0x44c]
call fcn.00416fed
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x218]
call fcn.0043d92c
mov dword [ebp - 0x31c], 0
jmp 0x415dcc
mov eax, dword [ebp - 0x31c]
add eax, 1
mov dword [ebp - 0x31c], eax
mov ecx, 0x46bf50
call fcn.004045c0
cmp dword [ebp - 0x31c], eax
jge 0x415f6d
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x31c]
push edx
lea eax, [ebp - 0x438]
push eax
mov ecx, 0x46bf50
call fcn.004045e0
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x454], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x454]
push edx
call fcn.004061a0
mov byte [ebp - 0x434], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.0043d7a3
mov eax, dword [ebp - 0x434]
and eax, 0xff
test eax, eax
je 0x415f68
mov ecx, dword [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x43c]
push edx
mov ecx, 0x46bf78
call fcn.004045e0
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x45c]
call fcn.00404560
push eax
lea ecx, [ebp - 0x42c]
call fcn.0043d811
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.0043d7a3
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x31c]
push edx
lea eax, [ebp - 0x440]
push eax
mov ecx, 0x46bf64
call fcn.004045e0
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x460]
mov edx, dword [ecx]
push edx
push 0x46102c
lea eax, [ebp - 0x210]
push eax
call fcn.0042a6b4
add esp, 0x10
lea ecx, [ebp - 0x440]
call fcn.0043d7a3
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x318]
push ecx
call fcn.0042a3a0
add esp, 0xc
lea ecx, [ebp - 0x42c]
call fcn.00404570
cmp eax, 0x100
jae 0x415f24
lea ecx, [ebp - 0x42c]
call fcn.00404570
mov dword [ebp - 0x464], eax
jmp 0x415f2e
mov dword [ebp - 0x464], 0xff
mov edx, dword [ebp - 0x464]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00404560
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0042a150
add esp, 0xc
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.0043d7a3
jmp 0x415f6d
jmp 0x415dbd
cmp dword [ebp - 0x10], 0
jne 0x415fa7
push 0x461034
call fcn.00401000
add esp, 4
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0043d7a3
mov eax, dword [ebp - 0x444]
jmp 0x4161aa
lea ecx, [ebp - 0x210]
push ecx
push 0x46104c
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x428]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416165
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x214], pe_nt_image_headers32
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x320]
push eax
push 0
lea ecx, [ebp - 0x318]
push ecx
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41614f
mov eax, dword [ebp - 0x44c]
mov ecx, dword [eax + 0x410]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042a0a0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
push str.GetPrinterIPfromRegistry:_cPrinterIP_s___d___d_n
call fcn.00401000
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042a0a0
add esp, 4
test eax, eax
ja 0x416143
push str.HostName
lea edx, [ebp - 0x318]
push edx
call fcn.00429bd0
add esp, 8
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x214], pe_nt_image_headers32
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x320]
push edx
push 0
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41612d
lea edx, [ebp - 0x110]
push edx
push str.GetPrinterIPfromRegistry:_HostName___s__n
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x110]
push eax
call fcn.0042a0a0
add esp, 4
test eax, eax
jbe 0x416121
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00429bd0
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0042a0a0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.GetPrinterIPfromRegistry:_IPAddress_HostName__s___d_n
call fcn.00401000
add esp, 0xc
mov dword [ebp - 0x424], 1
jmp 0x41612b
mov dword [ebp - 0x424], 0
jmp 0x416141
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46111c
call fcn.00401000
add esp, 8
jmp 0x41614d
mov dword [ebp - 0x424], 1
jmp 0x416163
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x461164
call fcn.00401000
add esp, 8
jmp 0x416179
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4611a4
call fcn.00401000
add esp, 8
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x448], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0043d7a3
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8