Function at 0x41f9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585a58
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x5ea6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x870]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x880], ebx
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x85c], edi
mov dword [ebp - 0x860], 0
call fcn.0041f6b0
add esp, 4
push eax
lea ecx, [ebp - 0x854]
mov dword [ebp - 4], 1
mov dword [ebp - 0x858], str.pid
call fcn.0041a270
mov dword [ebp - 0x860], 2
mov edx, dword [ebp - 0x870]
or esi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fa4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [0x5f40a0], 0
jne 0x41fb5f
push 0x20219
push str.SOFTWARELdsSecurity
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0
call fcn.0041f8c0
mov edi, dword [ebp - 0x87c]
test eax, eax
jne 0x41fb4e
lea eax, [ebp - 0x868]
mov dword [ebp - 0x868], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x864]
push eax
push 0
push str.FROM
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41fb4e
mov eax, dword [ebp - 0x864]
cmp eax, 1
je 0x41fae0
cmp eax, 2
jne 0x41fb4e
mov eax, dword [ebp - 0x868]
test eax, eax
je 0x41fafd
test al, 1
jne 0x41fb4e
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x41fb06
jmp 0x41fb4e
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x5f40a0
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
nop dword [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x41fb3e
movzx eax, word [esi + ecx]
test ax, ax
je 0x41fb3e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41fb20
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
or esi, 0xffffffff
mov word [eax], cx
test edi, edi
je 0x41fb59
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x85c]
call fcn.0040a770
mov ecx, eax
test ecx, ecx
je 0x41ff32
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x85c], eax
push 0x5f40a0
lea ecx, [ebp - 0x85c]
mov byte [ebp - 4], 4
call fcn.0040a080
test al, al
jne 0x41fbc0
mov ecx, 0x5f40a0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fba0
sub ecx, edx
sar ecx, 1
push ecx
push 0x5f40a0
lea ecx, [ebp - 0x85c]
call fcn.0040d340
mov dword [ebp - 0x860], 6
lea eax, [ebp - 0x85c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x84c]
mov dword [ebp - 0x850], 0x598e74
call fcn.0041a270
mov dword [ebp - 0x860], 0xe
mov edx, dword [ebp - 0x85c]
mov eax, esi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fc15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x864]
push eax
call fcn.0041f470
add esp, 4
push eax
lea ecx, [ebp - 0x844]
mov byte [ebp - 4], 8
mov dword [ebp - 0x848], str.mid
call fcn.0041a270
mov dword [ebp - 0x860], 0x1e
mov edx, dword [ebp - 0x864]
mov eax, esi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fc69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x86c]
push eax
call fcn.0041f3c0
add esp, 4
push eax
lea ecx, [ebp - 0x83c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x840], str.mid2
call fcn.0041a270
mov dword [ebp - 0x860], 0x3e
mov edx, dword [ebp - 0x86c]
mov eax, esi
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fcbd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.security
lea ecx, [ebp - 0x834]
mov dword [ebp - 0x838], str.app
call fcn.00407e70
mov byte [ebp - 4], 0xe
call fcn.0041e990
push eax
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x830], str.appver
call fcn.00407e70
mov byte [ebp - 4], 0xf
call fcn.0041f520
push eax
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x828], str.modver
call fcn.00407e70
cmp word [0x5f59a0], 0
mov byte [ebp - 4], 0x10
jne 0x41fdb7
push str.ntdll.dll
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x868], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41fd91
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41fd8a
lea ecx, [ebp - 0x868]
push ecx
lea ecx, [ebp - 0x86c]
push ecx
lea ecx, [ebp - 0x864]
push ecx
call eax
movzx eax, word [ebp - 0x868]
mov dword [ebp - 0x868], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x86c]
push dword [ebp - 0x864]
push str._u._u
push 0x208
push 0x5f59a0
call fcn.0041ff50
add esp, 0x14
or esi, 0xffffffff
call fcn.0040a770
mov ecx, eax
test ecx, ecx
je 0x41ff3c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x85c], eax
push 0x5f59a0
lea ecx, [ebp - 0x85c]
mov byte [ebp - 4], 0x11
call fcn.0040a080
test al, al
jne 0x41fe14
mov ecx, 0x5f59a0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fdf4
sub ecx, edx
sar ecx, 1
push ecx
push 0x5f59a0
lea ecx, [ebp - 0x85c]
call fcn.0040d340
mov dword [ebp - 0x860], 0x7e
lea eax, [ebp - 0x85c]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x820], str.os
call fcn.0041a270
mov dword [ebp - 0x860], 0xfe
mov edx, dword [ebp - 0x85c]
mov eax, esi
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fe69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x864]
push eax
call fcn.0041f0e0
add esp, 4
push eax
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x818], str.instdate
call fcn.0041a270
mov edx, dword [ebp - 0x864]
mov dword [ebp - 0x860], 0x1fe
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41feb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
mov ecx, ebx
mov dword [ebp - 4], 0x16
call fcn.0041a270
mov dword [ebp - 0x860], 0x1ff
xor esi, esi
nop dword [eax]
nop word [eax + eax]
push dword [ebp + esi*8 - 0x854]
mov ecx, ebx
push dword [ebp + esi*8 - 0x858]
call fcn.0040cca0
inc esi
cmp esi, 9
jb 0x41fee0
push 0x41e970
push 9
push 8
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 0
push eax
call fcn.0051274d
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512634
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409c80
push 0x80004005
call fcn.00409c80
int3