Function at 0x409320
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x18
push edi
xor edi, edi
cmp dword [esp + 0x24], edi
mov dword [esp + 4], edi
mov dword [esp + 8], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], edi
je 0x40956e
cmp dword [esp + 0x20], edi
je 0x40956e
push ebx
push 0x100
call fcn.0041ae22
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0x18], ebx
jne 0x40936e
pop ebx
xor eax, eax
pop edi
add esp, 0x18
ret
push esi
push 0x100
call fcn.0041ae22
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x409394
push ebx
call fcn.0041b96e
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4093cb
push ebx
call fcn.0041b96e
push esi
call fcn.0041b96e
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x18
ret
mov edx, dword [esp + 0xc]
push ebp
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x28]
push ecx
push esi
push edi
push edx
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
je 0x4094d9
cmp eax, edi
jne 0x4094d9
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.0041c7f9
add esp, 8
test eax, eax
jne 0x4094ad
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push edi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4094f2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push edi
push str.Connection
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4094e7
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push str.Name
push edx
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409497
cmp dword [esp + 0x24], 1
je 0x40951a
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x20], edi
call ebp
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
push esi
push ebx
push eax
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
add ebx, 1
cmp eax, 0x103
jne 0x409400
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov edx, dword [esp + 0x20]
push edx
jmp 0x4094fe
mov edx, dword [esp + 0x14]
push edx
call ebp
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x14], edi
call fcn.0041b96e
push esi
call fcn.0041b96e
add esp, 8
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x18
ret
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push ebx
push 0x80
push edx
call fcn.0041aff9
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x20], edi
call ebp
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x18], edi
call ebp
push ebx
mov dword [esp + 0x14], edi
call fcn.0041b96e
push esi
call fcn.0041b96e
add esp, 8
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x18
ret
xor eax, eax
pop edi
add esp, 0x18
ret