Function at 0x402170
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41ea36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push esi
push edi
call fcn.00417770
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x23c], 0
call fcn.00417770
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
push str.SDD_ERR_LOG
mov dword [esp + 0x20], eax
call fcn.00408345
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.CLSID44EC053A_400F_11D0_9DCD_00A0C90391D3InprocServer32
push 0x80000000
mov dword [esp + 0x250], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 2
jne 0x402267
push 0x3f
push str.Warning:_Unable_to_find_ATL_Registrar___Registration_Might_Fail
mov ecx, 0x42a82c
call fcn.00401800
mov eax, dword [0x42a828]
test eax, eax
je 0x40223c
push 2
push eax
call fcn.00408384
add esp, 8
cmp eax, 0xffffffff
jne 0x40223c
mov ecx, dword [0x42a82c]
push 0
push str.Error
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402367
mov eax, dword [0x42a82c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00401420
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.00406400
jmp 0x402367
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x4280b0]
mov byte [esp + eax + 0x130], cl
inc eax
test cl, cl
jne 0x402270
lea edi, [esp + 0x130]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402290
mov ecx, 0xf
mov esi, 0x42046c
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x24], 1
call esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x14c]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea ecx, [esp + 0x30]
push ecx
push 1
push 0
push 0
push edx
call edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.ThreadingModel
push eax
call esi
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push 1
push 0
push str.ThreadingModel
push eax
call edi
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402390
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x234]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x238
ret