Function at 0x4127f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x58d984]
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]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x59ab48]
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x42c], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x424], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5977a0]
cmp eax, dword [ecx + 0x3c]
jg 0x412b8d
mov eax, dword [0x59779c]
cmp dword [eax - 0xc], 0
jne 0x412b07
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0050ce60
add esp, 0xc
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x428]
push eax
push 0x20019
push 0
push 0x5469e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412915
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x430], 0x206
push eax
lea eax, [ebp - 0x434]
push eax
push 0
push 0x545fd0
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4128f4
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, 0x59779c
call fcn.00408420
mov eax, dword [0x59779c]
cmp dword [eax - 0xc], 0
jne 0x412b07
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0050ce60
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x412b01
mov edx, str.SoftMgr
mov ecx, esi
lea ecx, [ecx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4129a6
test ax, ax
je 0x4129a2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4129a6
add ecx, 4
add edx, 4
test ax, ax
jne 0x412980
xor eax, eax
jmp 0x4129ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4129d6
lea eax, [ebp - 0x218]
push eax
call edi
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4129c1
sub edx, esi
sar edx, 1
push edx
jmp 0x412af0
mov ecx, str.360Safe
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412a06
test dx, dx
je 0x412a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412a06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4129e0
xor eax, eax
jmp 0x412a0b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412a30
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x412a20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a20
jmp 0x412aeb
mov eax, 0x546b8c
mov cx, word [esi]
cmp cx, word [eax]
jne 0x412a5b
test cx, cx
je 0x412a57
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x412a5b
add esi, 4
add eax, 4
test cx, cx
jne 0x412a35
xor eax, eax
jmp 0x412a60
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x412a8d
call edi
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a80
jmp 0x412aeb
call edi
lea eax, [ebp - 0x218]
push eax
call ebx
mov ecx, str.360Safe
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412ac6
test dx, dx
je 0x412ac2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412ac6
add eax, 4
add ecx, 4
test dx, dx
jne 0x412aa0
xor eax, eax
jmp 0x412acb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412b01
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x412ae0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412ae0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, 0x59779c
push eax
call fcn.00408420
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x412b59
push eax
lea ecx, [ebp - 0x424]
call fcn.004036d0
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 1
push eax
push 0x59779c
push ebx
call fcn.00411070
mov esi, dword [ebp - 0x424]
add esp, 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412b6f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x412b6f
mov eax, dword [0x59779c]
add eax, 0xfffffff0
push eax
call fcn.00408090
add esp, 4
add eax, 0x10
mov dword [ebx], eax
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.004eda39
mov esp, ebp
pop ebp
ret
push 0x5977a0
call fcn.004ed945
add esp, 4
cmp dword [0x5977a0], 0xffffffff
jne 0x412856
mov dword [ebp - 4], 0
call fcn.004048c0
mov ecx, eax
test ecx, ecx
jne 0x412bc3
push 0x80004005
call fcn.00404520
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
push 0x5424a0
mov dword [0x59779c], eax
call fcn.004ed6f7
push 0x5977a0
call fcn.004ed8fb
add esp, 8
jmp 0x412856