Function at 0x40543e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454452
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x46ebd0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x330]
push eax
push 2
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings5.0CacheHistory_
mov dword [ebp - 4], edi
push SysReAllocStringLen
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x330], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404e0c
mov ecx, dword [ebp - 0x330]
push 0x14
push str.NoVisited:
push 1
push edi
push str.CachePrefix
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 0x348]
push edx
call fcn.0040f2e0
mov byte [ebp - 0x335], al
xor eax, eax
add esp, 4
mov word [ebp - 0x30], ax
mov esi, 7
push edi
mov eax, 0x45da4c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
call fcn.00405b40
push 0xc
mov byte [ebp - 4], 1
call fcn.004146f2
add esp, 4
mov dword [ebp - 0x330], eax
mov byte [ebp - 4], 2
cmp eax, edi
je 0x404e66
push eax
call fcn.0040ef60
mov ebx, eax
jmp 0x404e68
xor ebx, ebx
push 0x45d894
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 1
call fcn.00404600
mov byte [ebp - 4], 3
cmp byte [ebx + 8], 0
je 0x404f25
mov eax, dword [ebx + 4]
xor ecx, ecx
mov word [ebp - 0x4c], cx
mov ecx, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x404ea0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00405b40
lea edi, [ebp - 0x4c]
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00405690
mov byte [ebp - 4], 3
cmp dword [ebp - 0x38], 8
jb 0x404edd
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00414721
add esp, 4
push ebx
lea ecx, [ebp - 0x330]
call fcn.00403e90
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 5
call fcn.00404730
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x330]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.00414721
mov esi, dword [ebp - 0x334]
mov ecx, dword [esi + 0x50]
push ecx
call fcn.00439b91
mov edx, dword [ebp - 0x33c]
push edx
mov dword [esi + 0x50], 0
call fcn.00439bcb
add esp, 0xc
mov dword [esi + 0x50], eax
call fcn.00414ff6
mov ecx, dword [esi + 0x50]
lea edx, [ebp - 0x350]
mov dword [eax + 0x10], ecx
mov edi, 8
push edx
mov dword [ebp - 0x350], edi
mov dword [ebp - 0x34c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0041e21c
push 0
call fcn.0041ee8f
add esp, 4
push 0x45d894
mov ecx, esi
call fcn.0041f37d
call fcn.00411640
push ecx
mov ecx, esp
mov dword [ebp - 0x330], esp
push str.Logger_Started.
call fcn.00404600
call fcn.00411710
add esp, 4
lea eax, [ebp - 0x32c]
push eax
call fcn.00405d00
lea ecx, [ebp - 0x1cc]
push ecx
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0041d143
cmp dword [ebp - 0x190], 0
jbe 0x40504c
mov eax, dword [ebp - 0x1a0]
cmp dword [ebp - 0x18c], edi
jae 0x405035
lea eax, [ebp - 0x1a0]
push ecx
mov ecx, esp
mov dword [ebp - 0x330], esp
push eax
call fcn.00404600
call fcn.00410330
add esp, 4
cmp dword [ebp - 0x13c], 0
jbe 0x405069
push 0
lea edx, [ebp - 0x14c]
push edx
or eax, 0xffffffff
lea edi, [ebp - 0x30]
call fcn.00405820
push 0x9c
call fcn.004146f2
mov esi, eax
add esp, 4
mov dword [ebp - 0x330], esi
xor eax, eax
mov byte [ebp - 4], 7
test esi, esi
je 0x4050e6
sub esp, 0x1c
mov edi, esp
mov dword [ebp - 0x340], esp
mov ebx, 7
mov dword [edi + 0x10], eax
push eax
mov dword [edi + 0x14], ebx
lea ecx, [ebp - 0x168]
mov word [edi], ax
push ecx
or eax, 0xffffffff
call fcn.00405820
sub esp, 0x1c
mov byte [ebp - 4], 8
mov edi, esp
xor edx, edx
mov dword [ebp - 0x344], esp
push edx
lea eax, [ebp - 0x30]
push eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], 0
or eax, 0xffffffff
mov word [edi], dx
call fcn.00405820
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00410e40
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x334]
mov ecx, dword [ebp - 0x33c]
mov esi, dword [ebp - 0x12c]
mov dword [ebx + 0xb8], eax
mov dword [ebp - 0x1d0], eax
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x405163
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x405153
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x405153
push eax
call fcn.004046c0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x405142
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x12c], ebx
mov ebx, dword [ebp - 0x334]
jmp 0x405163
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00401c30
lea ecx, [ebp - 0x32c]
mov dword [ebx + 0x20], ecx
call fcn.00420365
cmp eax, 1
jne 0x40524c
call fcn.0041b710
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405194
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x330], eax
push ecx
mov bl, 9
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x344], esp
push str.User_Finished_Install
lea edi, [ebp - 0x330]
call fcn.00404600
push ecx
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x340], esp
push str.Finish
call fcn.00404600
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x334]
mov eax, dword [esi + 0xb8]
add eax, 0x58
cmp dword [eax + 0x14], 8
jb 0x4051f6
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [ebp - 0x334], esp
push eax
call fcn.00404600
mov ecx, dword [esi + 0xb8]
push ecx
mov byte [ebp - 4], bl
call fcn.004109c0
add esp, 0x10
call fcn.0041b710
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405231
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x334], eax
mov byte [ebp - 4], 0xc
jmp 0x40537d
cmp eax, 2
jne 0x4053dd
mov ecx, dword [ebx + 0xb8]
mov eax, dword [ecx + 0x98]
add ecx, 0x98
mov edx, 0x45da4c
lea esp, [esp]
mov si, word [eax]
cmp si, word [edx]
jne 0x405296
test si, si
je 0x405292
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x405296
add eax, 4
add edx, 4
test si, si
jne 0x405270
xor eax, eax
jmp 0x40529b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4052a9
push str.Exit
call fcn.00401d20
call fcn.0041b710
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4052c3
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x330], eax
push ecx
mov bl, 0xd
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x344], esp
push str.User_Aborted_Install
lea edi, [ebp - 0x330]
call fcn.00404600
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x334]
mov eax, dword [esi + 0xb8]
push ecx
add eax, 0x98
mov dword [ebp - 0x340], esp
mov ecx, esp
push eax
call fcn.00403e90
mov byte [ebp - 4], 0xf
mov eax, dword [esi + 0xb8]
add eax, 0x58
cmp dword [eax + 0x14], 8
jb 0x40532c
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [ebp - 0x334], esp
push eax
call fcn.00404600
mov ecx, dword [esi + 0xb8]
push ecx
mov byte [ebp - 4], bl
call fcn.004109c0
add esp, 0x10
call fcn.0041b710
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405367
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x334], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x334]
push ecx
lea ecx, [ebp - 0x330]
call fcn.00408710
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x334]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
add esp, 4
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4053b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x330]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4737bc]
mov edx, dword [ecx + 0x30]
push 0
push 0
push 0x8008
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
lea eax, [ebp - 0x32c]
push eax
mov byte [ebp - 4], 3
call fcn.00405500
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x33c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40542c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x1c], 8
jb 0x40543e
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00414721
add esp, 4
cmp byte [ebp - 0x335], 0
je 0x40548f
lea edx, [ebp - 0x330]
push edx
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3_
push SysReAllocStringLen
mov dword [ebp - 0x330], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40548f
mov ecx, dword [ebp - 0x330]
push 4
lea eax, [ebp - 0x348]
push eax
push 4
push 0
push str.1400
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 0x330]
push edx
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings5.0CacheHistory_
push SysReAllocStringLen
mov dword [ebp - 0x330], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4054d4
push 0x10
push str.Visited:
push 1
push eax
mov eax, dword [ebp - 0x330]
push str.CachePrefix
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00438b64
mov esp, ebp
pop ebp
ret