Function at 0x49888c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x498894
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x498ad3
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLastError_1
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x3c4]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.0047cfc0
xor edx, edx
call fcn.0047c960
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x3c4]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.0047cfc0
mov eax, dword [eax + 8]
lea ecx, [ebp - 0xc]
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
call fcn.00404498
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x3c4]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.0047cfc0
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x10]
mov edx, 1
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404498
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x3c4]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.0047cfc0
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x14]
mov edx, 2
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404498
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00494924
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [0x49cd40]
call fcn.0048a414
test al, al
je 0x498ab8
mov eax, dword [0x49cd50]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp esi, eax
jne 0x4989bb
push 0
push 0
mov eax, dword [0x49cd54]
call fcn.00418db0
jmp 0x4989e0
lea ecx, [ebp - 0x18]
lea edx, [esi + 1]
mov eax, dword [0x49cd50]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00408b8c
cdq
push edx
push eax
mov eax, dword [0x49cd54]
call fcn.00418db0
mov edi, 6
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp + 8]
lea edx, [eax - 4]
mov eax, dword [0x49cd54]
call fcn.00498314
dec edi
jne 0x4989e5
lea ecx, [ebp - 0x20]
lea edx, [ebp - 8]
mov eax, dword [0x49cd54]
call fcn.00498314
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 0x498aec
call fcn.004047fc
jne 0x498a2c
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.00497408
mov ebx, eax
jmp 0x498a92
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00408b8c
mov edx, dword [ebp + 8]
mov word [edx - 0x16], ax
mov eax, dword [ebp - 8]
call fcn.004046b8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0x16]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.004048b0
push eax
mov eax, dword [0x49cd40]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x498a90
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
lea eax, [ebp - 0x24]
mov edx, 0x498af8
call fcn.00404704
mov eax, dword [ebp - 0x24]
call fcn.00493f48
jmp 0x498a92
mov bl, 1
test bl, bl
je 0x498aae
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.00408b28
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x49cd40]
call fcn.0048a37c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498ada
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00404424
ret