Function at 0x1048fd2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x10544bc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp eax, dword [ecx + 0x2350]
mov ebx, dword [ecx + eax*4 + 0x232c]
mov edx, dword [ebx]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], edx
jae 0x1049019
mov eax, dword [ebx + 0x440]
test eax, eax
jne 0x1049023
mov eax, 0x80004005
jmp 0x104954c
xor edx, edx
test eax, eax
push edi
mov edi, 0xffff
mov dword [ebp - 0xd0], 0x7fffffff
jbe 0x10490a7
lea eax, [ebx + 0x444]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax]
cmp eax, 1
jne 0x104905b
cmp dword [ebx + 0x2a5c], 0
je 0x104909c
cmp eax, 3
jne 0x1049068
mov dword [ebp - 0xd0], eax
jmp 0x1049085
cmp eax, 2
jne 0x1049087
cmp dword [ecx + 0x252c], 0
je 0x1049087
cmp dword [ebp - 0xd0], 3
je 0x1049087
mov dword [ebp - 0xd0], eax
mov edi, edx
add dword [ebp - 0xd4], 0xca8
inc edx
cmp edx, dword [ebx + 0x440]
jb 0x1049045
jmp 0x104909e
mov edi, edx
mov eax, 0xffff
cmp edi, eax
jne 0x10490b1
mov eax, 0x82000005
jmp 0x104954b
imul edi, edi, 0xca8
lea edi, [edi + ebx + 0x444]
mov dword [edi + 0xc9c], eax
mov ecx, dword [ebx + 0x2a4c]
test ecx, ecx
je 0x1049123
and dword [ebp - 0xd0], 0
cmp dword [edi + 0xe0], 0
jbe 0x1049123
lea eax, [edi + 0xec]
cmp dword [eax - 8], ecx
jne 0x10490fe
mov edx, dword [eax - 4]
cmp edx, dword [ebx + 0x2a50]
jne 0x10490fe
mov edx, dword [eax]
cmp edx, dword [ebx + 0x2a54]
je 0x1049117
inc dword [ebp - 0xd0]
mov edx, dword [ebp - 0xd0]
add eax, 0x14
cmp edx, dword [edi + 0xe0]
jb 0x10490e4
jmp 0x1049123
mov eax, dword [ebp - 0xd0]
mov dword [edi + 0xc9c], eax
cmp dword [edi + 0xc9c], 0xffff
jne 0x1049318
cmp dword [edi], 3
jne 0x10491d0
xor ecx, ecx
or edx, 0xffffffff
cmp dword [edi + 0xe0], ecx
mov dword [ebp - 0xd4], ecx
mov dword [edi + 0xc9c], ecx
jbe 0x104923b
lea eax, [edi + 0xec]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax - 4]
cmp eax, 0x190
je 0x10491be
cmp eax, edx
jb 0x1049184
jne 0x10491be
cmp dword [ebp - 0xd4], 0
jne 0x10491be
and dword [ebp - 0xd4], 0
mov edx, eax
mov eax, dword [ebp - 0xd0]
mov dword [edi + 0xc9c], ecx
mov eax, dword [eax]
cmp eax, 0x17
je 0x10491b4
cmp eax, 0x18
je 0x10491b4
cmp eax, 0x19
je 0x10491b4
cmp eax, 0x1a
je 0x10491b4
cmp eax, 0x1e
jne 0x10491be
mov dword [ebp - 0xd4], 1
add dword [ebp - 0xd0], 0x14
inc ecx
cmp ecx, dword [edi + 0xe0]
jb 0x1049165
jmp 0x104923b
xor edx, edx
cmp dword [edi + 0xe0], edx
mov dword [ebp - 0xe0], edx
mov dword [edi + 0xc9c], edx
jbe 0x104923b
lea eax, [edi + 0xec]
mov ecx, dword [eax - 8]
cmp ecx, dword [ebx + 0x430]
jne 0x1049227
mov ecx, dword [eax - 4]
cmp ecx, dword [ebx + 0x434]
jne 0x1049227
cmp dword [ebp - 0xe0], 0
jne 0x1049211
mov dword [edi + 0xc9c], edx
mov ecx, dword [eax]
cmp ecx, 0x16
mov dword [ebp - 0xe0], 1
je 0x1049235
cmp ecx, 0x15
je 0x1049235
inc edx
add eax, 0x14
cmp edx, dword [edi + 0xe0]
jb 0x10491ec
jmp 0x104923b
mov dword [edi + 0xc9c], edx
cmp dword [edi + 0xc9c], 0xffff
jne 0x1049318
xor eax, eax
cmp dword [edi + 0xe0], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd0], eax
jbe 0x1049318
lea eax, [edi + 0xec]
mov ecx, dword [eax]
cmp ecx, 0x16
mov edx, dword [eax - 8]
je 0x1049290
cmp ecx, 0x15
mov dword [ebp - 0xd4], 0x10
jne 0x104929a
mov dword [ebp - 0xd4], 0x20
cmp edx, dword [ebp - 0xe4]
ja 0x10492d3
mov ecx, dword [eax - 4]
cmp ecx, dword [ebp - 0xe0]
ja 0x10492d3
mov ecx, dword [eax - 8]
cmp ecx, dword [ebp - 0xe4]
jne 0x10492fd
mov ecx, dword [eax - 4]
cmp ecx, dword [ebp - 0xe0]
jne 0x10492fd
mov edx, dword [ebp - 0xd4]
cmp edx, dword [ebp - 0xdc]
jbe 0x10492fd
jmp 0x10492d9
mov edx, dword [ebp - 0xd4]
mov ecx, dword [eax - 8]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [eax - 4]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xdc], edx
mov dword [edi + 0xc9c], ecx
inc dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xd0]
add eax, 0x14
cmp ecx, dword [edi + 0xe0]
jb 0x1049277
and dword [ebp - 0xdc], 0
mov eax, dword [edi + 0xc9c]
mov ecx, dword [edi]
mov dword [esi + 8], ecx
lea eax, [eax + eax*4]
lea eax, [edi + eax*4 + 0xe4]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0xe8]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 0x1c], ecx
mov ecx, dword [eax]
mov dword [esi + 0x14], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0x18], ecx
xor ecx, ecx
inc ecx
mov dword [esi + 0x44], ecx
xor edx, edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x40], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0xd8]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [eax + 0x26d4]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebx + 0x2a64]
mov dword [esi + 0x2c], ecx
mov ecx, dword [eax + 0x2530]
mov dword [esi + 0x34], ecx
lea ecx, [esi + 0x10]
push ecx
lea ecx, [esi + 0x14]
push ecx
push dword [esi + 0xc]
mov ecx, dword [ebp - 0xd8]
mov dword [esi + 0x3c], edx
push dword [ecx + 0xc]
mov eax, dword [eax + 0x2354]
push dword [esi + 8]
mov edx, dword [eax]
push dword [ebp - 0xec]
push eax
call dword [edx + 0x3c]
test eax, eax
mov dword [ebp - 0xd0], eax
jl 0x10493f4
mov ecx, dword [ebp - 0xd8]
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 0xd0], eax
xor eax, eax
cmp dword [ebp - 0xd0], eax
jge 0x104941e
mov ecx, dword [esi + 0x10]
cmp ecx, eax
je 0x10493f4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [esi + 0x10], 0
mov ecx, dword [ebp - 0xd8]
push edi
mov dword [ebp - 0xdc], 1
call fcn.01047459
test eax, eax
jne 0x104931f
cmp dword [ebp - 0xd0], eax
jl 0x1049545
cmp dword [ebp - 0xdc], eax
je 0x1049545
mov ecx, dword [ebp - 0xd8]
add ecx, 0x253c
cmp word [ecx], ax
je 0x1049545
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x2a4c], edx
mov edx, dword [esi + 0x18]
push eax
lea edi, [ebx + 0x2a50]
mov dword [edi], edx
mov edx, dword [esi + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 0x2a54], edx
lea edx, [ebp - 0xdc]
push edx
push eax
push 0xf003f
push eax
push eax
push eax
push ecx
push 0x80000001
call esi
test eax, eax
jne 0x1049545
mov eax, dword [ebp - 0xe8]
inc eax
push eax
lea eax, [ebp - 0xcc]
push 0x10024dc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0xd8]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xdc]
call esi
test eax, eax
jne 0x1049539
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebx + 0x2a4c]
push eax
push 4
push 0
push 0x100247c
push dword [ebp - 0xd8]
call esi
push 4
push edi
push 4
xor edi, edi
push edi
push 0x100246c
push dword [ebp - 0xd8]
call esi
push 4
lea eax, [ebx + 0x2a54]
push eax
push 4
push edi
push 0x100245c
push dword [ebp - 0xd8]
call esi
push 0x10
add ebx, 0x41c
push ebx
push 3
push edi
push 0x10024c4
push dword [ebp - 0xd8]
call esi
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xd0]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.010059a3
leave
ret 4