Function at 0x10045440
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x10087040]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esi], eax
call fcn.10050140
cmp eax, 3
je 0x1004548a
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.10052757
add esp, 0x118
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push ebp
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10045583
push esi
push str.SearchList
push dword [esp + 0x1c]
call fcn.100453a0
lea eax, [esp + 0x1c]
push eax
push str.Domain
push dword [esp + 0x28]
call fcn.100453a0
add esp, 0x18
test eax, eax
je 0x1004557d
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10044700
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x10045509
push ecx
call fcn.10044700
add esp, 4
add eax, 2
jmp 0x1004550e
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x10087004]
add esp, 8
test eax, eax
je 0x10045565
cmp dword [esi], 0
jne 0x10045528
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10044700
add esp, 4
test eax, eax
je 0x10045559
mov edi, dword [esi]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10045540
mov ax, word [0x10058b20]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x10087008]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x10045658
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x1c]
call fcn.100453a0
add esp, 0xc
test eax, eax
je 0x10045652
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10044700
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x100455e4
push ecx
call fcn.10044700
add esp, 4
add eax, 2
jmp 0x100455e9
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x10087004]
add esp, 8
test eax, eax
je 0x1004563a
cmp dword [esi], 0
jne 0x10045603
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10044700
add esp, 4
test eax, eax
je 0x1004562e
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10045615
mov ax, word [0x10058b20]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x10087008]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftSystemDNSClient
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x10045733
lea eax, [esp + 0x10]
push eax
push str.PrimaryDNSSuffix
push dword [esp + 0x1c]
call fcn.100453a0
add esp, 0xc
test eax, eax
je 0x1004572d
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10044700
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x100456b9
push ecx
call fcn.10044700
add esp, 4
add eax, 2
jmp 0x100456be
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x10087004]
add esp, 8
test eax, eax
je 0x10045715
cmp dword [esi], 0
jne 0x100456d8
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10044700
add esp, 4
test eax, eax
je 0x10045709
mov edi, dword [esi]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100456f0
mov ax, word [0x10058b20]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x10087008]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParametersInterfaces
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x100459d2
push eax
push eax
push eax
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100459cc
nop dword [eax]
inc dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 1
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x1004599b
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x20]
call fcn.100453a0
add esp, 0xc
test eax, eax
je 0x10045843
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10044700
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x100457e1
push ecx
call fcn.10044700
add esp, 4
add eax, 2
jmp 0x100457e6
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x10087004]
add esp, 8
test eax, eax
je 0x10045831
cmp dword [esi], 0
jne 0x10045800
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10044700
add esp, 4
test eax, eax
je 0x10045825
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10045812
mov ax, word [0x10058b20]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x10087008]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.Domain
push dword [esp + 0x20]
call fcn.100453a0
add esp, 0xc
test eax, eax
je 0x100458e6
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10044700
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x10045884
push ecx
call fcn.10044700
add esp, 4
add eax, 2
jmp 0x10045889
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x10087004]
add esp, 8
test eax, eax
je 0x100458d4
cmp dword [esi], 0
jne 0x100458a3
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10044700
add esp, 4
test eax, eax
je 0x100458c8
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100458b5
mov ax, word [0x10058b20]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x10087008]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.DhcpDomain
push dword [esp + 0x20]
call fcn.100453a0
add esp, 0xc
test eax, eax
je 0x10045989
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10044700
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x10045927
push ecx
call fcn.10044700
add esp, 4
add eax, 2
jmp 0x1004592c
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x10087004]
add esp, 8
test eax, eax
je 0x10045977
cmp dword [esi], 0
jne 0x10045946
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10044700
add esp, 4
test eax, eax
je 0x1004596b
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10045958
mov ax, word [0x10058b20]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x10087008]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10045780
push dword [esp + 0x14]
call edi
mov ecx, dword [esp + 0x124]
xor eax, eax
cmp dword [esi], eax
pop edi
pop ebp
pop ebx
setne al
pop esi
xor ecx, esp
call fcn.10052757
add esp, 0x118
ret