Function at 0x100042b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100426ba
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x100a2068]
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 - 0x27c], ebx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x254], ecx
mov dword [0x100a6550], 0x3e8
mov dword [ebp - 0x250], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov byte [ebp - 4], 2
test eax, eax
je 0x1000433b
push eax
lea ecx, [ebp - 0x250]
call fcn.1000f0c0
test edi, edi
je 0x1000434b
push edi
lea ecx, [ebp - 0x278]
call fcn.1000f0c0
test esi, esi
je 0x1000435b
push esi
lea ecx, [ebp - 0x274]
call fcn.1000f0c0
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x1000439b
cmp dword [eax + 4], 0
je 0x1000439b
lea eax, [ebp - 0x230]
push eax
push ecx
lea eax, [ebp - 0x278]
mov ecx, esp
push eax
call fcn.1000ef10
call fcn.10009040
test al, al
je 0x1000442b
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x1000443f
cmp dword [eax + 4], 0
je 0x1000443f
lea eax, [ebp - 0x220]
push eax
push ecx
lea eax, [ebp - 0x274]
mov ecx, esp
push eax
call fcn.1000ef10
call fcn.10009040
test al, al
je 0x1000442b
movzx edx, word [ebp - 0x240]
movzx eax, word [ebp - 0x23e]
movzx ecx, word [ebp - 0x220]
mov di, word [ebp - 0x21a]
shl edx, 8
inc di
or edx, eax
shl ecx, 8
movzx eax, word [ebp - 0x23a]
shl edx, 8
or edx, eax
mov word [ebp - 0x242], di
movzx eax, word [ebp - 0x21e]
or ecx, eax
movzx eax, di
shl ecx, 8
or ecx, eax
cmp edx, ecx
jae 0x1000442b
test esi, esi
je 0x1000444d
xor esi, esi
jmp 0x10004e87
mov dword [0x100a6550], 0xbb9
mov esi, 1
jmp 0x10004e87
mov ax, word [ebp - 0x21a]
mov word [ebp - 0x242], ax
push 0xffffffffffffffff
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x270], 0
call fcn.10010030
push 0xffffffffffffffff
push str.SoftwarePCurVersion
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.10010030
mov byte [ebp - 4], 4
cmp dword [ebx + 0x50], 0
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x28c], 0
jne 0x100044c3
test eax, eax
je 0x100044a2
add eax, 0xc
jmp 0x100044a7
mov eax, 0x1009c800
lea ecx, [ebp - 0x248]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x10004525
test eax, eax
je 0x100044cc
add eax, 0xc
jmp 0x100044d1
mov eax, 0x1009c800
lea ecx, [ebp - 0x248]
push ecx
push 0x2001f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10004538
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x100044fe
add eax, 0xc
jmp 0x10004503
mov eax, 0x1009c800
push 0
lea ecx, [ebp - 0x248]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10004538
mov dword [ebp - 0x270], 1
jmp 0x10004e6b
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10020640
mov eax, dword [ebp - 0x250]
add esp, 0xc
mov dword [ebp - 0x268], 0x200
test eax, eax
je 0x10004568
cmp dword [eax + 4], 0
jne 0x1000459d
push dword [ebp - 0x254]
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.100065d0
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 5
call fcn.1000f050
lea ecx, [ebp - 0x264]
call fcn.1000f020
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x100045a6
add eax, 0xc
jmp 0x100045ab
mov eax, 0x1009c800
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x248]
call edi
mov esi, eax
mov dword [ebp - 0x284], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x260]
call fcn.10010030
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.10005300
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 6
call fcn.1000f020
cmp esi, 2
je 0x10004637
lea eax, [ebp - 0x284]
push eax
push 0x1009c818
call fcn.1000f160
add esp, 8
test al, al
je 0x10004716
cmp dword [ebx + 0x50], 1
jne 0x10004716
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x1000465c
add eax, 0xc
jmp 0x10004661
mov eax, 0x1009c800
lea ecx, [ebp - 0x248]
push ecx
push 0x2001f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28c], 1
test eax, eax
je 0x100046c5
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x10004698
add eax, 0xc
jmp 0x1000469d
mov eax, 0x1009c800
push 0
lea ecx, [ebp - 0x248]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10004716
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 0x268], 0x200
push 0
push eax
call fcn.10020640
mov eax, dword [ebp - 0x250]
add esp, 0xc
test eax, eax
je 0x100046f4
add eax, 0xc
jmp 0x100046f9
mov eax, 0x1009c800
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x248]
call edi
mov esi, eax
cmp dword [ebx + 0x50], 0
jne 0x10004809
test esi, esi
je 0x10004809
push str.Online
lea ecx, [ebx + 0x5c]
call fcn.1000f450
test eax, eax
jne 0x100047d8
push 0x200
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10020640
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.InstallTime
push dword [ebp - 0x248]
call edi
test eax, eax
jne 0x100047e2
push eax
call fcn.10028b47
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.10024c45
imul ecx, dword [ebx + 0x64], 0x15180
add esp, 8
sub esi, eax
js 0x100047d8
cmp esi, ecx
jge 0x100047d8
push dword [ebp - 0x248]
sub ecx, esi
mov eax, 0xc22e4507
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ecx, 0xa8c0
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [0x100a6554], eax
call esi
mov dword [ebp - 0x270], 0
jmp 0x10004e60
mov dword [0x100a6554], 0
push dword [ebp - 0x248]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov dword [0x100a6550], 0xbb9
mov dword [ebp - 0x270], 1
jmp 0x10004e60
push 0
call fcn.10028b47
add esp, 4
mov dword [ebp - 0x258], edx
mov edi, eax
mov ecx, ebx
mov dword [ebp - 0x24c], edi
push dword [ebp - 0x254]
call fcn.10006230
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], 0
test esi, esi
jne 0x10004a3e
cmp dword [ebp - 0x268], esi
je 0x10004a3e
mov dword [ebp - 0x244], esi
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x254]
call fcn.10010030
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.10005300
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 8
call fcn.1000f020
push esi
push 0x2c
lea ecx, [ebp - 0x244]
call fcn.1000f7e0
mov esi, eax
cmp esi, 0xffffffff
jne 0x100048e1
xorps xmm0, xmm0
movlpd qword [ebp - 0x228], xmm0
mov edx, dword [ebp - 0x224]
mov esi, dword [ebp - 0x228]
movlpd qword [ebp - 0x218], xmm0
mov ebx, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
mov dword [ebp - 0x288], edx
jmp 0x10004a01
push esi
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x244]
call fcn.100100a0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x10004907
mov eax, dword [eax + 4]
jmp 0x10004909
xor eax, eax
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x244]
call fcn.10010150
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x10004933
mov eax, dword [eax + 4]
jmp 0x10004935
xor eax, eax
dec eax
lea ecx, [ebp - 0x254]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.100100a0
mov eax, dword [eax]
test eax, eax
je 0x10004954
add eax, 0xc
jmp 0x10004959
mov eax, 0x1009c800
push eax
call fcn.10024c45
add esp, 4
cdq
lea ecx, [ebp - 0x264]
mov edi, eax
mov ebx, edx
call fcn.1000f020
mov ecx, dword [ebp - 0x254]
test ecx, ecx
je 0x10004986
mov esi, dword [ecx + 4]
movzx eax, word [ecx + esi*2 + 0xa]
jmp 0x10004988
xor eax, eax
movzx eax, ax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
call fcn.10024c45
add esp, 4
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100049c5
cmp dword [ebp - 0x260], 1
jne 0x100049c5
mov ecx, dword [ebp - 0x27c]
imul eax, dword [ecx + 0x64], 0x15180
cdq
add edi, eax
adc ebx, edx
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x100049d4
add eax, 0xc
jmp 0x100049d9
mov eax, 0x1009c800
push eax
call fcn.10024c45
add esp, 4
cdq
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x288], edx
mov esi, eax
call fcn.1000f020
lea ecx, [ebp - 0x254]
call fcn.1000f020
lea ecx, [ebp - 0x244]
call fcn.1000f020
mov eax, dword [ebp - 0x288]
mov edx, dword [ebp - 0x258]
cmp edx, eax
jg 0x10004b61
jl 0x10004a30
mov ecx, dword [ebp - 0x24c]
cmp ecx, esi
jae 0x10004b67
add edi, 0xfffeae80
adc ebx, 0xffffffff
jmp 0x10004b6f
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x10004b40
cmp dword [eax + 4], 0
je 0x10004b40
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x10004abe
cmp dword [eax + 4], 0
je 0x10004abe
movzx eax, word [ebp - 0x230]
movzx ecx, word [ebp - 0x220]
sub ecx, eax
mov esi, dword [ebp - 0x24c]
movzx eax, word [ebp - 0x22e]
imul edx, ecx, 0x16d
movzx ecx, word [ebp - 0x21e]
sub ecx, eax
mov eax, ecx
shl eax, 4
sub eax, ecx
lea ecx, [edx + eax*2]
movzx eax, word [ebp - 0x22a]
sub ecx, eax
movzx eax, word [ebp - 0x242]
add ecx, eax
imul eax, ecx, 0x15180
cdq
mov edi, eax
mov ebx, edx
jmp 0x10004b59
movzx eax, word [ebp - 0x230]
movzx ecx, word [ebp - 0x240]
sub ecx, eax
movzx eax, word [ebp - 0x22e]
imul edx, ecx, 0x16d
movzx ecx, word [ebp - 0x23e]
sub ecx, eax
mov eax, ecx
shl eax, 4
sub eax, ecx
lea ecx, [edx + eax*2]
movzx eax, word [ebp - 0x22a]
sub ecx, eax
movzx eax, word [ebp - 0x23a]
add ecx, eax
cmp dword [ebp - 0x260], 1
jne 0x10004b21
mov eax, dword [ebx + 0x64]
mov esi, dword [ebp - 0x24c]
sub eax, ecx
imul eax, eax, 0x15180
cdq
mov edi, eax
mov ebx, edx
jmp 0x10004b59
mov esi, dword [ebp - 0x24c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x218], xmm0
mov ebx, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
jmp 0x10004b59
xorps xmm0, xmm0
mov esi, edi
movlpd qword [ebp - 0x218], xmm0
mov ebx, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
mov edx, dword [ebp - 0x258]
mov eax, edx
mov ecx, dword [ebp - 0x24c]
sub esi, ecx
sbb eax, edx
add edi, esi
adc ebx, eax
mov ecx, edi
mov eax, ebx
add ecx, 0xa8c0
push 0
push 0x15180
adc eax, 0
push eax
push ecx
call fcn.10041700
mov esi, dword [ebp - 0x27c]
mov dword [0x100a6554], eax
test eax, eax
js 0x10004bb5
cmp eax, dword [esi + 0x64]
jle 0x10004bbf
xorps xmm0, xmm0
movlpd qword [ebp - 0x218], xmm0
mov ebx, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
mov dword [0x100a6554], 0
mov dword [ebp - 0x280], 0
mov byte [ebp - 4], 0xc
test ebx, ebx
jl 0x10004bdb
jg 0x10004bd7
test edi, edi
je 0x10004bdb
mov eax, edi
jmp 0x10004bdd
xor eax, eax
push dword [ebp - 0x258]
mov ecx, dword [ebp - 0x260]
mov edx, 1
cmp dword [ebp - 0x264], edx
push dword [ebp - 0x24c]
cmove ecx, edx
push ecx
push eax
lea eax, [ebp - 0x280]
push str._d_01d__d
push eax
call fcn.1000f820
add esp, 0x18
lea eax, [ebp - 0x250]
lea ecx, [esi + 0x54]
push eax
call fcn.1000f050
cmp dword [esi + 0x50], 1
jne 0x10004e29
mov dword [ebp - 0x244], 0
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10005530
cmp dword [ebp - 0x28c], 0
mov eax, dword [ebp - 0x244]
jne 0x10004cfc
test eax, eax
je 0x10004c69
mov ecx, dword [eax + 4]
jmp 0x10004c6b
xor ecx, ecx
mov eax, dword [ebp - 0x250]
lea esi, [eax + 0xc]
test eax, eax
jne 0x10004c7d
mov esi, 0x1009c800
lea eax, [ecx*2 + 1]
push eax
push ecx
lea ecx, [ebp - 0x244]
call fcn.1000ff60
push eax
push 1
push 0
push esi
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call fcn.100101f0
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x10004cbf
add eax, 0xc
jmp 0x10004cc4
mov eax, 0x1009c800
lea ecx, [ebp - 0x24c]
push ecx
push 0x2001f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10004db8
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x10004d8d
add eax, 0xc
jmp 0x10004d92
test eax, eax
je 0x10004d05
mov ecx, dword [eax + 4]
jmp 0x10004d07
xor ecx, ecx
mov eax, dword [ebp - 0x250]
lea esi, [eax + 0xc]
test eax, eax
jne 0x10004d19
mov esi, 0x1009c800
lea eax, [ecx*2 + 1]
push eax
push ecx
lea ecx, [ebp - 0x244]
call fcn.1000ff60
push eax
push 1
push 0
push esi
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call fcn.100101f0
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x10004d5b
add eax, 0xc
jmp 0x10004d60
mov eax, 0x1009c800
lea ecx, [ebp - 0x24c]
push ecx
push 0x2001f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10004db8
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x10004d8d
add eax, 0xc
jmp 0x10004d92
mov eax, 0x1009c800
push 0
lea ecx, [ebp - 0x24c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10004e0e
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x10004dc7
mov ecx, dword [eax + 4]
jmp 0x10004dc9
xor ecx, ecx
mov eax, dword [ebp - 0x250]
lea esi, [eax + 0xc]
test eax, eax
jne 0x10004ddb
mov esi, 0x1009c800
lea eax, [ecx*2 + 1]
push eax
push ecx
lea ecx, [ebp - 0x244]
call fcn.1000ff60
push eax
push 1
push 0
push esi
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call fcn.100101f0
push dword [ebp - 0x24c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea ecx, [ebp - 0x244]
call fcn.1000f020
jmp 0x10004e2f
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x248]
call esi
test ebx, ebx
jg 0x10004e55
jl 0x10004e41
test edi, edi
jne 0x10004e55
mov dword [0x100a6550], 0xbb9
mov dword [ebp - 0x270], 1
lea ecx, [ebp - 0x280]
call fcn.1000f020
lea ecx, [ebp - 0x284]
call fcn.1000f020
lea ecx, [ebp - 0x26c]
call fcn.1000f020
lea ecx, [ebp - 0x25c]
call fcn.1000f020
mov esi, dword [ebp - 0x270]
lea ecx, [ebp - 0x274]
call fcn.1000f020
lea ecx, [ebp - 0x278]
call fcn.1000f020
lea ecx, [ebp - 0x250]
call fcn.1000f020
mov eax, esi
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.1000de54
mov esp, ebp
pop ebp
ret 0x10