Function at 0x10013c00
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.1000a3a0
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 0x10013ede
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 0x10013c76
add edi, 4
mov dword [esp + 0x30], edi
test edi, edi
je 0x10013ede
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 0x10013ee3
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 0x10013ee3
add ebx, 0x1260
push ecx
mov edx, ebx
lea ecx, [esp + 0x34]
call fcn.1000a6a0
add esp, 4
test al, al
je 0x10013d2f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10013d28
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 0x10013ee5
mov esi, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
lea edx, [esi + 0x1270]
call fcn.1000a6a0
add esp, 4
test al, al
jne 0x10013ee3
push ecx
lea edx, [esi + 0x1280]
lea ecx, [esp + 0x34]
call fcn.1000a6a0
add esp, 4
test al, al
jne 0x10013ee3
cmp dword [esp + 0x10], 0
je 0x10013ee3
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x30]
call fcn.100062c0
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x10013dd1
lea eax, [ebp*2]
lea ecx, [eax + 2]
cmp dword [esp + 0x38], ecx
jae 0x10013db8
push ecx
lea ecx, [esp + 0x34]
call fcn.10004970
test eax, eax
jne 0x10013db1
mov ebp, dword [esp + 0x30]
mov word [ebp], ax
jmp 0x10013dd5
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 0x10013dd5
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 0x10054104
push dword [esp + 0x24]
call esi
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 4
push 0
push 0x10054144
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 + 0x1264], 0
je 0x10013e75
mov eax, dword [ebx + 4]
lea eax, [eax*2 + 4]
cmp dword [ebx + 8], eax
jae 0x10013e58
push eax
mov ecx, ebx
call fcn.10004970
test eax, eax
je 0x10013e75
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 0x10013e96
push eax
mov ecx, ebx
call fcn.10004970
test eax, eax
je 0x10013eb8
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.10013690
mov esi, dword [sym.imp.msvcrt.dll_free]
mov bl, 1
cmp ebp, 0x10059da0
je 0x10013eeb
lea eax, [ebp - 4]
push eax
call esi
add esp, 4
jmp 0x10013eeb
mov edi, 0x10059da0
xor bl, bl
mov esi, dword [sym.imp.msvcrt.dll_free]
cmp edi, 0x10059da0
je 0x10013efc
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 0x10013f0d
push eax
call esi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10013f18
push ecx
call esi
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x34
ret 8