Function at 0x41f120
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440758
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x4570d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
push 1
lea ecx, [ebp - 0xfc]
call fcn.00401f70
push str.UpdateRegistry__
mov dword [eax + 0x60], 0x64
add eax, 0x10
push eax
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x8c]
call fcn.0040c830
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x8c], vtable.std::ios_base.0
call fcn.004209c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push eax
push 0x20019
push 0
push str.AppID
push SysReAllocString
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f60f
mov ebx, dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push 0x443f40
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0xfc]
push 1
test eax, eax
jne 0x41f377
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.00401f70
push str.Registry_is_up_to_date
mov dword [eax + 0x60], 0x64
add eax, 0x10
push eax
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x8c]
call fcn.0040c830
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x8c], vtable.std::ios_base.0
call fcn.004209c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
push 1
call fcn.00401f70
push str.Registering_Server
mov dword [eax + 0x60], 0xa
add eax, 0x10
push eax
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x8c]
call fcn.0040c830
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x8c], vtable.std::ios_base.0
call fcn.004209c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
push 0x45703c
call fcn.0041adb0
mov esi, eax
test esi, esi
js 0x41f36b
mov edi, dword [0x458aa8]
test edi, edi
je 0x41f368
push dword [0x459364]
mov ecx, edi
call dword [0x441310]
call edi
add esp, 4
mov esi, eax
mov edi, dword [ebp - 0x14]
xor eax, eax
test esi, esi
cmovns esi, eax
jmp 0x41f5f5
call fcn.00401f70
push str.Registry_update_needed
mov dword [eax + 0x60], 0xa
add eax, 0x10
push eax
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x8c]
call fcn.0040c830
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - 0x8c], vtable.std::ios_base.0
call fcn.004209c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], str.APPID
mov dword [ebp - 0x3c], 0x443f40
mov dword [ebp - 0x38], 0
push eax
push 1
push 0x65
push dword [0x458a90]
mov dword [ebp - 0x34], 0
call fcn.00413490
mov esi, eax
test esi, esi
js 0x41f5f5
test ebx, ebx
je 0x41f433
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
call fcn.00411eb0
test eax, eax
je 0x41f463
push eax
call fcn.00410880
mov ebx, dword [ebp - 0x20]
jmp 0x41f5f0
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x443f40
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41f5ea
mov eax, dword [ebp - 0x14]
push str.LocalService
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 1
lea ecx, [ebp - 0xfc]
call fcn.00401f70
mov edi, dword [ebp - 0x24]
add edi, 0x40
push edi
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.LocalService_:
push eax
call fcn.00401240
add esp, 8
push eax
call fcn.0040ba90
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0xfc]
call fcn.00402f40
push 1
push edi
push str.LocalService
lea ecx, [ebp - 0x30]
call fcn.00413330
mov edi, dword [ebp - 0x14]
push edi
call fcn.0041e1a0
add esp, 4
lea ecx, [ebp - 0xfc]
push 1
call fcn.00401f70
push str.Registering_Server
mov dword [eax + 0x60], 0xa
add eax, 0x10
push eax
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0xfc]
call fcn.00402f40
mov ecx, dword [ebp - 0x24]
push 0
push 1
call fcn.0041dc10
mov esi, eax
test esi, esi
js 0x41f5f5
push 1
lea ecx, [ebp - 0x1b4]
call fcn.00401f70
push str.UpdateRegistry___done
mov dword [eax + 0x60], 0x64
add eax, 0x10
push eax
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x1b4]
call fcn.00402f40
xor esi, esi
jmp 0x41f5f5
push eax
call fcn.00410880
mov esi, eax
add esp, 4
test edi, edi
je 0x41f600
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x41f60b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41f615
mov dword [ebx + 0x250], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042199f
mov esp, ebp
pop ebp
ret