Function at 0x521dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x65b420
push eax
mov eax, 0x1048
mov dword fs:[0], esp
call fcn.00612380
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
lea ecx, [esi + 0x90]
push 0x66eba8
call fcn.00401670
push ebx
lea ecx, [esi + 0x94]
push 0x66eba8
call fcn.00401670
push ebx
lea ecx, [esi + 0x8c]
push 0x66eba8
call fcn.00401670
mov eax, dword [esi + 4]
push eax
mov dword [esi + 0x80], ebx
mov byte [esi + 0x7c], bl
mov dword [esi + 0x84], ebx
call dword [sym.imp.USER32.dll_GetParent]
push ebx
push ebx
push 0x8000
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 4]
or dword [esi + 0x24], 0x20
push 1
push ecx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
call fcn.005bc840
push 0x17
xor edx, edx
push 0x679a64
lea ecx, [ebp - 0x3c]
mov edi, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
call fcn.00407940
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, edi
call fcn.005bc3b0
mov dword [esi + 0x6c], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 8
jb 0x521eb6
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0060faf6
add esp, 4
xor edx, edx
cmp dword [esi + 0x6c], 0x12c
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
jle 0x521f37
push 0x17
xor eax, eax
push 0x679a64
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
call fcn.00407940
mov dword [ebp - 4], 1
push 0x12c
lea ecx, [ebp - 0x3c]
push ecx
push 1
mov ecx, edi
call fcn.005bc330
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 8
jb 0x521f20
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0060faf6
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
mov dword [esi + 0x6c], 0x12c
cmp dword [esi + 0x6c], ebx
jge 0x521fa0
xor ecx, ecx
push 0x17
mov word [ebp - 0x3c], cx
push 0x679a64
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
call fcn.00407940
mov dword [ebp - 4], 2
push 0x12c
lea edx, [ebp - 0x3c]
push edx
push 1
mov ecx, edi
call fcn.005bc330
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 8
jb 0x521f8d
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], cx
mov dword [esi + 0x6c], ebx
push 0x14
xor edx, edx
push str.StaffcopCheckUpdates
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
call fcn.00407940
mov dword [ebp - 4], 3
push ebx
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, edi
call fcn.005bc3b0
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x70], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 8
jb 0x521ff5
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0060faf6
add esp, 4
mov eax, dword [esi + 4]
xor edx, edx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
cmp eax, ebx
je 0x522024
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x44]
mov eax, 4
lea ecx, [esi + 0x54]
push edx
mov word [ebp - 0x40], ax
call fcn.00459540
push 0x7fe
lea ecx, [ebp - 0x1052]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x1054], ax
call fcn.006100a0
lea edx, [ebp - 0x10]
push edx
call fcn.005bd6c0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
push str.ItemsPerPage
push ecx
call fcn.005bd460
add esp, 0x1c
test eax, eax
jne 0x522079
mov edx, dword [ebp - 0x10]
push 0x1f4
push str.ItemsPerPage
push edx
call fcn.005bd4b0
add esp, 0xc
jmp 0x52207e
cmp dword [ebp - 0x20], ebx
jne 0x522085
mov dword [ebp - 0x20], 0x1f4
mov edx, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push str.akey
push edx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x800
call edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1054]
push ecx
lea edx, [ebp - 0x1c]
push edx
push ebx
push str.akey
push eax
mov byte [ebp - 0x11], 0
call edi
test eax, eax
jne 0x5220f1
lea eax, [ebp - 0x1054]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5220e0
sub eax, edx
sar eax, 1
jne 0x522119
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x522119
push 0x400
lea edx, [ebp - 0x1054]
push edx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov byte [ebp - 0x11], 1
lea ebx, [esi + 0x74]
push 0x66f16a
mov ecx, ebx
call fcn.00405830
lea eax, [ebp - 0x1054]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x522131
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x1054]
push ecx
mov ecx, ebx
call fcn.00401710
cmp byte [ebp - 0x11], 0
je 0x522170
push 1
push 0
mov ecx, ebx
call fcn.00448080
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
push 1
dec eax
push eax
mov ecx, ebx
call fcn.00448080
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x5221ba
push 0x671558
push eax
call fcn.00612c90
add esp, 8
test eax, eax
je 0x5221ba
sub eax, dword [ebx]
sar eax, 1
js 0x5221ba
push 1
push eax
mov ecx, ebx
call fcn.00448080
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x5221ba
push 0x671558
push eax
call fcn.00612c90
add esp, 8
test eax, eax
je 0x5221ba
sub eax, dword [ebx]
sar eax, 1
jns 0x522190
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x852]
push edx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x800
mov word [ebp - 0x854], cx
call fcn.006100a0
mov edx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.PrxIP
push edx
call edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push str.PrxIP
push eax
call edi
mov ecx, dword [esi + 4]
push 0x4c2
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [ebp - 0x854]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.PrxPort
push edx
call edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push str.PrxPort
push eax
call edi
lea eax, [ebp - 0x854]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x522272
sub eax, ecx
sar eax, 1
push eax
lea ecx, [ebp - 0x854]
push ecx
lea ecx, [esi + 0x8c]
call fcn.00401670
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push str.PrxLog
push ecx
call edi
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.PrxLog
push edx
call edi
lea eax, [ebp - 0x854]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5222d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x854]
push eax
lea ecx, [esi + 0x90]
call fcn.00401670
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push str.PrxPass
push eax
call edi
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x854]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push str.PrxPass
push ecx
call edi
lea eax, [ebp - 0x854]
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x522330
sub eax, ecx
sar eax, 1
push eax
lea edx, [ebp - 0x854]
push edx
lea ecx, [esi + 0x94]
call fcn.00401670
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x80]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.PrxEnable
push edx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 4
call edi
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x84]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.PrxUseAuth
push edx
call edi
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x5223af
xor eax, eax
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 4]
push 0
push eax
push 0x479
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov edx, dword [ebx]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edx
push 0x489
push eax
call edi
push ebx
lea ecx, [esi + 0x78]
call fcn.004078d0
lea eax, [esi + 0x54]
mov dword [ebp - 0x40], esi
test eax, eax
jne 0x5223ef
mov dword [ebp - 0x40], 0
mov ebx, dword [ebx]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
push ebx
push 0x489
push eax
call edi
test eax, eax
jne 0x522436
mov edi, dword [ebp - 0x40]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add edi, 0x54
je 0x522419
lea eax, [edi - 0x54]
jmp 0x52241b
xor eax, eax
mov ecx, dword [eax + 4]
push 0x489
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x522630
lea ebx, [esi + 0x54]
test ebx, ebx
je 0x522442
add ebx, 0xffffffac
jmp 0x522444
xor ebx, ebx
mov eax, dword [esi + 0x90]
mov edx, dword [ebx + 4]
push eax
push 0x4be
push edx
call edi
test eax, eax
jne 0x522489
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add ebx, 0x54
je 0x52246c
lea eax, [ebx - 0x54]
jmp 0x52246e
xor eax, eax
mov eax, dword [eax + 4]
push 0x4be
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x522630
lea eax, [esi + 0x54]
test eax, eax
je 0x522494
mov ebx, esi
jmp 0x522496
xor ebx, ebx
mov eax, dword [esi + 0x94]
mov ecx, dword [ebx + 4]
push eax
push 0x4bf
push ecx
call edi
test eax, eax
jne 0x5224db
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add ebx, 0x54
je 0x5224be
lea eax, [ebx - 0x54]
jmp 0x5224c0
xor eax, eax
mov edx, dword [eax + 4]
push 0x4bf
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x522630
lea ebx, [esi + 0x54]
test ebx, ebx
je 0x5224e7
lea edi, [ebx - 0x54]
jmp 0x5224e9
xor edi, edi
mov eax, dword [esi + 0x6c]
push 1
push eax
mov eax, dword [edi + 4]
push 0x44e
push eax
mov dword [ebp - 0x40], 1
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x522544
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add edi, 0x54
je 0x52251e
lea eax, [edi - 0x54]
jmp 0x522520
xor eax, eax
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x44e
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x40], 0
je 0x522630
jmp 0x52254a
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0
push 4
lea eax, [esi + 0x8c]
push eax
push 0x4c3
mov ecx, ebx
call fcn.00532530
test eax, eax
je 0x522630
test ebx, ebx
je 0x522576
lea eax, [ebx - 0x54]
jmp 0x522578
xor eax, eax
mov edx, dword [eax + 4]
push 0x457
push edx
call edi
mov ecx, dword [esi + 0x70]
test ecx, ecx
js 0x52258f
cmp ecx, 2
jle 0x522596
mov dword [esi + 0x70], 0
mov ecx, dword [esi + 0x70]
push 0
push ecx
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
je 0x5225b1
lea eax, [ebx - 0x54]
jmp 0x5225b3
xor eax, eax
mov edx, dword [eax + 4]
push 0x330
push edx
call edi
mov ecx, dword [esi + 0x80]
test ecx, ecx
js 0x5225cd
cmp ecx, 2
jle 0x5225d7
mov dword [esi + 0x80], 0
mov ecx, dword [esi + 0x80]
push 0
push ecx
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
je 0x5225f5
lea eax, [ebx - 0x54]
jmp 0x5225f7
xor eax, eax
mov edx, dword [eax + 4]
push 0x4ad
push edx
call edi
mov ecx, dword [esi + 0x84]
test ecx, ecx
js 0x522611
cmp ecx, 2
jle 0x52261b
mov dword [esi + 0x84], 0
mov ecx, dword [esi + 0x84]
push 0
push ecx
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.005212d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8