Function at 0x417366
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x6ba0d0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x628182
call fcn.0058c0ed
xor ebx, ebx
lea eax, [ebp - 0x18]
push eax
push 1
mov esi, ecx
push ebx
push str.SoftwarePoliciesZhornStickies
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esi + 0x1690], bl
mov byte [esi + 0x1691], bl
mov byte [esi + 0x1692], bl
mov byte [esi + 0x1693], bl
mov byte [esi + 0x1694], bl
mov byte [esi + 0x1695], bl
mov byte [esi + 0x1696], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417761
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.SyncWithServer
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call edi
test eax, eax
jne 0x41740a
cmp word [ebp], 1
sete al
mov byte [esi + 0x118], al
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.ServerName
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call edi
test eax, eax
jne 0x41747f
lea eax, [ebp]
lea edi, [esi + 0x114]
push eax
mov ecx, edi
mov byte [esi + 0x1690], 1
call fcn.00401e24
push edi
lea eax, [ebp - 0x1c]
push str.GPO_server_IP:
push eax
call fcn.00405a0e
add esp, 8
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov dword [ebp - 4], ebx
call fcn.00402e5b
push 0x1c
mov ecx, esi
call fcn.00415cb2
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401493
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.UseDNS
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call edi
test eax, eax
jne 0x4174d7
cmp word [ebp], 1
push ecx
sete al
mov byte [esi + 0x1691], 1
mov byte [esi + 0x111], al
mov dword [ebp - 0x14], esp
mov ecx, esp
cmp al, bl
je 0x4174c4
push str.GPO_usedns:yes
jmp 0x4174c9
push str.GPO_usedns:no
call fcn.00402035
push 0x1c
mov ecx, esi
call fcn.00415cb2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.UseNetworking
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call edi
test eax, eax
jne 0x41752f
cmp word [ebp], 1
push ecx
sete al
mov byte [esi + 0x1692], 1
mov byte [esi + 0x110], al
mov dword [ebp - 0x14], esp
mov ecx, esp
cmp al, bl
je 0x41751c
push str.GPO_network:yes
jmp 0x417521
push str.GPO_network:no
call fcn.00402035
push 0x1c
mov ecx, esi
call fcn.00415cb2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.Port
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call edi
test eax, eax
jne 0x4175bd
lea eax, [ebp]
push eax
mov byte [esi + 0x1695], 1
call fcn.0058e120
lea ecx, [ebp - 0x14]
mov dword [esi + 0xfd8], eax
mov dword [esp], str.GPO_port
call fcn.00402035
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 1
call fcn.0040e47a
add esp, 8
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00402e5b
push 0x1c
mov ecx, esi
call fcn.00415cb2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401493
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.LogAllNetworking
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call edi
test eax, eax
jne 0x417639
cmp word [ebp], 1
lea ecx, [ebp - 0x14]
sete al
mov byte [esi + 0xc44], al
cmp al, bl
je 0x417604
push str.GPO_logalltoserver:_yes
call fcn.00402035
mov dword [ebp - 4], 3
jmp 0x417615
push str.GPO_logalltoserver:_no
call fcn.00402035
mov dword [ebp - 4], 4
push ecx
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00402e5b
push 0x1c
mov ecx, esi
call fcn.00415cb2
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401493
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.SkinFile
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call edi
test eax, eax
jne 0x417687
lea eax, [ebp]
lea ecx, [esi + 0x14c]
push eax
mov byte [esi + 0x1693], 1
call fcn.00401e24
push ecx
lea eax, [esi + 0x14c]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00402e5b
mov ecx, esi
call fcn.00416fce
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.UseEmail
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call edi
test eax, eax
jne 0x4176d0
movzx eax, word [ebp]
push ecx
mov dword [ebp - 0x14], esp
mov ecx, esp
push str.GPO_useemail
mov byte [esi + 0x1694], 1
mov dword [esi + 0x188], eax
call fcn.00402035
push 0x1c
mov ecx, esi
call fcn.00415cb2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push str.SMTPServerName
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x208
call edi
test eax, eax
jne 0x417761
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1c]
mov byte [esi + 0x1696], 1
call fcn.00402035
lea eax, [ebp - 0x1c]
lea ebx, [esi + 0xfbc]
push eax
mov ecx, ebx
mov dword [ebp - 4], 5
call fcn.00401dd7
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401493
push ebx
lea eax, [ebp - 0x20]
push str.GPO_smtp_server:
push eax
call fcn.00405a0e
add esp, 8
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
mov dword [ebp - 4], 6
call fcn.00402e5b
push 0x1c
mov ecx, esi
call fcn.00415cb2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0058c0de
add ebp, 0x20c
leave
ret