Function at 0x10014470
Capabilities:
Set registry value

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
mov ebx, ecx
push edi
push 0
mov edx, esi
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
call fcn.1000a910
add esp, 4
mov word [esp + 0x3c], 0x1ff
mov ebp, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [esi]
mov dword [esp + 0x24], ebp
lea eax, [eax + ecx*2]
mov dword [esp + 0x20], eax
test ebp, ebp
jle 0x1001474e
lea esi, [ebp*2]
lea eax, [esi + 0x20]
mov dword [esp + 0x38], eax
add eax, 4
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x100144e6
add edi, 4
mov dword [esp + 0x30], edi
test edi, edi
je 0x1001474e
push esi
push dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x3c], ebp
push edi
mov word [esi + edi], ax
call sub.msvcrt.dll_memcpy
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [esp + 0x28]
add esp, 0xc
push 0
push eax
push 0
push 4
push 0
push 0
push 0
push str.SOFTWAREDownloadManagerIDMBI
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x10014753
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push dword [esp + 0x3c]
call esi
test eax, eax
jne 0x10014753
add ebx, 0x1268
push ecx
mov edx, ebx
lea ecx, [esp + 0x34]
call fcn.1000ac10
add esp, 4
test al, al
je 0x1001459f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10014598
movzx ecx, word [esp + 0x4c]
push 4
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.webext
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov bl, 1
jmp 0x10014755
mov esi, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
lea edx, [esi + 0x1278]
call fcn.1000ac10
add esp, 4
test al, al
jne 0x10014753
push ecx
lea edx, [esi + 0x1288]
lea ecx, [esp + 0x34]
call fcn.1000ac10
add esp, 4
test al, al
jne 0x10014753
cmp dword [esp + 0x10], 0
je 0x10014753
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x30]
call fcn.10006400
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x10014641
lea eax, [ebp*2]
lea ecx, [eax + 2]
cmp dword [esp + 0x38], ecx
jae 0x10014628
push ecx
lea ecx, [esp + 0x34]
call fcn.100049c0
test eax, eax
jne 0x10014621
mov ebp, dword [esp + 0x30]
mov word [ebp], ax
jmp 0x10014645
lea eax, [ebp*2]
push eax
mov esi, ebp
xor ecx, ecx
mov ebp, dword [esp + 0x34]
push edi
push ebp
mov word [eax + ebp], cx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10014645
mov ebp, dword [esp + 0x30]
lea eax, [esi*2 + 2]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push ebp
push 1
push 0
push 0x100561ac
push dword [esp + 0x24]
call esi
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 4
push 0
push 0x100561ec
push dword [esp + 0x24]
call esi
movzx eax, word [esp + 0x4c]
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.webext
push dword [esp + 0x24]
call esi
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x126c], 0
je 0x100146e5
mov eax, dword [ebx + 4]
lea eax, [eax*2 + 4]
cmp dword [ebx + 8], eax
jae 0x100146c8
push eax
mov ecx, ebx
call fcn.100049c0
test eax, eax
je 0x100146e5
mov ecx, dword [ebx + 4]
mov edx, 0x7c
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
inc ecx
xor edx, edx
mov dword [ebx + 4], ecx
mov word [eax + ecx*2], dx
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x24]
add eax, esi
lea eax, [eax*2 + 2]
cmp dword [ebx + 8], eax
jae 0x10014706
push eax
mov ecx, ebx
call fcn.100049c0
test eax, eax
je 0x10014728
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
lea edx, [eax + ecx*2]
lea eax, [ecx + esi]
xor ecx, ecx
mov dword [ebx + 4], eax
lea eax, [esi + esi]
push eax
push edi
push edx
mov word [eax + edx], cx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x18]
push 1
call fcn.10013f10
mov esi, dword [sym.imp.msvcrt.dll_free]
mov bl, 1
cmp ebp, 0x1005bdb0
je 0x1001475b
lea eax, [ebp - 4]
push eax
call esi
add esp, 4
jmp 0x1001475b
mov edi, 0x1005bdb0
xor bl, bl
mov esi, dword [sym.imp.msvcrt.dll_free]
cmp edi, 0x1005bdb0
je 0x1001476c
lea eax, [edi - 4]
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1001477d
push eax
call esi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10014788
push ecx
call esi
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x34
ret 8