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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5746fe
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa50], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa50]
call fcn.004d28e0
test eax, eax
je 0x4d2351
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xa50]
call fcn.004d2140
mov eax, 1
jmp 0x4d2643
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa50]
call fcn.004d3f20
lea ecx, [ebp - 0x820]
push ecx
mov edx, dword [ebp + 8]
push edx
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0
je 0x4d23a2
lea eax, [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
push ecx
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp + 0xc], 1
xor edx, edx
mov word [ebp - 0xa2c], dx
push 0x206
push 0
lea eax, [ebp - 0xa2a]
push eax
call fcn.0053c870
add esp, 0xc
mov dword [ebp - 0xa34], 0x208
lea ecx, [ebp - 0xa34]
push ecx
lea edx, [ebp - 0xa2c]
push edx
push 0
mov eax, dword [ebp - 0x820]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
movzx ecx, word [ebp - 0xa2c]
test ecx, ecx
jne 0x4d23fa
mov dword [ebp + 0xc], 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x5fd8fc]
push eax
push 0x588788
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x814]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x820]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov eax, dword [ebp - 0x820]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x814]
push edx
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0
je 0x4d247f
xor eax, eax
jmp 0x4d2643
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x818]
push ecx
call fcn.004d1e80
add esp, 8
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa50]
call fcn.004d2140
lea edx, [ebp - 0x814]
push edx
mov ecx, dword [ebp - 0xa50]
call fcn.004d41a0
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
je 0x4d24df
mov eax, dword [ebp + 8]
push eax
call fcn.004d1b40
add esp, 4
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d2240
add esp, 8
cmp dword [ebp - 0x81c], 0
je 0x4d263d
call fcn.004f2ba0
test eax, eax
je 0x4d263d
lea ecx, [ebp - 0xa40]
call fcn.0047d8c0
mov dword [ebp - 4], 0
push 0
push 0
push 0x2001f
push 0
push 0
push str.FileAssociations
lea edx, [ebp - 0xa48]
push edx
call fcn.004d18e0
add esp, 4
mov dword [ebp - 0xa54], eax
mov eax, dword [ebp - 0xa54]
mov dword [ebp - 0xa58], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa58]
push ecx
lea edx, [ebp - 0xa4c]
push edx
call fcn.004366f0
add esp, 0xc
mov dword [ebp - 0xa5c], eax
mov ecx, dword [ebp - 0xa5c]
call fcn.004dfdf0
push eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0xa40]
call fcn.004434d0
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xa41], al
lea ecx, [ebp - 0xa4c]
call fcn.0044fc20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa48]
call fcn.0044fc20
movzx eax, byte [ebp - 0xa41]
test eax, eax
je 0x4d25c3
mov dword [ebp - 0x81c], 0
lea ecx, [ebp - 0xa38]
call fcn.00438030
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x5fd8fc]
push edx
push 0x5887b8
lea eax, [ebp - 0xa38]
push eax
call fcn.004386c0
add esp, 0x10
push 1
lea ecx, [ebp - 0xa38]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xa40]
call fcn.00443c30
test eax, eax
je 0x4d261c
mov dword [ebp - 0x81c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa38]
call fcn.0044fc20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa40]
call fcn.004433a0
mov eax, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 8