Function at 0x459cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x625c8c
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x690a1c]
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
cmp word [0x69f810], 0
jne 0x459dd6
lea eax, [ebp - 0x824]
mov dword [ebp - 0x824], 0
push eax
push 0x20219
push 0
push str.SOFTWAREJianDesk
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x459dd6
mov edi, dword [ebp - 0x824]
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], 0x800
push eax
lea eax, [ebp - 0x82c]
push eax
push 0
push 0x632edc
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x459dcb
mov eax, dword [ebp - 0x82c]
cmp eax, 1
je 0x459d63
cmp eax, 2
jne 0x459dcb
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x459d80
test al, 1
jne 0x459dcb
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x459d89
jmp 0x459dcb
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x69f810
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
nop dword [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x459dbe
movzx eax, word [esi + ecx]
test ax, ax
je 0x459dbe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x459da0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x459dd6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x459fbd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
push 0x69f810
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0
call fcn.004090c0
test al, al
jne 0x459e36
mov ecx, 0x69f810
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459e16
sub ecx, edx
sar ecx, 1
push ecx
push 0x69f810
lea ecx, [ebp - 0x818]
call fcn.0040b220
mov dword [ebp - 4], 1
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x459fc7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], eax
mov esi, dword [ebp - 0x818]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
cmp dword [esi - 0xc], 0
jl 0x459f10
push 0x63ad10
push esi
call fcn.005e3a7a
mov edi, eax
add esp, 8
test edi, edi
je 0x459f10
sub edi, esi
sar edi, 1
test edi, edi
jle 0x459f10
cmp edi, dword [esi - 0xc]
jl 0x459ead
lea eax, [esi - 0x10]
push eax
call fcn.00407150
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x81c], edi
jmp 0x459edd
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x459ebd
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x459ec9
call fcn.00407410
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push edi
push esi
lea ecx, [ebp - 0x81c]
call fcn.00455180
mov edi, dword [ebp - 0x81c]
lea eax, [ebp - 0x81c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x820]
call fcn.0041aac0
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x459f22
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x459f22
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x820]
call fcn.0041aac0
mov eax, dword [ebp - 0x820]
mov edx, 0x63ad14
mov ecx, eax
nop
mov di, word [ecx]
cmp di, word [edx]
jne 0x459f56
test di, di
je 0x459f52
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x459f56
add ecx, 4
add edx, 4
test di, di
jne 0x459f30
xor ecx, ecx
jmp 0x459f5b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
mov byte [ebp - 4], 1
lea edx, [eax - 0x10]
mov eax, ebx
sete byte [ebp - 0x811]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459f7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x459f9b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x811]
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.004fa103
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407120
push 0x80004005
call fcn.00407120
int3