Function at 0x402340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
mov ecx, dword [str.SoftwareXrplatform]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4023ba
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20019
push 0
push 0
push 0
mov ecx, dword [str.GuestsAndroidNetwork0]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x1c], eax
jmp 0x402425
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42aef4
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
mov ecx, dword [str.SoftwareXrplatform]
push ecx
push 0x42af00
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push 0x42af1c
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 1
call fcn.004150dc
jmp 0x40253c
cmp dword [ebp - 0x1c], 0
jne 0x40253c
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x42af44
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40253c
cmp dword [ebp - 4], 7
jne 0x40253c
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call fcn.00415144
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 8], edx
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.InboundRules
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40251d
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0xa
add ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0xc]
sub edx, 1
cmp dword [ebp - 0x10], edx
jae 0x402517
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4024f6
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0xa
add ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
mov cl, byte [edx]
mov byte [eax], cl
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4024c0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 8], 0
je 0x40253c
mov edx, dword [ebp - 8]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00414e4e
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0x20], 0
je 0x40254c
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
je 0x40255c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret