Function at 0x40a33e
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x40eeb6
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x24]
mov esi, 0xf003f
push eax
push esi
push ebx
push 0x412e00
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40a397
lea ecx, [ebp - 0x1c]
call fcn.0040c520
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
je 0x40a3cb
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040c520
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040c520
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040c520
jmp 0x40a498
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x412e0c
push ecx
mov dword [ebp - 0x24], ebx
call edi
cmp eax, ebx
jne 0x40a397
lea ecx, [ebp - 0x10]
call fcn.0040c520
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x40a397
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x412e18
push ecx
call edi
cmp eax, ebx
jne 0x40a397
lea ecx, [ebp - 0x18]
call fcn.0040c520
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40a397
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x412e24
push ecx
call edi
cmp eax, ebx
jne 0x40a463
lea ecx, [ebp - 0x14]
call fcn.0040c520
mov edx, dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x14], edx
je 0x40a4a2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040c520
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a48e
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a498
push dword [ebp - 0x1c]
call esi
mov eax, 0x80004005
jmp 0x40a591
mov esi, dword [ebp + 8]
push 4
pop ecx
mov edi, 0x40fad8
xor eax, eax
mov dword [ebp - 0x24], 0x80004005
repe cmpsd dword [esi], dword es:[edi]
jne 0x40a4d6
push 0x412e2c
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40a557
mov dword [ebp - 0x24], ebx
jmp 0x40a557
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jl 0x40a549
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x40a4fb
xor esi, esi
jmp 0x40a527
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040e730
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push str.TransferJobID
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a549
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x40a557
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a56a
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40a577
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x40a584
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a58e
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret