Function at 0x459530
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 [0x62e724]
mov dword [ebp - 0x41c], ebx
push edi
mov dword [ebp - 0x41c], ebx
cmp eax, dword [ecx + 4]
jg 0x4599cf
cmp dword [0x625224], 0
je 0x459677
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 0x4595db
push 0x10
push edi
push ebx
call fcn.0058cce0
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.00539e65
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 0x4595fc
or ecx, 0xffffffff
jmp 0x459604
cmp ecx, 0x1000
jb 0x45962b
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00539e84
add esp, 4
test eax, eax
je 0x459a0a
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x45963e
test ecx, ecx
je 0x45963c
push ecx
call fcn.00539e84
add esp, 4
mov ecx, eax
jmp 0x45963e
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.0058cce0
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.00539e65
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 0x459987
push 0x400
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], 0x200
push eax
mov dword [ebp - 0x40c], 1
call fcn.0058d810
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 0x45986b
lea esi, [ebp - 0x404]
mov byte [ebp - 0x411], 1
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x459710
sub esi, ecx
mov ecx, dword [0x625228]
sar esi, 1
mov dword [ebp - 0x41c], ecx
cmp esi, ecx
ja 0x459762
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.0058d260
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x45986b
cmp esi, 0x7ffffffe
ja 0x459a05
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x459782
mov edi, SysReAllocString
jmp 0x4597a3
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x459798
mov edi, SysReAllocString
jmp 0x4597a0
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 0x4597b5
or ecx, 0xffffffff
jmp 0x4597bd
cmp ecx, 0x1000
jb 0x4597e3
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00539e84
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x459a0a
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4597f4
test ecx, ecx
je 0x4597f2
push ecx
call fcn.00539e84
add esp, 4
jmp 0x4597f4
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.0058cce0
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 0x459865
mov ecx, dword [0x625214]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45985b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459a0a
push edx
push ecx
call fcn.00539e76
add esp, 8
mov dword [0x625214], edi
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x411], 0
je 0x459987
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 0x4598e5
push 0x10
push edi
push ebx
call fcn.0058cce0
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.00539e65
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 0x45990a
or ecx, 0xffffffff
jmp 0x459912
cmp ecx, 0x1000
jb 0x45993b
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.00539e84
add esp, 4
test eax, eax
je 0x459a0a
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x45994e
test ecx, ecx
je 0x45994c
push ecx
call fcn.00539e84
add esp, 4
mov ecx, eax
jmp 0x45994e
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.0058cce0
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.00539e65
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 0x4599a4
mov esi, dword [ebx]
push 0
push 0x5fcdf8
push esi
mov dword [ebx + 0x10], eax
call fcn.0058d260
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.00539e65
mov esp, ebp
pop ebp
ret
push 0x62e724
call fcn.0053a412
add esp, 4
cmp dword [0x62e724], 0xffffffff
jne 0x45956d
push 0x5cd3a0
call fcn.0053a13c
push 0x62e724
call fcn.0053a3c8
add esp, 8
jmp 0x45956d
call fcn.00405ff9
call fcn.0059138f
int3