Function at 0x459620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [eax]
mov eax, dword [0x62e704]
mov dword [ebp - 0x41c], ebx
push edi
mov dword [ebp - 0x41c], ebx
cmp eax, dword [ecx + 4]
jg 0x459abf
cmp dword [0x625224], 0
je 0x459767
mov dword [ebx + 0x10], 0
mov edi, 0x625214
mov dword [ebx + 0x14], 0
cmp dword [0x625228], 8
mov eax, dword [0x625224]
cmovae edi, dword [0x625214]
mov dword [ebp - 0x418], eax
cmp eax, 8
jae 0x4596cb
push 0x10
push edi
push ebx
call fcn.0058cfa0
mov eax, dword [ebp - 0x418]
add esp, 0xc
mov esi, 7
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret
mov esi, eax
mov eax, SysReAllocString
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4596ec
or ecx, 0xffffffff
jmp 0x4596f4
cmp ecx, 0x1000
jb 0x45971b
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0053a194
add esp, 4
test eax, eax
je 0x459afa
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x45972e
test ecx, ecx
je 0x45972c
push ecx
call fcn.0053a194
add esp, 4
mov ecx, eax
jmp 0x45972e
xor ecx, ecx
mov eax, dword [ebp - 0x418]
mov dword [ebx], ecx
lea eax, [eax*2 + 2]
push eax
push edi
push ecx
call fcn.0058cfa0
mov eax, dword [ebp - 0x418]
add esp, 0xc
mov dword [ebx + 0x10], eax
mov eax, ebx
mov dword [ebx + 0x14], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x410]
mov byte [ebp - 0x411], 0
push eax
push 0x20019
push 0
push str.SoftwareXZDesktop
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x459a77
push 0x400
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], 0x200
push eax
mov dword [ebp - 0x40c], 1
call fcn.0058dad0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x40c]
push eax
push 0
push str.MerchantID
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or edx, 0xffffffff
test eax, eax
jne 0x45995b
lea esi, [ebp - 0x404]
mov byte [ebp - 0x411], 1
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x459800
sub esi, ecx
mov ecx, dword [0x625228]
sar esi, 1
mov dword [ebp - 0x41c], ecx
cmp esi, ecx
ja 0x459852
cmp ecx, 8
mov dword [0x625224], esi
mov edi, 0x625214
lea eax, [ebp - 0x404]
cmovae edi, dword [0x625214]
add esi, esi
push esi
push eax
push edi
call fcn.0058d520
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x45995b
cmp esi, 0x7ffffffe
ja 0x459af5
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x459872
mov edi, SysReAllocString
jmp 0x459893
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x459888
mov edi, SysReAllocString
jmp 0x459890
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
or edx, 0xffffffff
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4598a5
or ecx, 0xffffffff
jmp 0x4598ad
cmp ecx, 0x1000
jb 0x4598d3
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0053a194
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x459afa
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4598e4
test ecx, ecx
je 0x4598e2
push ecx
call fcn.0053a194
add esp, 4
jmp 0x4598e4
xor eax, eax
mov dword [0x625224], esi
lea ecx, [ebp - 0x404]
add esi, esi
mov dword [ebp - 0x418], eax
push esi
push ecx
push eax
mov dword [0x625228], edi
call fcn.0058cfa0
mov edi, dword [ebp - 0x418]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
mov eax, dword [ebp - 0x41c]
cmp eax, 8
jb 0x459955
mov ecx, dword [0x625214]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45994b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459afa
push edx
push ecx
call fcn.0053a186
add esp, 8
mov dword [0x625214], edi
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x411], 0
je 0x459a77
mov dword [ebx + 0x10], 0
mov edi, 0x625214
mov dword [ebx + 0x14], 0
cmp dword [0x625228], 8
mov eax, dword [0x625224]
cmovae edi, dword [0x625214]
mov dword [ebp - 0x410], eax
cmp eax, 8
jae 0x4599d5
push 0x10
push edi
push ebx
call fcn.0058cfa0
mov eax, dword [ebp - 0x410]
add esp, 0xc
mov esi, 7
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret
mov esi, eax
mov eax, SysReAllocString
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4599fa
or ecx, 0xffffffff
jmp 0x459a02
cmp ecx, 0x1000
jb 0x459a2b
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.0053a194
add esp, 4
test eax, eax
je 0x459afa
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x459a3e
test ecx, ecx
je 0x459a3c
push ecx
call fcn.0053a194
add esp, 4
mov ecx, eax
jmp 0x459a3e
xor ecx, ecx
mov eax, dword [ebp - 0x410]
mov dword [ebx], ecx
lea eax, [eax*2 + 2]
push eax
push edi
push ecx
call fcn.0058cfa0
mov eax, dword [ebp - 0x410]
add esp, 0xc
mov dword [ebx + 0x10], eax
mov eax, ebx
mov dword [ebx + 0x14], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov esi, ebx
mov word [ebx], ax
cmp dword [ebx + 0x14], 8
jb 0x459a94
mov esi, dword [ebx]
push 0
push 0x5fcef8
push esi
mov dword [ebx + 0x10], eax
call fcn.0058d520
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
xor ecx, ebp
mov word [esi], ax
mov eax, ebx
pop edi
pop esi
pop ebx
call fcn.0053a175
mov esp, ebp
pop ebp
ret
push 0x62e704
call fcn.0053a71f
add esp, 4
cmp dword [0x62e704], 0xffffffff
jne 0x45965d
push 0x5cd6e0
call fcn.0053a449
push 0x62e704
call fcn.0053a6d5
add esp, 8
jmp 0x45965d
call fcn.00405ff9
call fcn.0059164f
int3