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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fef8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x5d6b80]
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.0045b220
mov edi, dword [ebp - 0x34]
test eax, eax
jne 0x4e3595
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 0x4e3595
cmp dword [ebp - 0x18], 4
jne 0x4e3595
cmp dword [ebp - 0x1c], eax
je 0x4e3595
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.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e346d
push 0x80004005
call fcn.0045a8f0
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 0x4e34b0
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0045b530
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.0045d730
lea ecx, [ebp - 0x40]
call fcn.0045c070
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, 0x5de840
call fcn.005154d0
test eax, eax
je 0x4e3568
mov ecx, dword [ebp - 0x24]
xor esi, esi
test ecx, ecx
jle 0x4e3568
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4e353c
lea eax, [ebp - 0x10]
push 0x57f780
push eax
call fcn.00461e40
add esp, 8
test al, al
jne 0x4e3539
push esi
lea ecx, [ebp - 0x28]
call fcn.00524020
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046e2c0
add esp, 8
test al, al
je 0x4e3560
mov ecx, dword [ebp - 0x24]
test esi, esi
js 0x4e35b1
cmp esi, ecx
jge 0x4e35b1
mov eax, dword [ebp - 0x28]
mov ecx, 0x5de840
lea eax, [eax + esi*4]
push eax
call fcn.00515490
test eax, eax
je 0x4e3560
mov ecx, eax
call fcn.004b50f0
mov ecx, dword [ebp - 0x24]
inc esi
cmp esi, ecx
jl 0x4e3501
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004cdef0
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 0x4e3595
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4e35a0
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]