Function at 0x10038d86
Capabilities:
Set registry value

Disassembly:
sub esp, 0x358
mov eax, dword [0x1024bd20]
xor eax, esp
mov dword [esp + 0x354], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 8]
push ebp
push esi
push edi
push eax
mov ebp, 0xf013f
xor edi, edi
push ebp
push edi
push 0x101d7538
push connect
mov dword [esp + 0x2c], edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [esp + 0x14], edi
jne 0x10038df6
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push edi
push edi
push edi
push str.DAEMON.Tools.Pro
push connect
call esi
cmp dword [esp + 0x14], edi
jne 0x10038df6
xor al, al
jmp 0x10039004
cmp dword [esp + 0x18], 1
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10038ffc
xor eax, eax
push 0xfe
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push edi
push eax
call fcn.10179250
push 0x1025be68
lea eax, [esp + 0x2c]
push 0x80
push eax
call fcn.1017c1f6
lea ecx, [esp + 0x34]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10038e3c
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x20]
push eax
push 1
push edi
push 0x101d7580
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push 0xf013f
push edi
push 0x101d7584
push dword [esp + 0x24]
call ebx
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x10038ea8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push str.DefaultIcon
push dword [esp + 0x34]
call esi
mov edi, dword [esp + 0x10]
xor eax, eax
push 0x246
push eax
mov word [esp + 0x124], ax
lea eax, [esp + 0x126]
push eax
call fcn.10179250
add esp, 0xc
test edi, edi
je 0x10038f3e
push 0x1025c070
lea eax, [esp + 0x120]
push 0x124
push eax
call fcn.1017c1f6
push str.DTPro.exe_0
lea eax, [esp + 0x12c]
push 0x124
push eax
call fcn.1017c18a
lea ecx, [esp + 0x134]
add esp, 0x18
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10038f09
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x120]
push eax
push 1
push edi
push 0x101d75cc
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call ebp
jmp 0x10038f40
xor edi, edi
lea eax, [esp + 0x10]
push eax
push 0xf013f
push edi
push 0x101d75d0
push dword [esp + 0x24]
call ebx
cmp dword [esp + 0x10], 0
jne 0x10038f7e
push edi
lea eax, [esp + 0x14]
push eax
push edi
push 0xf013f
push edi
push edi
push edi
push str.shellopencommand
push dword [esp + 0x34]
call esi
cmp dword [esp + 0x10], 0
je 0x10038ffc
push 0x101d7620
mov ebx, 0x124
lea eax, [esp + 0x120]
push ebx
push eax
call fcn.1017c1f6
push 0x1025c070
lea eax, [esp + 0x12c]
push ebx
push eax
call fcn.1017c18a
push 0x101d7624
lea eax, [esp + 0x138]
push ebx
push eax
call fcn.1017c18a
lea ecx, [esp + 0x140]
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10038fc9
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x120]
push eax
push 1
push edi
push 0x101d7660
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call ebp
push dword [esp + 0x14]
call ebp
mov al, 1
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1017868e
add esp, 0x358
ret