Function at 0x40c7d8
Capabilities:
Query or enumerate registry value
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a6ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x218]
call fcn.00403990
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x40c82b
cmp dword [ebp + 0xc], 0
jne 0x40c852
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0042c31d
mov eax, dword [ebp - 0x430]
jmp 0x40ccc6
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp - 0x454]
call fcn.0040d301
lea edx, [ebp - 0x424]
push edx
lea ecx, [ebp - 0x218]
call fcn.0042c4a6
mov dword [ebp - 0x320], 0
jmp 0x40c895
mov eax, dword [ebp - 0x320]
add eax, 1
mov dword [ebp - 0x320], eax
mov ecx, 0x454498
call fcn.004039c0
cmp dword [ebp - 0x320], eax
jge 0x40ca1e
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x320]
push edx
lea eax, [ebp - 0x434]
push eax
mov ecx, 0x454498
call fcn.004039e0
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x45c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x45c]
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], 0
lea ecx, [ebp - 0x434]
call fcn.0042c31d
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x320]
push edx
lea eax, [ebp - 0x43c]
push eax
mov ecx, 0x454498
call fcn.004039e0
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x460]
mov dword [ebp - 0x464], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x464]
push edx
call fcn.0040dc50
mov byte [ebp - 0x438], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.0042c31d
mov eax, dword [ebp - 0x438]
and eax, 0xff
test eax, eax
je 0x40ca19
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x320]
push edx
lea eax, [ebp - 0x440]
push eax
mov ecx, 0x4544ac
call fcn.004039e0
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx]
push edx
push 0x4498e8
lea eax, [ebp - 0x210]
push eax
call fcn.00419dae
add esp, 0x10
lea ecx, [ebp - 0x440]
call fcn.0042c31d
mov ecx, dword [ebp - 0x320]
push ecx
lea edx, [ebp - 0x444]
push edx
mov ecx, 0x4544c0
call fcn.004039e0
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x470], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x470]
call fcn.004039b0
push eax
lea ecx, [ebp - 0x318]
push ecx
call fcn.00419a10
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x444]
call fcn.0042c31d
mov dword [ebp - 0x10], 1
jmp 0x40ca1e
jmp 0x40c886
cmp dword [ebp - 0x10], 0
jne 0x40ca58
push 0x4498f0
call fcn.00401000
add esp, 4
mov dword [ebp - 0x448], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0042c31d
mov eax, dword [ebp - 0x448]
jmp 0x40ccc6
lea edx, [ebp - 0x210]
push edx
push 0x449908
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 0x40cc81
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x214], 0x10
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x324]
push ecx
push 0
lea edx, [ebp - 0x318]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cc6b
push 0x4503bc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041a3e0
add esp, 8
test eax, eax
je 0x40cb01
mov edx, dword [ebp + 8]
push edx
call fcn.00419b00
add esp, 4
test eax, eax
jne 0x40cc3e
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x454]
call fcn.0040ccfe
test eax, eax
jne 0x40cc3e
mov ecx, dword [ebp - 0x320]
push ecx
lea edx, [ebp - 0x44c]
push edx
mov ecx, 0x4544d4
call fcn.004039e0
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x478], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x478]
call fcn.004039b0
push eax
lea ecx, [ebp - 0x318]
push ecx
call fcn.00419a10
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
call fcn.0042c31d
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 - 0x318]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cc28
lea ecx, [ebp - 0x110]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
je 0x40cc0b
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00419a10
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push 0x449934
call fcn.00401000
add esp, 8
mov dword [ebp - 0x428], 1
jmp 0x40cc26
mov edx, dword [ebp + 8]
push edx
push 0x449954
call fcn.00401000
add esp, 8
mov dword [ebp - 0x428], 0
jmp 0x40cc3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x449984
call fcn.00401000
add esp, 8
jmp 0x40cc69
push 0x4503c0
mov eax, dword [ebp + 8]
push eax
call fcn.0041a3e0
add esp, 8
test eax, eax
jne 0x40cc5f
mov dword [ebp - 0x428], 0
jmp 0x40cc69
mov dword [ebp - 0x428], 1
jmp 0x40cc7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4499cc
call fcn.00401000
add esp, 8
jmp 0x40cc95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x449a0c
call fcn.00401000
add esp, 8
mov ecx, dword [ebp - 0x42c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x428]
mov dword [ebp - 0x450], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0042c31d
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8