Function at 0x49d560
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5000d8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0x2001f
push str.SoftwareAPNUDebug
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.0043b290
mov edi, dword [ebp - 0x34]
test eax, eax
jne 0x49d765
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.LoadSwitches
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49d765
cmp dword [ebp - 0x18], 4
jne 0x49d765
cmp dword [ebp - 0x1c], eax
je 0x49d765
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.LoadSwitches
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], 0x104
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x49d63d
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], ecx
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov dword [ebp - 0x38], 0xffffffff
jge 0x49d680
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push ecx
push eax
push str.SwitchPartner
lea ecx, [ebp - 0x34]
call fcn.0043d750
lea ecx, [ebp - 0x40]
call fcn.0043c0c0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x5442c8
call fcn.004cc620
test eax, eax
je 0x49d738
mov ecx, dword [ebp - 0x24]
xor esi, esi
test ecx, ecx
jle 0x49d738
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x49d70c
lea eax, [ebp - 0x10]
push 0x50a224
push eax
call fcn.00441330
add esp, 8
test al, al
jne 0x49d709
push esi
lea ecx, [ebp - 0x28]
call fcn.0043c390
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044dc90
add esp, 8
test al, al
je 0x49d730
mov ecx, dword [ebp - 0x24]
test esi, esi
js 0x49d781
cmp esi, ecx
jge 0x49d781
mov eax, dword [ebp - 0x28]
mov ecx, 0x5442c8
lea eax, [eax + esi*4]
push eax
call fcn.004cc5e0
test eax, eax
je 0x49d730
mov ecx, eax
call fcn.0047f010
mov ecx, dword [ebp - 0x24]
inc esi
cmp esi, ecx
jl 0x49d6d1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004914e0
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49d765
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x49d770
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]