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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push esi
mov ecx, 0x5100f6
call fcn.004b532d
xor esi, esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
push str.OpenWithProgids
push dword [ebp + 8]
lea eax, [ebp - 0x90]
mov dword [ebp - 4], esi
push eax
call fcn.0040a8b0
add esp, 0xc
cmp dword [ebp - 0x7c], 8
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x90]
push esi
push eax
push SysReAllocString
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b708
mov esi, dword [ebp - 0x18]
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x4c], eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x10], edi
push eax
push edi
push esi
mov dword [ebp - 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40b46f
nop
xor eax, eax
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2c], 0
lea edx, [eax + 2]
mov dword [ebp - 0x28], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b3a4
sub eax, edx
lea ecx, [ebp - 0x3c]
sar eax, 1
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00403280
cmp dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
je 0x40b3f7
lea eax, [ebp - 0x3c]
push eax
cmp edi, dword [ebp - 0x18]
je 0x40b3e5
mov ecx, edi
call fcn.00403940
add edi, 0x18
mov dword [ebp - 0x50], edi
jmp 0x40b3f7
push edi
lea ecx, [ebp - 0x54]
call fcn.0040a9a0
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x200
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x40b446
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b439
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b732
push edx
push ecx
call fcn.004b531f
mov eax, dword [ebp - 0x10]
add esp, 8
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x290]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40b380
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x40b47f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x5c], 0
push eax
push 0xf003f
push 0
push 0x4e06c8
push SysReAllocString
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b6a3
test esi, esi
je 0x40b4bb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0
test eax, eax
jne 0x40b6a6
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], ecx
cmp ecx, edi
je 0x40b68a
mov edx, dword [ecx + 0x10]
mov eax, SysReAllocString
sub eax, edx
mov dword [ebp - 0x44], edx
cmp eax, 1
jb 0x40b72d
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x10], ecx
jb 0x40b505
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
lea ecx, [edx + 1]
mov dword [ebp - 0x3c], 0
mov esi, 7
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x40], eax
cmp ecx, esi
jbe 0x40b566
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40b543
mov esi, SysReAllocString
jmp 0x40b54e
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403210
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], esi
lea esi, [edx + edx]
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
push eax
call fcn.004b7e80
mov eax, dword [ebp - 0x40]
mov ecx, 0x5f
xor edx, edx
add esp, 0xc
mov word [eax + esi], cx
mov ecx, dword [ebp - 0x44]
mov word [eax + ecx*2 + 2], dx
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0040cc80
mov dword [ebp - 0x78], 0
xor ecx, ecx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
movups xmm0, xmmword [eax]
mov byte [ebp - 4], 2
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x40b618
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b60e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b732
push edx
push ecx
call fcn.004b531f
add esp, 8
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x24]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push 4
push ecx
push 4
push 0
push eax
push esi
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x40b679
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b66f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b732
push edx
push ecx
call fcn.004b531f
add esp, 8
mov ecx, dword [ebp - 0x48]
add ecx, 0x18
mov dword [ebp - 0x48], ecx
cmp ecx, edi
jne 0x40b4e1
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test esi, esi
je 0x40b6a6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x40b6a6
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b707
mov esi, eax
cmp esi, edi
je 0x40b6c1
mov ecx, esi
call fcn.0040cc00
add esi, 0x18
cmp esi, edi
jne 0x40b6b3
mov esi, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x18]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40b6fa
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b732
push ecx
push esi
call fcn.004b531f
mov esi, dword [ebp - 0x14]
add esp, 8
pop edi
lea ecx, [ebp - 0x90]
call fcn.0040cc00
test esi, esi
je 0x40b71e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004027e0
call fcn.004bba0f
int3