Function at 0x403bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412069
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14c], edx
mov ebx, ecx
mov dword [ebp - 0x130], ebx
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x15c]
push eax
call esi
lea eax, [ebp - 0x144]
mov dword [ebp - 4], edi
push eax
call esi
lea eax, [ebp - 0x19c]
push eax
call esi
lea eax, [ebp - 0x18c]
push eax
call esi
lea eax, [ebp - 0x17c]
push eax
call esi
lea eax, [ebp - 0x16c]
push eax
call esi
mov byte [ebp - 4], 5
lea edx, [ebp - 0x128]
mov eax, dword [ebx]
push edx
mov dword [ebp - 0x128], edi
push 0x4132f0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x404215
push str.macType
mov byte [ebp - 4], 6
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov ecx, 0x8007000e
xor eax, eax
mov dword [ebp - 0x134], esi
test esi, esi
cmove eax, ecx
mov dword [ebp - 0x12c], eax
je 0x403ce3
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x15c]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov byte [ebp - 4], 5
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x128], 0
test esi, esi
je 0x403d0a
push esi
call ebx
cmp dword [ebp - 0x12c], 0
jl 0x404215
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x128], 0
push 0x4132f0
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x404215
push str.macCreator
mov byte [ebp - 4], 7
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov ecx, 0x8007000e
xor eax, eax
mov dword [ebp - 0x134], esi
test esi, esi
cmove eax, ecx
mov dword [ebp - 0x12c], eax
je 0x403d8a
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x144]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [ebp - 0x128], 0
mov byte [ebp - 4], 5
test esi, esi
je 0x403dab
push esi
call ebx
cmp dword [ebp - 0x12c], 0
jl 0x404215
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x128], 0
push 0x4132f0
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x404215
push str.extension
mov byte [ebp - 4], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov ecx, 0x8007000e
xor eax, eax
mov dword [ebp - 0x134], esi
test esi, esi
cmove eax, ecx
mov dword [ebp - 0x12c], eax
je 0x403e2b
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x19c]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [ebp - 0x128], 0
mov byte [ebp - 4], 5
test esi, esi
je 0x403e4c
push esi
call ebx
cmp dword [ebp - 0x12c], 0
jl 0x404215
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x128], 0
push 0x4132f0
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x404215
push 0x418330
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov ecx, 0x8007000e
xor eax, eax
mov dword [ebp - 0x134], esi
test esi, esi
cmove eax, ecx
mov dword [ebp - 0x12c], eax
je 0x403ecc
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x18c]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [ebp - 0x128], 0
mov byte [ebp - 4], 5
test esi, esi
je 0x403eed
push esi
call ebx
cmp dword [ebp - 0x12c], 0
jl 0x404215
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x128], 0
push 0x4132f0
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x404215
push str.assignTypeCreator
mov byte [ebp - 4], 0xa
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov ecx, 0x8007000e
xor eax, eax
mov dword [ebp - 0x134], esi
test esi, esi
cmove eax, ecx
mov dword [ebp - 0x12c], eax
je 0x403f6d
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x17c]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [ebp - 0x128], 0
mov byte [ebp - 4], 5
test esi, esi
je 0x403f8e
push esi
call ebx
cmp dword [ebp - 0x12c], 0
jl 0x404215
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x128], 0
push 0x4132f0
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x404215
push str.dontRemoveFileExtension
mov byte [ebp - 4], 0xb
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov ecx, 0x8007000e
xor eax, eax
mov dword [ebp - 0x134], esi
test esi, esi
cmove eax, ecx
mov dword [ebp - 0x12c], eax
je 0x40400e
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x16c]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [ebp - 0x128], 0
test esi, esi
je 0x40402b
push esi
call ebx
cmp dword [ebp - 0x12c], 0
jl 0x404215
cmp word [ebp - 0x19c], 8
lea eax, [ebp - 0x124]
push 0x10c
push 0
mov ebx, 0x41889c
cmove ebx, dword [ebp - 0x194]
push eax
call fcn.004064d0
add esp, 0xc
cmp word [ebp - 0x15c], 8
jne 0x4040bd
mov ecx, dword [ebp - 0x154]
call fcn.004033a0
mov ecx, dword [ebp - 0x154]
mov esi, eax
and esi, 0xff0000
call fcn.004033a0
mov ecx, dword [ebp - 0x154]
mov edi, eax
shr edi, 0x10
or edi, esi
shr edi, 8
call fcn.004033a0
mov ecx, dword [ebp - 0x154]
mov esi, eax
shl esi, 0x10
call fcn.004033a0
and eax, 0xff00
or eax, esi
shl eax, 8
or eax, edi
jmp 0x4040bf
xor eax, eax
cmp word [ebp - 0x144], 8
mov dword [ebp - 0x120], eax
jne 0x404120
mov ecx, dword [ebp - 0x13c]
call fcn.004033a0
mov ecx, dword [ebp - 0x13c]
mov esi, eax
and esi, 0xff0000
call fcn.004033a0
mov ecx, dword [ebp - 0x13c]
mov edi, eax
shr edi, 0x10
or edi, esi
shr edi, 8
call fcn.004033a0
mov ecx, dword [ebp - 0x13c]
mov esi, eax
shl esi, 0x10
call fcn.004033a0
and eax, 0xff00
or eax, esi
shl eax, 8
or eax, edi
jmp 0x404122
xor eax, eax
cmp word [ebp - 0x18c], 8
mov dword [ebp - 0x11c], eax
jne 0x404150
push str.true
push dword [ebp - 0x184]
call fcn.004088c2
add esp, 8
test eax, eax
jne 0x404150
mov eax, 1
jmp 0x404152
xor eax, eax
or dword [ebp - 0x124], eax
cmp word [ebp - 0x17c], 8
jne 0x404180
push str.true
push dword [ebp - 0x174]
call fcn.004088c2
add esp, 8
test eax, eax
jne 0x404180
mov eax, 2
jmp 0x404182
xor eax, eax
or dword [ebp - 0x124], eax
cmp word [ebp - 0x16c], 8
jne 0x4041b0
push str.true
push dword [ebp - 0x164]
call fcn.004088c2
add esp, 8
test eax, eax
jne 0x4041b0
mov eax, 4
jmp 0x4041b2
xor eax, eax
or dword [ebp - 0x124], eax
lea eax, [ebp - 0x118]
push ebx
push 0x80
push eax
call fcn.00407fa2
add esp, 0xc
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4041d0
sub ebx, ecx
sar ebx, 1
lea eax, [ebx*2 + 0xc]
push eax
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x14c]
push 3
push 0
push dword [ebp - 0x148]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x404215
movzx edi, di
or edi, 0x80070000
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x16c]
push eax
call esi
test eax, eax
jns 0x404231
xor eax, eax
mov word [ebp - 0x16c], ax
lea eax, [ebp - 0x17c]
push eax
call esi
test eax, eax
jns 0x404247
xor eax, eax
mov word [ebp - 0x17c], ax
lea eax, [ebp - 0x18c]
push eax
call esi
test eax, eax
jns 0x40425d
xor eax, eax
mov word [ebp - 0x18c], ax
lea eax, [ebp - 0x19c]
push eax
call esi
test eax, eax
jns 0x404273
xor eax, eax
mov word [ebp - 0x19c], ax
lea eax, [ebp - 0x144]
push eax
call esi
test eax, eax
jns 0x404289
xor eax, eax
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x15c]
push eax
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404f90
mov esp, ebp
pop ebp
ret