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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddaf6
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x523f10]
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x270], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x29c], edx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x258], ecx
mov dword [ebp - 4], 0
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x494312
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x278], eax
mov ecx, str.RegistryMACHINESOFTWAREClasses_
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x494353
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b33b0
test eax, eax
je 0x494371
push edi
push eax
lea ecx, [ebp - 0x278]
call fcn.00424e6b
jmp 0x494371
push str.RegistryMACHINESOFTWAREClasses_
call fcn.004b9b7a
add esp, 4
push eax
push str.RegistryMACHINESOFTWAREClasses_
lea ecx, [ebp - 0x278]
call fcn.004253ee
push 0x4eba54
mov byte [ebp - 4], 2
call fcn.004b9b7a
add esp, 4
push eax
push 0x4eba54
mov ecx, ebx
call fcn.004253ee
mov eax, dword [ebp - 0x254]
lea esi, [esi + eax + 4]
mov ecx, 0x6b6e
mov dword [ebp - 0x238], esi
cmp word [esi], cx
je 0x4943c8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x495bb3
test byte [esi + 2], 0x20
movzx edi, word [esi + 0x48]
je 0x494410
call fcn.004ab443
push eax
push edi
lea ecx, [esi + 0x4c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00496030
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x228]
push edi
mov ecx, ebx
call fcn.0042ccd3
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x494454
shr edi, 1
call fcn.004ab443
push eax
push edi
lea ecx, [esi + 0x4c]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00425308
lea edx, [ebp - 0x244]
push edx
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00424ef9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp dword [ebp + 0x1c], edi
jle 0x494502
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x4e9fa0
call fcn.004247eb
mov byte [ebp - 4], 5
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov dword [ebp - 0x2a4], esp
mov edi, esp
push eax
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x268], esp
mov edi, esp
push eax
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [ebp - 0x228]
mov byte [ebp - 4], 2
call fcn.0046b5f0
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.00424ef9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494500
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x24c], edi
cmp eax, 2
jne 0x494553
mov ecx, dword [ebp - 0x254]
push esi
push ecx
call fcn.00493480
add esp, 8
test eax, eax
je 0x494536
mov edx, dword [ebp - 0x270]
mov dword [edx], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push str.RegDatFileWalker:_all_good
call fcn.004247eb
call fcn.00493160
jmp 0x495b96
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x248], edi
cmp eax, 1
jne 0x4945c6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x29c]
push edi
lea ecx, [ebp - 0x224]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
inc eax
cmp eax, edi
jne 0x4946a7
xor esi, esi
push 4
call fcn.004aad32
add esp, 4
cmp eax, esi
je 0x4951ee
lea edx, [ebp - 0x2c0]
mov dword [eax], edx
jmp 0x4951f0
cmp eax, 4
jne 0x4947ad
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x29c]
lea ecx, [ebp - 0x224]
push ecx
push 0xf003f
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x224]
cmp eax, edi
je 0x494634
push edi
push edi
lea ecx, [ebp - 0x298]
push ecx
lea edx, [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x2c8]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x298]
cmp eax, edi
je 0x494634
push eax
call fcn.004ba3e2
add esp, 4
mov dword [ebp - 0x25c], eax
mov ebx, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
push edx
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x234]
push edx
push eax
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x244], edi
call fcn.0048cb50
test eax, eax
je 0x4946a5
cmp dword [ebp - 0x244], 0
je 0x494696
cmp dword [ebp - 0x260], 4
jne 0x494696
mov dword [ebp - 0x248], 1
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004ba2c5
add esp, 4
xor edi, edi
lea eax, [ebp - 0x2e0]
push eax
call fcn.00424b59
mov byte [ebp - 4], 8
mov dword [ebp - 0x244], edi
cmp dword [esi + 0x24], edi
jbe 0x494e4b
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x4946e1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x494e4b
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x244]
mov esi, dword [ebp - 0x254]
lea ecx, [edx + eax*4 + 4]
mov edx, dword [ecx + esi]
lea edi, [edx + esi + 4]
mov eax, 0x6b76
cmp word [edi], ax
jne 0x494e2f
test dword [edi + 4], 0x80000000
mov ecx, dword [edi + 8]
lea eax, [edi + 8]
lea esi, [esi + ecx + 4]
mov dword [ebp - 0x230], esi
je 0x494730
mov esi, eax
mov dword [ebp - 0x230], eax
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x494308
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 9
test byte [edi + 0x10], 1
movzx ebx, word [edi + 2]
je 0x4947ec
call fcn.004ab443
push eax
push ebx
lea ecx, [edi + 0x14]
push ecx
lea ecx, [ebp - 0x2a0]
call fcn.00496030
mov byte [ebp - 4], 0xa
mov ebx, dword [ebp - 0x2a0]
push ebx
lea ecx, [ebp - 0x22c]
call fcn.0042ccd3
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x494834
cmp eax, 3
jne 0x4946a7
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x250]
push edi
push edi
push 4
lea eax, [ebp - 0x228]
push eax
push ecx
push edx
mov eax, 1
mov dword [ebp - 0x228], 0x11223344
call fcn.0048c890
jmp 0x4946a7
shr ebx, 1
call fcn.004ab443
push eax
push ebx
lea ecx, [edi + 0x14]
push ecx
lea ecx, [ebp - 0x274]
call fcn.00425308
lea edx, [ebp - 0x274]
push edx
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xb
call fcn.00424ef9
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494840
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
and ebx, 0xfffffff
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x234], 0
cmp ebx, 0x3fd8
jbe 0x494925
mov edx, 0x6264
cmp word [esi], dx
jne 0x494925
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x254]
lea edx, [eax + ecx + 4]
push ebx
mov dword [ebp - 0x23c], edx
call fcn.004ba3e2
mov dword [ebp - 0x234], eax
xor eax, eax
add esp, 4
xor edi, edi
cmp ax, word [esi + 2]
jae 0x494919
movzx eax, di
mov ecx, eax
imul ecx, ecx, 0x3fd8
cmp ecx, ebx
jae 0x494919
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x254]
lea esi, [eax + edx + 4]
lea eax, [ecx + 0x3fd8]
cmp eax, ebx
jae 0x4948db
mov eax, 0x3fd8
jmp 0x4948f9
mov eax, 0xa0643f
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xd
mov edx, eax
imul edx, edx, 0x3fd8
mov eax, ebx
sub eax, edx
push eax
mov eax, dword [ebp - 0x234]
add ecx, eax
push esi
push ecx
call fcn.004b9e00
mov ecx, dword [ebp - 0x230]
inc edi
add esp, 0xc
cmp di, word [ecx + 2]
jb 0x4948a8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x27c], edx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x2e0]
call fcn.00424bbd
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp - 0x22c]
cmp eax, 1
jne 0x4949c3
mov ecx, dword [ebp - 0x27c]
mov esi, dword [ebp - 0x264]
mov edx, dword [ebp - 0x224]
push ebx
push ecx
push esi
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x494992
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x23c], esp
push edi
push ecx
push esi
push str.Preparing_RegValue__d_:__s:__s
push eax
call fcn.0046bd30
add esp, 0x14
call fcn.00493160
add esp, 4
jmp 0x494df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp - 0x23c], esp
push eax
mov eax, dword [ebp + 8]
push edi
push eax
push esi
push str._Failed_setting_RegValue__d_:__s:__s__LE_d
push edx
call fcn.0046bd30
add esp, 0x18
call fcn.00493160
add esp, 4
jmp 0x494df6
cmp eax, 4
jne 0x494be8
mov edx, dword [ebp - 0x224]
xor esi, esi
cmp edx, esi
je 0x494b02
mov eax, dword [ebp - 0x298]
cmp eax, esi
je 0x494b02
mov ecx, dword [ebp - 0x25c]
cmp ecx, esi
je 0x494b02
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x23c]
push ecx
push esi
push edi
push edx
mov dword [ebp - 0x23c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x494b02
mov esi, dword [ebp - 0x230]
mov edi, dword [ebp - 0x25c]
call fcn.00496150
mov edi, dword [ebp - 0x27c]
not eax
xor eax, dword [ebp - 0x23c]
mov esi, ebx
mov dword [ebp - 0x23c], eax
call fcn.00496150
not eax
xor eax, dword [ebp - 0x264]
cmp dword [ebp - 0x23c], eax
je 0x494df6
cmp dword [ebp - 0x248], 0
mov dword [ebp - 0x230], 0
je 0x494ad3
cmp dword [ebp - 0x24c], 0
je 0x494ad3
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x230]
push edx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x21c], esp
mov esi, esp
push eax
call fcn.0042545f
mov ecx, dword [ebp - 0x250]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x24c]
add esp, 4
push eax
push ecx
call fcn.00493780
add esp, 0x10
test eax, eax
je 0x494ad3
mov edx, dword [ebp - 0x23c]
cmp dword [ebp - 0x230], edx
je 0x494b60
mov eax, dword [ebp - 0x22c]
push ecx
mov ecx, dword [ebp + 8]
mov edx, esp
mov dword [ebp - 0x21c], esp
push eax
push ecx
push str.MergeRegistry:_NOT_overwriting_existing_value:__s:__s
push edx
call fcn.0046bd30
add esp, 0x10
call fcn.00493160
add esp, 4
jmp 0x494df6
mov dword [ebp - 0x23c], esi
cmp dword [ebp - 0x248], esi
je 0x494b66
cmp dword [ebp - 0x24c], esi
je 0x494b66
lea eax, [ebp - 0x23c]
push eax
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x21c], esp
mov esi, esp
push eax
call fcn.0042545f
mov edx, dword [ebp - 0x250]
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebp - 0x24c]
add esp, 4
push ecx
push edx
call fcn.00493780
add esp, 0x10
test eax, eax
je 0x494b66
cmp dword [ebp - 0x23c], 0
je 0x494ad3
mov edi, dword [ebp - 0x22c]
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x21c], esp
push edi
push ecx
push str.MergeRegistry:_writing_value:__s:__s
push eax
call fcn.0046bd30
add esp, 0x10
call fcn.00493160
mov eax, dword [ebp - 0x224]
add esp, 4
test eax, eax
jne 0x494bca
mov ecx, dword [ebp - 0x29c]
push eax
lea edx, [ebp - 0x224]
push edx
push eax
push 0xf003f
push eax
push eax
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x494df6
mov edi, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x264]
push ebx
push edx
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x494df6
cmp eax, 3
jne 0x494d0a
mov edi, dword [ebp - 0x27c]
mov esi, ebx
call fcn.00496150
not eax
xor eax, dword [ebp - 0x264]
push ecx
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
mov dword [ebp - 0x21c], esp
mov esi, esp
push eax
call fcn.0042545f
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x228]
call fcn.004936f0
add esp, 4
push 0
push 0
push 0
push 4
lea edx, [ebp - 0x23c]
push edx
push ecx
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0x4e9fa0
mov esi, 1
call fcn.004247eb
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x228]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x230], esp
mov edi, esp
push eax
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x264], esp
mov edi, esp
push eax
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [ebp - 0x268]
mov byte [ebp - 4], 0xd
call fcn.0046b5f0
mov eax, dword [eax]
add esp, 0xc
push eax
mov eax, dword [ebp - 0x250]
push eax
mov eax, esi
call fcn.0048c890
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494ceb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x494dea
test eax, eax
jne 0x494df6
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x264]
push ecx
push edx
push eax
lea ecx, [ebp - 0x260]
push str.__.2d___ws:__ws
push ecx
call fcn.0046bd30
add esp, 0x14
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x220]
push 0x4ea498
push eax
mov byte [ebp - 4], 0x10
call fcn.00424a8f
add esp, 0xc
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00426192
mov eax, dword [eax]
push eax
call fcn.004bf1e4
mov eax, dword [ebp - 0x2a4]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494d96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494dbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x260]
push ecx
push str.RegDump
call fcn.00469f10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x494df6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x494e09
push eax
call fcn.004ba2c5
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494e2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x238]
inc eax
mov dword [ebp - 0x244], eax
cmp eax, dword [ecx + 0x24]
jb 0x4946c6
xor esi, esi
cmp dword [ebp + 0x18], 4
jne 0x49515d
cmp dword [ebp - 0x224], esi
je 0x49515d
lea edx, [ebp - 0x294]
push edx
call fcn.00424b59
push esi
push 1
lea eax, [ebp - 0x294]
push eax
push ecx
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x21c], esp
push esi
call fcn.004247eb
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.0046d5e0
mov edi, dword [ebp - 0x288]
add esp, 0x14
cmp edi, dword [ebp - 0x284]
jbe 0x494eae
call fcn.004b9cf1
mov ebx, dword [ebp - 0x294]
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], edi
mov esi, dword [ebp - 0x284]
cmp dword [ebp - 0x288], esi
jbe 0x494ed3
call fcn.004b9cf1
test ebx, ebx
je 0x494edf
cmp ebx, dword [ebp - 0x294]
je 0x494ee4
call fcn.004b9cf1
cmp edi, esi
je 0x4950e5
test ebx, ebx
jne 0x4950da
call fcn.004b9cf1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x494f05
call fcn.004b9cf1
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.0042545f
lea ebx, [eax + 0x10]
mov dword [ebp - 0x21c], ebx
sub esp, 0x14
mov byte [ebp - 4], 0x13
mov edx, esp
mov dword [ebp - 0x220], esp
lea eax, [ebp - 0x2e0]
push eax
push edx
call fcn.0042c3b2
push 0
push ecx
mov byte [ebp - 4], 0x14
lea eax, [ebx - 0x10]
mov dword [ebp - 0x2a4], esp
mov edi, esp
push eax
mov dword [ebp - 0x274], eax
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 0x13
call fcn.0046f300
add esp, 0x20
test eax, eax
jne 0x49507e
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x49507e
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x49507e
cmp dword [ebp - 0x25c], 0
je 0x49507e
lea edx, [ebp - 0x228]
push edx
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x25c]
push eax
lea edx, [ebp - 0x23c]
push edx
push 0
push ebx
push ecx
mov dword [ebp - 0x23c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49507e
mov esi, dword [ebp - 0x228]
mov edi, dword [ebp - 0x25c]
mov dword [ebp - 0x230], eax
call fcn.00496150
mov esi, eax
not esi
xor esi, dword [ebp - 0x23c]
cmp dword [ebp - 0x248], 0
je 0x49507e
cmp dword [ebp - 0x24c], 0
je 0x49507e
lea eax, [ebp - 0x230]
push eax
push ecx
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x220], esp
mov edi, esp
push ecx
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
mov edx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x250]
add esp, 4
push edx
push eax
call fcn.00493780
add esp, 0x10
test eax, eax
je 0x49507e
cmp dword [ebp - 0x230], esi
jne 0x49507e
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push ebx
push edx
push str.MergeRegistry:_deleting_gone_value:__s:__s
push ecx
call fcn.0046bd30
add esp, 0x10
call fcn.00493160
mov eax, dword [ebp - 0x224]
add esp, 4
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x274]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4950a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
test eax, eax
jne 0x4950e1
call fcn.004b9cf1
xor eax, eax
mov ecx, dword [ebp - 0x268]
cmp ecx, dword [eax + 0x10]
jb 0x4950c2
call fcn.004b9cf1
add dword [ebp - 0x268], 4
mov edi, dword [ebp - 0x268]
mov ebx, dword [ebp - 0x26c]
jmp 0x494ec0
mov eax, dword [ebx]
jmp 0x494efb
mov eax, dword [eax]
jmp 0x4950b2
mov byte [ebp - 4], 0x15
mov edi, dword [ebp - 0x288]
test edi, edi
je 0x495134
mov ebx, dword [ebp - 0x284]
cmp edi, ebx
je 0x495125
lea ecx, [ecx]
mov eax, dword [edi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49511e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, ebx
jne 0x495100
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.004aad6c
add esp, 4
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x294]
push edx
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], eax
call fcn.004aad6c
add esp, 4
xor esi, esi
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x2d4]
cmp edi, esi
je 0x4951ad
mov eax, dword [ebp - 0x2d0]
mov ebx, eax
cmp edi, eax
je 0x4951a2
mov eax, dword [edi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495195
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, ebx
jne 0x495177
mov edi, dword [ebp - 0x2d4]
push edi
call fcn.004aad6c
add esp, 4
xor esi, esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2e0]
push ecx
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2cc], esi
call fcn.004aad6c
mov eax, dword [ebp - 0x25c]
add esp, 4
cmp eax, esi
je 0x4945a7
push eax
call fcn.004ba2c5
add esp, 4
jmp 0x4945a7
xor eax, eax
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], esi
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0x14], esi
jbe 0x49544e
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x254]
lea ecx, [eax + ecx + 4]
xor edx, edx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], esi
cmp dx, word [ecx + 2]
jae 0x49544e
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x495261
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x495b0f
mov ecx, dword [ebp - 0x238]
movzx eax, word [ecx]
mov edx, 0x666c
cmp ax, dx
je 0x49529c
mov edx, 0x686c
cmp ax, dx
je 0x49529c
mov edx, 0x6972
cmp ax, dx
je 0x495290
mov edx, 0x696c
cmp ax, dx
jne 0x49548b
mov eax, dword [ebp - 0x234]
mov edi, dword [ecx + eax*4 + 4]
jmp 0x4952a6
mov edx, dword [ebp - 0x234]
mov edi, dword [ecx + edx*8 + 4]
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x494308
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x29c]
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x258]
push ecx
mov ecx, dword [ebp - 0x270]
push edx
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push ecx
inc edx
push edx
mov edx, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x248]
push ecx
push edi
mov edi, dword [ebp + 8]
push edx
push ecx
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add edi, 0xfffffff0
mov dword [ebp - 0x21c], esp
mov esi, esp
call edx
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x495337
cmp eax, dword [edi]
jne 0x495337
mov ebx, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x495372
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4954bd
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.004b9601
add esp, 0x10
add ebx, 0x10
mov dword [esi], ebx
call fcn.00494290
mov edx, dword [ebp - 0x2b4]
add esp, 0x28
test edx, edx
jne 0x49538d
xor ecx, ecx
jmp 0x495398
mov ecx, dword [ebp - 0x2ac]
sub ecx, edx
sar ecx, 2
mov eax, dword [ebp - 0x2b0]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x4953dd
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 0x220], 0
mov ecx, dword [ebp - 0x220]
push ecx
push edx
lea ecx, [ebp - 0x248]
push ecx
push 1
push eax
call fcn.00425e98
add esp, 0x14
add esi, 4
mov dword [ebp - 0x2b0], esi
jmp 0x495407
cmp edx, eax
jbe 0x4953e6
call fcn.004b9cf1
mov eax, dword [ebp - 0x2c0]
push esi
push eax
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2c0]
call fcn.004250c5
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49542d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
movzx edx, word [ecx + 2]
inc eax
cmp eax, edx
mov dword [ebp - 0x234], eax
jl 0x495240
xor esi, esi
cmp dword [ebp + 0x18], 4
jne 0x495b0f
cmp dword [ebp - 0x224], esi
je 0x495b20
cmp dword [ebp - 0x24c], 0
je 0x495b0f
push 4
call fcn.004aad32
xor esi, esi
add esp, 4
cmp eax, esi
je 0x4954c2
lea ecx, [ebp - 0x294]
mov dword [eax], ecx
jmp 0x4954c4
mov edx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x238]
sub eax, dword [ebp - 0x254]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
push edx
push str._Invalid_block:__s__offset_u
push ecx
call fcn.0046bd30
add esp, 0x10
call fcn.00493160
jmp 0x495b0c
call fcn.00426489
xor eax, eax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x280], esi
push esi
push 1
push esi
lea edx, [ebp - 0x294]
push edx
push ecx
mov byte [ebp - 4], 0x1b
mov edi, esp
mov dword [ebp - 0x21c], esp
mov dword [ebp - 0x21c], edi
call fcn.004ab443
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x495514
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [edi], ecx
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 0x1c
mov ebx, dword [eax]
cmp dword [eax + 4], esi
je 0x495577
cmp dword [eax + 0xc], esi
lea edx, [eax + 0xc]
jge 0x495553
cmp dword [ecx - 8], esi
jge 0x495547
push 0x80070057
call fcn.00422000
mov dword [ecx - 0xc], esi
mov ecx, dword [edi]
xor edx, edx
mov word [ecx], dx
jmp 0x495577
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x495569
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.0046d420
mov edi, dword [ebp - 0x288]
add esp, 0x18
cmp edi, dword [ebp - 0x284]
jbe 0x49559d
call fcn.004b9cf1
mov ebx, dword [ebp - 0x294]
mov dword [ebp - 0x240], ebx
mov esi, dword [ebp - 0x284]
mov dword [ebp - 0x23c], edi
cmp dword [ebp - 0x288], esi
jbe 0x4955c2
call fcn.004b9cf1
test ebx, ebx
je 0x4955ce
cmp ebx, dword [ebp - 0x294]
je 0x4955d3
call fcn.004b9cf1
cmp edi, esi
je 0x495a9c
test ebx, ebx
jne 0x495619
call fcn.004b9cf1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4955f0
call fcn.004b9cf1
mov esi, dword [edi]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x49561d
cmp eax, dword [esi]
jne 0x49561d
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x495658
mov eax, dword [ebx]
jmp 0x4955e6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4954bd
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004b9601
add esp, 0x10
lea ebx, [edi + 0x10]
mov dword [ebp - 0x270], ebx
sub esp, 0x18
mov byte [ebp - 4], 0x1d
mov ecx, esp
mov dword [ebp - 0x21c], esp
lea edx, [ebp - 0x2c0]
push edx
push ecx
call fcn.0042c3b2
mov byte [ebp - 4], 0x1e
push 0
push ecx
mov ecx, dword [ebx - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea esi, [ebx - 0x10]
mov dword [ebp - 0x220], esp
mov dword [ebp - 0x220], esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4956b7
cmp eax, dword [esi]
jne 0x4956b7
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4956f2
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4954bd
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004b9601
add esp, 0x10
mov edx, dword [ebp - 0x220]
add edi, 0x10
mov dword [edx], edi
mov byte [ebp - 4], 0x1d
call fcn.0046f300
add esp, 0x20
test eax, eax
jne 0x495a52
cmp dword [esi + 0xc], 1
jle 0x49572c
mov eax, dword [esi + 4]
push eax
lea ecx, [ebp - 0x270]
call fcn.00422592
mov ebx, dword [ebp - 0x270]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x495731
mov edi, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
sub eax, edx
sar eax, 1
push eax
push ebx
push edi
call fcn.0048c570
mov esi, eax
mov eax, dword [ebx - 8]
add esp, 0xc
push eax
push ebx
call fcn.004b9b5b
add esp, 8
test eax, eax
jl 0x49553d
cmp eax, dword [ebx - 8]
jg 0x49553d
lea edx, [ebp - 0x238]
push edx
xor ecx, ecx
push 0x20019
mov dword [ebx - 0xc], eax
push ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x224]
push ebx
push eax
mov dword [ebp - 0x238], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test esi, esi
je 0x495933
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x495933
push edi
push eax
mov eax, esi
call fcn.00494210
add esp, 8
test eax, eax
je 0x495933
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0x4e9fa0
call fcn.004247eb
push ecx
mov byte [ebp - 4], 0x1f
lea esi, [ebx - 0x10]
mov dword [ebp - 0x220], esp
mov edi, esp
push esi
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x20
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x228], esp
mov edi, esp
push eax
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [ebp - 0x2a4]
mov byte [ebp - 4], 0x1d
call fcn.0046b5f0
add esp, 8
mov byte [ebp - 4], 0x21
mov edx, dword [eax]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push edx
push str.MergeRegistry:_key_deleted_in_new_version:__s__deleting_from_virtual_registry.
push ecx
call fcn.0046bd30
add esp, 0xc
call fcn.00493160
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x2a4]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495876
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp word [ebx], 0
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x220], eax
je 0x495a41
lea ecx, [ebp - 0x258]
push ecx
push 0x10008
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x495a41
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x258]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push ecx
mov dword [ebp - 0x268], 0x104
call edi
cmp eax, 0x103
je 0x495913
test eax, eax
jne 0x495921
push eax
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x218]
push edx
push eax
call fcn.0046ce70
add esp, 0xc
test eax, eax
je 0x4958b0
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x495a41
mov ecx, dword [ebp - 0x220]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x495a41
push ecx
mov esi, esp
mov dword [ebp - 0x21c], esp
mov dword [ebp - 0x220], esi
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x494308
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4e9fa0
mov byte [ebp - 4], 0x22
test ecx, 0xffff0000
jne 0x49598f
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b33b0
test eax, eax
je 0x4959a9
push edi
push eax
mov ecx, esi
call fcn.00424e6b
jmp 0x4959a9
push 0x4e9fa0
call fcn.004b9b7a
add esp, 4
push eax
push 0x4e9fa0
mov ecx, esi
call fcn.004253ee
push ecx
mov byte [ebp - 4], 0x23
lea esi, [ebx - 0x10]
mov dword [ebp - 0x220], esp
mov edi, esp
push esi
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x24
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x228], esp
mov edi, esp
push eax
call fcn.0042545f
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [ebp - 0x2a0]
mov byte [ebp - 4], 0x1d
call fcn.0046b5f0
add esp, 8
mov byte [ebp - 4], 0x25
mov edx, dword [eax]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push edx
push str.MergeRegistry:_key_deleted_in_new_version:__s__but_changed_in_virtual_registry._Not_deleting.
push ecx
call fcn.0046bd30
add esp, 0xc
call fcn.00493160
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x2a0]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495a41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x495a52
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0x1b
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495a6f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ebx, dword [ebp - 0x240]
test ebx, ebx
jne 0x495a98
call fcn.004b9cf1
xor eax, eax
mov edi, dword [ebp - 0x23c]
cmp edi, dword [eax + 0x10]
jb 0x495a90
call fcn.004b9cf1
add edi, 4
jmp 0x4955a9
mov eax, dword [ebx]
jmp 0x495a80
mov byte [ebp - 4], 0x26
mov edi, dword [ebp - 0x288]
test edi, edi
je 0x495ae8
mov ebx, dword [ebp - 0x284]
cmp edi, ebx
je 0x495ad9
mov eax, dword [edi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495ad2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, ebx
jne 0x495ab4
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.004aad6c
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x294]
push edx
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], eax
call fcn.004aad6c
add esp, 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x495b20
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0x27
mov edi, dword [ebp - 0x2b4]
xor esi, esi
cmp edi, esi
je 0x495b74
mov ebx, dword [ebp - 0x2b0]
cmp edi, ebx
je 0x495b65
lea ebx, [ebx]
mov eax, dword [edi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495b5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, ebx
jne 0x495b40
mov ecx, dword [ebp - 0x2b4]
push ecx
call fcn.004aad6c
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c0]
push edx
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], esi
call fcn.004aad6c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495bbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495be5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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.004b9212
mov esp, ebp
pop ebp
ret