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

Disassembly:
push 0xffffffffffffffff
push 0x47072f
mov eax, dword fs:[0]
push eax
sub esp, 0x744
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x740], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0x758]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x28], edi
xor ebx, ebx
mov ebp, 0x10
cmp dword [edi + 0x44], ebp
mov dword [esp + 0x760], ebx
jb 0x416979
mov eax, dword [edi + 0x30]
jmp 0x41697c
lea eax, [edi + 0x30]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
push eax
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x417126
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], pe_nt_image_headers32
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xf4]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x668]
push edx
push ebx
push eax
mov byte [esp + 0x780], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x4170ea
jmp 0x416a14
mov edi, dword [esp + 0x28]
mov esi, 1
add dword [esp + 0x20], esi
cmp dword [esp + 0x1c], esi
je 0x416abf
push str.is_not_of_string_type.
lea eax, [esp + 0x658]
push eax
lea eax, [edi + 0x2c]
push eax
push str.Key
call fcn.0040c690
push eax
call fcn.0040b5e0
add esp, 8
push eax
call fcn.004098d0
add esp, 8
push eax
call fcn.0040b5e0
add esp, 8
push eax
call fcn.0040b5e0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040b9e0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
lea eax, [edx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x416a97
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x416a97
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x4170b2
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x416ab3
or eax, 4
push ebx
push eax
call fcn.00409040
jmp 0x4170b2
mov edx, dword [esp + 0x18]
mov edi, 0xf
lea eax, [esp + 0xf0]
mov dword [esp + edx*4 + 0xf0], ebx
mov dword [esp + 0x550], edi
mov dword [esp + 0x54c], ebx
mov byte [esp + 0x53c], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x416af0
sub eax, edx
push eax
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x540]
call fcn.00401d30
cmp dword [esp + 0x54c], 3
mov byte [esp + 0x760], 2
lea ecx, [esp + 0x538]
jae 0x416b90
push str.__string_is_too_small.
push ecx
push str.Invalid_control_string
call fcn.0040c690
push eax
call fcn.0040b5e0
add esp, 8
push eax
call fcn.004098d0
add esp, 8
push eax
call fcn.0040b5e0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040b9e0
mov ecx, esi
call fcn.00409510
cmp dword [esp + 0x550], ebp
mov byte [esp + 0x760], 1
jb 0x4170b2
mov edx, dword [esp + 0x53c]
push edx
call fcn.0043402a
add esp, 4
jmp 0x4170b2
push 2
push ebx
lea eax, [esp + 0x508]
push eax
call fcn.00403690
push 0xffffffffffffffff
push 2
lea ecx, [esp + 0x524]
push ecx
lea ecx, [esp + 0x544]
mov byte [esp + 0x76c], 3
call fcn.00403690
push esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x764], 4
call fcn.00415f60
cmp dword [esp + 0x534], ebp
mov eax, dword [esp + 0x520]
mov byte [esp + 0x760], 5
jae 0x416bf1
lea eax, [esp + 0x520]
push 0x40
push 3
push eax
lea ecx, [esp + 0x78]
call fcn.004159e0
test eax, eax
jne 0x416c24
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x60]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x416c1d
or eax, 4
push ebx
push eax
call fcn.00409040
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x68], 6
je 0x416c4a
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x654]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x416f6c
lea ecx, [esp + 0x6c]
call fcn.00414ab0
test eax, eax
jne 0x416c78
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x60]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x416c71
or eax, 4
push ebx
push eax
call fcn.00409040
cmp dword [esp + 0x518], ebp
mov eax, dword [esp + 0x504]
jae 0x416c8f
lea eax, [esp + 0x504]
push 0x475ab4
push eax
call fcn.00451ef4
add esp, 8
test eax, eax
je 0x416d99
cmp dword [esp + 0x518], ebp
mov eax, dword [esp + 0x504]
jae 0x416cbc
lea eax, [esp + 0x504]
push 0x475584
push eax
call fcn.00451ef4
add esp, 8
test eax, eax
jne 0x416cd6
lea esi, [eax + 2]
jmp 0x416d99
cmp dword [esp + 0x518], ebp
mov eax, dword [esp + 0x504]
jae 0x416ced
lea eax, [esp + 0x504]
push 0x475ab0
push eax
call fcn.00451ef4
add esp, 8
test eax, eax
jne 0x417021
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x554]
push eax
mov ecx, esi
call fcn.00414e10
push str.lastinfo
lea ecx, [esp + 0x30]
mov byte [esp + 0x764], 6
call fcn.00403650
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x574]
push edx
mov ecx, esi
mov byte [esp + 0x768], 7
call fcn.00414cb0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x760], 9
call fcn.00401850
lea eax, [esp + 0x570]
push eax
lea ecx, [esp + 0x558]
push ecx
call fcn.0040cf60
add esp, 8
neg al
lea ecx, [esp + 0x570]
sbb eax, eax
neg eax
mov esi, eax
call fcn.00401850
lea ecx, [esp + 0x554]
mov byte [esp + 0x760], 5
call fcn.00401850
lea eax, [esp + 0x654]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x416db0
sub eax, edx
push eax
lea edx, [esp + 0x658]
push edx
lea ecx, [esp + 0x34]
call fcn.00401d30
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x604]
mov byte [esp + 0x764], 0xa
call fcn.0041b020
cmp dword [esp + 0x44], ebp
mov byte [esp + 0x760], 0xc
jb 0x416e01
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0043402a
add esp, 4
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x544]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov byte [ecx + 4], bl
call fcn.00401b60
lea eax, [esp + 0x620]
push eax
lea ecx, [esp + 0x5b0]
call fcn.00414b80
lea ecx, [esp + 0x554]
push ecx
lea ecx, [esp + 0x604]
mov byte [esp + 0x764], 0xd
call fcn.0041a4d0
mov edx, dword [esp + 0x5fc]
push eax
push str._target:
push edx
push str._state:
lea eax, [esp + 0x5f0]
push eax
push str.Found_stored_update_file_state:
mov byte [esp + 0x778], 0xe
call fcn.0040c690
push eax
call fcn.0040b5e0
add esp, 8
push eax
call fcn.004098d0
add esp, 8
push eax
call fcn.0040b5e0
add esp, 8
mov ecx, eax
call fcn.0040f940
push eax
call fcn.0040b5e0
add esp, 8
push eax
call fcn.004098d0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040b9e0
mov ecx, esi
call fcn.00409510
cmp dword [esp + 0x56c], ebp
mov byte [esp + 0x760], 0xd
jb 0x416ef4
mov ecx, dword [esp + 0x558]
push ecx
call fcn.0043402a
add esp, 4
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x58c]
push edx
call fcn.004165b0
cmp dword [esp + 0x5f8], ebp
mov eax, pe_nt_image_headers32
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x760], 0xc
jb 0x416f37
mov eax, dword [esp + 0x5e4]
push eax
call fcn.0043402a
add esp, 4
lea ecx, [esp + 0x58c]
mov dword [esp + 0x5f8], edi
mov dword [esp + 0x5f4], ebx
mov byte [esp + 0x5e4], bl
call fcn.00419910
lea ecx, [esp + 0x600]
mov byte [esp + 0x760], 5
call fcn.00419910
lea ecx, [esp + 0xbc]
mov byte [esp + 0x760], 4
call fcn.00415410
lea ecx, [esp + 0xbc]
push ecx
mov dword [esp + 0xc0], vtable.std::ios_base.0
call fcn.0046b978
add esp, 4
cmp dword [esp + 0x534], ebp
jb 0x416fb4
mov edx, dword [esp + 0x520]
push edx
call fcn.0043402a
add esp, 4
cmp dword [esp + 0x518], ebp
mov byte [esp + 0x520], bl
mov dword [esp + 0x530], ebx
mov dword [esp + 0x534], edi
jb 0x416fe2
mov eax, dword [esp + 0x504]
push eax
call fcn.0043402a
add esp, 4
cmp dword [esp + 0x550], ebp
mov dword [esp + 0x518], edi
mov dword [esp + 0x514], ebx
mov byte [esp + 0x504], bl
mov byte [esp + 0x760], 1
jb 0x4170b2
mov ecx, dword [esp + 0x53c]
push ecx
call fcn.0043402a
add esp, 4
jmp 0x4170b2
lea edx, [esp + 0x500]
push edx
push str.Invalid_update_state
call fcn.0040c690
push eax
call fcn.0040b5e0
add esp, 8
push eax
call fcn.004098d0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040b9e0
mov ecx, esi
call fcn.00409510
lea ecx, [esp + 0xbc]
mov byte [esp + 0x760], 4
call fcn.00415410
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0xc0], vtable.std::ios_base.0
call fcn.0046b978
add esp, 4
lea ecx, [esp + 0x51c]
call fcn.00401850
lea ecx, [esp + 0x500]
call fcn.00401850
lea ecx, [esp + 0x538]
mov byte [esp + 0x760], 1
call fcn.00401850
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xf4]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x668]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
je 0x416a10
push eax
push str.Registry_lastError:
call fcn.0040c690
push eax
call fcn.0040b5e0
add esp, 8
mov ecx, eax
call fcn.0040f940
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040b9e0
mov ecx, esi
call fcn.00409510
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x417126
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x758]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x740]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x750
ret