Function at 0x47d3e0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd330
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0x2001f
push dword [0x53e788]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_accept
call fcn.0043b290
mov ebx, dword [ebp - 0x38]
test eax, eax
jne 0x47da7c
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47d465
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push dword [esi + 0x24]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push dword [0x53e788]
push 0x509980
push eax
call fcn.0043ad30
add esp, 0x10
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push 0x2001f
push esi
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 2
call fcn.0043b290
mov edi, dword [ebp - 0x2c]
test eax, eax
jne 0x47da53
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47d4e6
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 eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x53e934]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47d527
cmp dword [ebp - 0x14], 4
je 0x47d5f1
xor eax, eax
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x20], eax
mov edx, 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x47d568
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x53e8f0]
lea ecx, [ebp - 0x2c]
call fcn.0043d750
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0043c0c0
xor ecx, ecx
test bl, bl
je 0x47d59d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ecx
setne cl
mov dword [ebp - 0x20], ecx
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
push 4
push 0
push dword [0x53e934]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x53e7fc]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x20]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push dword [0x53e920]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x53e810]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x53e938]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47d621
cmp dword [ebp - 0x14], 4
je 0x47d6b9
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x44], eax
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x47d65d
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x53e8f4]
lea ecx, [ebp - 0x2c]
call fcn.0043d750
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0043c0c0
xor ecx, ecx
test bl, bl
je 0x47d68f
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ecx
setne cl
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
push 4
push 0
push dword [0x53e938]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x53e7f4]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x53e93c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47d6e9
cmp dword [ebp - 0x14], 4
je 0x47d781
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x44], eax
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x47d725
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x53e8f8]
lea ecx, [ebp - 0x2c]
call fcn.0043d750
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0043c0c0
xor ecx, ecx
test bl, bl
je 0x47d757
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ecx
setne cl
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
push 4
push 0
push dword [0x53e93c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x53e7f8]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x53e918]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47d7b1
cmp dword [ebp - 0x14], 4
je 0x47d888
xor eax, eax
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x20], eax
mov edx, 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x47d7f2
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x53e8c8]
lea ecx, [ebp - 0x2c]
call fcn.0043d750
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0043c0c0
test bl, bl
je 0x47d832
lea eax, [ebp - 0x10]
push 0x509e64
push eax
call fcn.00441330
movzx eax, al
add esp, 8
mov dword [ebp - 0x20], eax
jmp 0x47d834
xor eax, eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push dword [0x53e918]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x53e808]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x20]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push dword [0x53e91c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x53e80c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x53e924]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47d8b8
cmp dword [ebp - 0x14], 4
je 0x47d95d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x44], eax
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x47d8f4
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x53e8cc]
lea ecx, [ebp - 0x2c]
call fcn.0043d750
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0043c0c0
test bl, bl
je 0x47d931
lea eax, [ebp - 0x10]
push 0x509e64
push eax
call fcn.00441330
add esp, 8
movzx eax, al
jmp 0x47d933
xor eax, eax
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push dword [0x53e924]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x53e800]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x53e928]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47d98d
cmp dword [ebp - 0x14], 4
je 0x47da32
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x44], eax
mov edx, 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x800
or ecx, edx
jge 0x47d9c9
push 0x800
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ecx
push eax
push dword [0x53e8d0]
lea ecx, [ebp - 0x2c]
call fcn.0043d750
test eax, eax
lea ecx, [ebp - 0x44]
sete bl
call fcn.0043c0c0
test bl, bl
je 0x47da06
lea eax, [ebp - 0x10]
push 0x509e64
push eax
call fcn.00441330
add esp, 8
movzx eax, al
jmp 0x47da08
xor eax, eax
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push dword [0x53e928]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x53e804]
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47da53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x47da5e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47da7c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x47da87
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret