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

Disassembly:
push 0xffffffffffffffff
push 0x451c68
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4668f0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x60], 2
mov ebx, dword [esp + 0x6c]
mov ebp, 8
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0x3e8
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x80], ebp
jae 0x41f1ca
lea ebx, [esp + 0x6c]
call fcn.00407c80
test al, al
jne 0x41f275
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x6c]
mov ebx, ecx
cmp eax, ebp
jae 0x41f1ec
lea ebx, [esp + 0x6c]
cmp byte [esp + 0xbc], 0
mov esi, connect
jne 0x41f275
cmp eax, ebp
jb 0x41f208
push ecx
call fcn.00434321
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], ax
cmp dword [esp + 0x9c], ebp
jb 0x41f23a
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00434321
add esp, 4
xor edx, edx
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], edi
mov word [esp + 0x88], dx
cmp dword [esp + 0xb8], ebp
jb 0x41f26b
mov eax, dword [esp + 0xa4]
push eax
call fcn.00434321
add esp, 4
mov eax, 1
jmp 0x41f5b3
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ebp, ebp
push ebp
lea ecx, [esp + 0x18]
push ecx
push ebp
push 0x20006
push ebp
push ebp
push ebp
push ebx
push esi
call edi
test eax, eax
je 0x41f2c6
cmp dword [esp + 0x80], 8
mov ebx, dword [esp + 0x6c]
jae 0x41f2a6
lea ebx, [esp + 0x6c]
push ebp
lea edx, [esp + 0x18]
push edx
push ebp
push 0x20006
push ebp
push ebp
push ebp
push ebx
mov esi, connect
push esi
call edi
test eax, eax
jne 0x41f532
cmp dword [esp + 0xb8], 8
mov edi, dword [esp + 0xa4]
jae 0x41f2de
lea edi, [esp + 0xa4]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41f2e3
mov ecx, dword [esp + 0x88]
sub eax, edx
sar eax, 1
cmp dword [esp + 0x9c], 8
jae 0x41f30a
lea ecx, [esp + 0x88]
add eax, eax
push eax
push edi
push 1
push ebp
push ecx
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41f4b8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebp
jne 0x41f43b
lea eax, [esp + 0x14]
push eax
push 1
push ebp
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x41f415
mov eax, dword [esp + 0xb4]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432f0b
add esp, 4
cmp dword [esp + 0x9c], 8
mov esi, eax
mov eax, dword [esp + 0x88]
jae 0x41f38a
lea eax, [esp + 0x88]
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x24]
push edx
push ebp
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x41f415
mov eax, esi
lea ecx, [esp + 0x3c]
call fcn.0042bc20
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 3
call fcn.0042bc20
mov ecx, eax
mov eax, esi
mov byte [esp + 0x60], 4
call fcn.0042f9d0
lea ecx, [esp + 0x20]
mov bl, al
call fcn.0042bc90
lea ecx, [esp + 0x3c]
call fcn.0042bc90
lea ecx, [esp + 0x68]
call fcn.0042bc90
lea ecx, [esp + 0x84]
call fcn.0042bc90
lea ecx, [esp + 0xa0]
call fcn.0042bc90
test bl, bl
jne 0x41f5ae
xor eax, eax
jmp 0x41f5b3
lea ecx, [esp + 0x68]
call fcn.0042bc90
lea ecx, [esp + 0x84]
call fcn.0042bc90
lea ecx, [esp + 0xa0]
call fcn.0042bc90
jmp 0x41f5ae
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x41f456
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00434321
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], dx
cmp dword [esp + 0x9c], edi
jb 0x41f486
mov eax, dword [esp + 0x88]
push eax
call fcn.00434321
add esp, 4
xor ecx, ecx
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebp
mov word [esp + 0x88], cx
cmp dword [esp + 0xb8], edi
jb 0x41f5ae
mov edx, dword [esp + 0xa4]
push edx
jmp 0x41f5a6
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x41f4d3
mov eax, dword [esp + 0x6c]
push eax
call fcn.00434321
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], cx
cmp dword [esp + 0x9c], edi
jb 0x41f503
mov edx, dword [esp + 0x88]
push edx
call fcn.00434321
add esp, 4
xor eax, eax
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebp
mov word [esp + 0x88], ax
cmp dword [esp + 0xb8], edi
jb 0x41f5ae
mov ecx, dword [esp + 0xa4]
push ecx
jmp 0x41f5a6
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x41f54d
mov edx, dword [esp + 0x6c]
push edx
call fcn.00434321
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], ax
cmp dword [esp + 0x9c], edi
jb 0x41f57d
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00434321
add esp, 4
xor edx, edx
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebp
mov word [esp + 0x88], dx
cmp dword [esp + 0xb8], edi
jb 0x41f5ae
mov eax, dword [esp + 0xa4]
push eax
call fcn.00434321
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x58