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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x28]
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0x48
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xdeadbeef
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GetTransmissionRetryTimeout
mov eax, dword [0x41d470]
mov dword [esp], eax
call dword [0x41d478]
sub esp, 0x1c
cmp eax, 0x57
je 0x404bf0
mov edi, eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4a2
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov edx, dword [ebx + 0x34]
cmp eax, 4
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
sete dl
xor eax, eax
cmp edi, 0x7a
sete al
mov dword [esp + 4], str.returned__ld_with__lu_and__lu__expected_ERROR_INSUFFICIENT_BUFFER_and__lu__n
and eax, edx
mov dword [esp], eax
call fcn.00401a30
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
sub esp, 0x14
cmp eax, 5
je 0x404cd8
test eax, eax
jne 0x404bc0
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0xf
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.TransmissionRetryTimeout
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
sub esp, 0x18
mov dword [ebp - 0x30], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4b7
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [esp + 4], str.returned__lu_and__lu_for___s___expected_ERROR_SUCCESS_or_ERROR_FILE_NOT_FOUND__n
mov dword [esp + 8], edx
and edx, 0xfffffffd
sete al
mov dword [esp], eax
call fcn.00401a30
mov dword [esp + 4], str.TransmissionRetryTimeout
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegDeleteValueA]
mov dword [ebp - 0x34], eax
call eax
sub esp, 8
cmp eax, 5
je 0x404ca0
mov dword [ebp - 0x30], eax
call fcn.00406970
mov edx, dword [ebp - 0x30]
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4c2
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.RegDeleteValue_TransmissionRetryTimeout__returned__lu_n
call fcn.00401a30
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0xdeadbeef
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GetTransmissionRetryTimeout
mov eax, dword [0x41d470]
mov dword [esp], eax
call dword [0x41d478]
sub esp, 0x1c
mov dword [ebp - 0x30], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4c7
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x28]
cmp eax, 0x2d
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x30]
sete cl
xor eax, eax
mov dword [esp + 4], str.returned__ld_with__lu_and__lu_for__ld_n__expected_ERROR_SUCCESS_for_45__n
test edx, edx
mov dword [esp + 8], edx
sete al
and eax, ecx
mov dword [esp], eax
call fcn.00401a30
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x40af37
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.TransmissionRetryTimeout
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExA]
mov dword [ebp - 0x30], eax
call eax
sub esp, 0x18
mov dword [ebp - 0x38], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4cd
mov eax, dword [ebx + 0x34]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [esp + 4], str.expected_ERROR_SUCCESS__got__lu___lu__n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401a30
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 0xdeadbeef
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GetTransmissionRetryTimeout
mov eax, dword [0x41d470]
mov dword [esp], eax
call dword [0x41d478]
sub esp, 0x1c
mov dword [ebp - 0x38], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4d2
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x28]
cmp eax, 0x2d
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x38]
sete cl
xor eax, eax
mov dword [esp + 4], str.returned__ld_with__lu_and__lu_for__ld_n__expected_ERROR_SUCCESS_for_45__n
test edx, edx
mov dword [esp + 8], edx
sete al
and eax, ecx
mov dword [esp], eax
call fcn.00401a30
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0x40af35
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.TransmissionRetryTimeout
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 0x18
mov dword [ebp - 0x38], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4d8
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_SUCCESS__got__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x38]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00401a30
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 0xdeadbeef
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GetTransmissionRetryTimeout
mov eax, dword [0x41d470]
mov dword [esp], eax
call dword [0x41d478]
sub esp, 0x1c
mov dword [ebp - 0x38], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4dd
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], str.returned__ld_with__lu_and__lu_for__ld_n__expected_ERROR_SUCCESS_for_0__n
or eax, edx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401a30
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0x40af33
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.TransmissionRetryTimeout
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 0x18
mov dword [ebp - 0x38], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4e3
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_SUCCESS__got__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x38]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00401a30
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 0xdeadbeef
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GetTransmissionRetryTimeout
mov eax, dword [0x41d470]
mov dword [esp], eax
call dword [0x41d478]
sub esp, 0x1c
mov dword [ebp - 0x38], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4e8
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x28]
cmp eax, 1
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x38]
sete cl
xor eax, eax
mov dword [esp + 4], str.returned__ld_with__lu_and__lu_for__ld_n__expected_ERROR_SUCCESS_for_1__n
test edx, edx
mov dword [esp + 8], edx
sete al
and eax, ecx
mov dword [esp], eax
call fcn.00401a30
mov dword [esp + 0x14], 7
mov dword [esp + 0x10], str.999999
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.TransmissionRetryTimeout
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 0x18
mov dword [ebp - 0x38], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4ed
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_SUCCESS__got__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x38]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00401a30
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 0xdeadbeef
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GetTransmissionRetryTimeout
mov eax, dword [0x41d470]
mov dword [esp], eax
call dword [0x41d478]
sub esp, 0x1c
mov dword [ebp - 0x38], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4f2
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x28]
cmp eax, 0xf423f
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x38]
sete cl
xor eax, eax
mov dword [esp + 4], str.returned__ld_with__lu_and__lu_for__ld_n__expected_ERROR_SUCCESS_for_999999__n
test edx, edx
mov dword [esp + 8], edx
sete al
and eax, ecx
mov dword [esp], eax
call fcn.00401a30
mov dword [esp + 0x14], 8
mov dword [esp + 0x10], str.1000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.TransmissionRetryTimeout
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 0x18
mov dword [ebp - 0x38], eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4f8
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.expected_ERROR_SUCCESS__got__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x38]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00401a30
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0xdeadbeef
mov dword [ebp - 0x24], 0xdeadbeef
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GetTransmissionRetryTimeout
mov eax, dword [0x41d470]
mov dword [esp], eax
call dword [0x41d478]
sub esp, 0x1c
mov esi, eax
call fcn.00406970
test esi, esi
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4fd
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x28]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
sete dl
cmp eax, 0xf4240
sete al
mov dword [esp + 4], str.returned__ld_with__lu_and__lu_for__ld_n__expected_ERROR_SUCCESS_for_1000000__n
movzx eax, al
and eax, edx
mov dword [esp], eax
call fcn.00401a30
mov dword [esp + 4], str.TransmissionRetryTimeout
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
sub esp, 8
cmp byte [ebp - 0x1c], 0
jne 0x404c20
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x30], eax
call fcn.00406970
mov edx, dword [ebp - 0x30]
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4b0
mov dword [esp + 4], edx
mov dword [esp], str.got__ld_n
call fcn.00401480
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x49e
mov dword [esp], str.GetTransmissionRetryTimeout_not_supported_n
call fcn.00401480
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp + 0xc], 1
add eax, 1
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.TransmissionRetryTimeout
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 0x18
mov ebx, eax
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x505
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.unable_to_restore_original_value__got__lu_:__s_n
mov dword [esp], eax
call fcn.00401a30
jmp 0x404ba2
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4bf
mov dword [esp], str.ACCESS_DENIED_n
call fcn.00401480
jmp 0x404bb1
call fcn.00406970
mov dword [eax], 0x40a123
mov dword [eax + 4], 0x4aa
mov dword [esp], str.ACCESS_DENIED_n
call fcn.00401480
jmp 0x404bb1