Function at 0x4595c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6219dc
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x68d9ac]
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 [0x69c480], 0
jne 0x4596e6
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 0x4596e6
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 0x62eedc
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4596db
mov eax, dword [ebp - 0x82c]
cmp eax, 1
je 0x459673
cmp eax, 2
jne 0x4596db
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x459690
test al, 1
jne 0x4596db
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x459699
jmp 0x4596db
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x69c480
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
nop dword [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4596ce
movzx eax, word [esi + ecx]
test ax, ax
je 0x4596ce
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4596b0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x4596e6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x4598cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
push 0x69c480
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0
call fcn.00408fd0
test al, al
jne 0x459746
mov ecx, 0x69c480
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459726
sub ecx, edx
sar ecx, 1
push ecx
push 0x69c480
lea ecx, [ebp - 0x818]
call fcn.0040b130
mov dword [ebp - 4], 1
call fcn.00407320
mov ecx, eax
test ecx, ecx
je 0x4598d7
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 0x459820
push 0x636c20
push esi
call fcn.005e339a
mov edi, eax
add esp, 8
test edi, edi
je 0x459820
sub edi, esi
sar edi, 1
test edi, edi
jle 0x459820
cmp edi, dword [esi - 0xc]
jl 0x4597bd
lea eax, [esi - 0x10]
push eax
call fcn.00407060
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x81c], edi
jmp 0x4597ed
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x4597cd
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4597d9
call fcn.00407320
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push edi
push esi
lea ecx, [ebp - 0x81c]
call fcn.00454a90
mov edi, dword [ebp - 0x81c]
lea eax, [ebp - 0x81c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x820]
call fcn.0041aa00
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x459832
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x459832
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x820]
call fcn.0041aa00
mov eax, dword [ebp - 0x820]
mov edx, 0x636c24
mov ecx, eax
nop
mov di, word [ecx]
cmp di, word [edx]
jne 0x459866
test di, di
je 0x459862
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x459866
add ecx, 4
add edx, 4
test di, di
jne 0x459840
xor ecx, ecx
jmp 0x45986b
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 0x45988f
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 0x4598ab
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.004f9a43
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407030
push 0x80004005
call fcn.00407030
int3