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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d796
mov eax, dword fs:[0]
push eax
mov eax, 0x2024
call fcn.004da530
mov eax, dword [0x5c5244]
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 dword [ebp - 0x2020], 0
mov dword [ebp - 0x201c], 0
mov dword [ebp - 0x2018], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2020]
push 0x20019
push str.SOFTWARELudashi
push SysReAllocString
call fcn.0042e900
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x493f2f
push 0x1000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.004f39e0
mov esi, dword [ebp - 0x2020]
lea eax, [ebp - 0x2014]
add esp, 0xc
mov dword [ebp - 0x2014], 0x1000
push eax
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2024]
push eax
push 0
push str.url0
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x493ee7
mov eax, dword [ebp - 0x2024]
cmp eax, 1
je 0x493ecc
cmp eax, 2
jne 0x493ee7
mov eax, dword [ebp - 0x2014]
test eax, eax
je 0x493f02
test al, 1
jne 0x493ee7
shr eax, 1
cmp word [ebp + eax*2 - 0x2012], 0
je 0x493f0b
test esi, esi
je 0x493ef6
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x2020], esi
mov dword [ebp - 0x201c], 0
jmp 0x493f35
xor eax, eax
mov word [ebp - 0x2010], ax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x493f20
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x2020], esi
mov dword [ebp - 0x201c], 0
jmp 0x494062
mov esi, dword [ebp - 0x2020]
mov dword [ebp - 0x2030], 0
mov dword [ebp - 0x202c], 0
mov dword [ebp - 0x2028], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2030]
push 0x20219
push str.SOFTWARELudashi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042e900
test eax, eax
jne 0x49403d
push 0x1000
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.004f39e0
mov edi, dword [ebp - 0x2030]
lea eax, [ebp - 0x2014]
add esp, 0xc
mov dword [ebp - 0x2014], 0x1000
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2024]
push eax
push 0
push str.url0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x494022
mov eax, dword [ebp - 0x2024]
cmp eax, 1
je 0x493fd5
cmp eax, 2
jne 0x494022
mov ecx, dword [ebp - 0x2014]
test ecx, ecx
je 0x493ff5
test cl, 1
jne 0x494022
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x1012], 0
je 0x493ffe
jmp 0x494022
xor eax, eax
mov word [ebp - 0x1010], ax
shr ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1010]
push eax
push 1
push str.url0
push str.SOFTWARELudashi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test edi, edi
je 0x494031
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x2030], edi
mov dword [ebp - 0x202c], 0
jmp 0x494043
mov edi, dword [ebp - 0x2030]
mov byte [ebp - 4], 0
test edi, edi
je 0x494058
push edi
call ebx
mov dword [ebp - 0x2030], 0
mov dword [ebp - 0x202c], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49407a
push esi
call ebx
mov dword [ebp - 0x2020], 0
mov dword [ebp - 0x201c], 0
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.004da3bd
mov esp, ebp
pop ebp
ret