Function at 0x401ac0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa70
mov eax, dword [0x42d084]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xa44], 0
mov dword [ebp - 0xa48], 0
lea eax, [ebp - 0xa3c]
push eax
push 0xf003f
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 - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42abe4
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
mov eax, dword [str.SoftwareXrplatform]
push eax
push 0x42abf0
mov ecx, dword [str.._Xrnetwk.log]
push ecx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push 0x42ac0c
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 1
call fcn.004150dc
jmp 0x401d28
mov eax, dword [ebp - 0xa3c]
mov dword [ebp - 0xa44], eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [str.GuestsAndroidNetworkRedirect]
push eax
mov ecx, dword [ebp - 0xa44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ac34
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push 0x42ac40
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 0x42ac60
mov ecx, dword [str.._Xrnetwk.log]
push ecx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 1
call fcn.004150dc
jmp 0x401d28
mov edx, dword [ebp - 4]
mov dword [ebp - 0xa44], edx
mov eax, 1
test eax, eax
je 0x401d28
mov ecx, dword [ebp - 0xa48]
mov dword [ebp + ecx*4 - 0xa70], 0x104
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0xa48]
lea eax, [ebp + edx*4 - 0xa70]
push eax
mov ecx, dword [ebp - 0xa48]
imul ecx, ecx, 0xa
lea edx, [ebp + ecx - 0xa38]
push edx
mov eax, dword [ebp - 0xa48]
push eax
mov ecx, dword [ebp - 0xa44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401cb9
mov edx, dword [ebp - 0xa48]
add edx, 1
mov dword [ebp - 0xa48], edx
jmp 0x401d23
cmp dword [ebp - 0xc], 0x103
jne 0x401cc6
jmp 0x401d28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ac88
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push str.Cannot_enumerate_redirect_values
mov ecx, dword [str.._Xrnetwk.log]
push ecx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 0x42acb8
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 1
call fcn.004150dc
jmp 0x401d28
jmp 0x401c46
cmp dword [ebp - 0xa48], 0
je 0x401dfc
mov dword [ebp - 0xa40], 0
jmp 0x401d50
mov eax, dword [ebp - 0xa40]
add eax, 1
mov dword [ebp - 0xa40], eax
mov ecx, dword [ebp - 0xa40]
cmp ecx, dword [ebp - 0xa48]
jae 0x401dfc
mov edx, dword [ebp - 0xa40]
imul edx, edx, 0xa
lea eax, [ebp + edx - 0xa38]
push eax
mov ecx, dword [ebp - 0xa44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401df7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ace0
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
mov eax, dword [ebp - 0xa40]
imul eax, eax, 0xa
lea ecx, [ebp + eax - 0xa38]
push ecx
push str.Cannot_delete_redirect_value:__s
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push 0x42ad10
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 0x401dfc
jmp 0x401d41
cmp dword [ebp - 0xa3c], 0
je 0x401e12
mov ecx, dword [ebp - 0xa3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x401e22
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149ef
mov esp, ebp
pop ebp
ret