Function at 0x428c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e18b
mov eax, dword fs:[0]
push eax
mov eax, 0x1270
call fcn.0049ed10
mov eax, dword [0x555750]
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
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x127c], eax
mov dword [ebp - 0x1274], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x126c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1278], 0
cmp word [0x55c150], 0
mov dword [ebp - 0x1270], eax
jne 0x428df7
cmp dword [ebx + 0x2c], 8
lea eax, [ebx + 0x18]
mov dword [ebp - 0x1268], 0
mov dword [ebp - 0x1264], 0
mov dword [ebp - 0x1260], 0
jb 0x428d26
mov eax, dword [eax]
push 0x20219
push eax
push dword [ebx + 0x30]
lea ecx, [ebp - 0x1268]
call fcn.00411540
mov edi, dword [ebp - 0x1268]
test eax, eax
jne 0x428dec
lea eax, [ebp - 0x1254]
mov dword [ebp - 0x1254], 0x800
push eax
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0x1258]
push eax
push 0
push 0x51c944
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428dec
mov eax, dword [ebp - 0x1258]
cmp eax, 1
je 0x428d89
cmp eax, 2
jne 0x428dec
mov eax, dword [ebp - 0x1254]
test eax, eax
je 0x428da6
test al, 1
jne 0x428dec
shr eax, 1
cmp word [ebp + eax*2 - 0xa22], 0
je 0x428daf
jmp 0x428dec
xor eax, eax
mov word [ebp - 0xa20], ax
mov ecx, 0x55c150
lea esi, [ebp - 0xa20]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x428ddf
movzx eax, word [esi + ecx]
test ax, ax
je 0x428ddf
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x428dc1
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x428df7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x55c150
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x428e4b
mov ecx, 0x55c150
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x428e3e
movzx eax, word [esi + ecx]
test ax, ax
je 0x428e3e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x428e20
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 0x55c150
lea ecx, [ebp - 0x124c]
mov dword [ebp - 0x1250], str.pid
call fcn.0040dea0
cmp word [0x55c950], 0
mov dword [ebp - 4], 1
jne 0x428f76
cmp dword [ebx + 0x2c], 8
lea eax, [ebx + 0x18]
mov dword [ebp - 0x1268], 0
mov dword [ebp - 0x1264], 0
mov dword [ebp - 0x1260], 0
jb 0x428ea3
mov eax, dword [eax]
push 0x20219
push eax
push dword [ebx + 0x30]
lea ecx, [ebp - 0x1268]
call fcn.00411540
mov edi, dword [ebp - 0x1268]
test eax, eax
jne 0x428f6b
lea eax, [ebp - 0x1254]
mov dword [ebp - 0x1254], 0x800
push eax
lea eax, [ebp - 0x1220]
push eax
lea eax, [ebp - 0x1258]
push eax
push 0
push str.FROM
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428f6b
mov eax, dword [ebp - 0x1258]
cmp eax, 1
je 0x428f06
cmp eax, 2
jne 0x428f6b
mov eax, dword [ebp - 0x1254]
test eax, eax
je 0x428f23
test al, 1
jne 0x428f6b
shr eax, 1
cmp word [ebp + eax*2 - 0x1222], 0
je 0x428f2c
jmp 0x428f6b
xor eax, eax
mov word [ebp - 0x1220], ax
mov ecx, 0x55c950
lea esi, [ebp - 0x1220]
mov edx, 0x3ff
sub esi, ecx
nop
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x428f5e
movzx eax, word [esi + ecx]
test ax, ax
je 0x428f5e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x428f40
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x428f76
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x55c950
lea ecx, [ebp - 0x1244]
mov dword [ebp - 0x1248], str.from
call fcn.0040dea0
cmp word [0x55d150], 0
mov byte [ebp - 4], 2
jne 0x428fad
push 0x400
push 0x55d150
call fcn.004b8370
push 0x55d150
lea ecx, [ebp - 0x123c]
mov dword [ebp - 0x1240], str.mid
call fcn.0040dea0
cmp word [0x55d950], 0
mov byte [ebp - 4], 3
jne 0x428fe4
push 0x3ff
push 0x55d950
call fcn.004b90b0
push 0x55d950
lea ecx, [ebp - 0x1234]
mov dword [ebp - 0x1238], str.mid2
call fcn.0040dea0
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004281b0
push eax
lea ecx, [ebp - 0x122c]
mov dword [ebp - 0x1230], str.appver
call fcn.0040dea0
xor eax, eax
mov byte [ebp - 4], 5
or edi, 0xffffffff
cmp ax, word [0x55e950]
jne 0x429151
push 0x210
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004e27f0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x108
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00428450
mov ecx, eax
test ecx, ecx
je 0x42926a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1258], eax
mov byte [ebp - 4], 6
call fcn.00428450
mov ecx, eax
test ecx, ecx
je 0x429274
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1254], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x1254]
call fcn.00404e00
test al, al
jne 0x4290e4
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4290c2
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1254]
call fcn.0040ddc0
lea eax, [ebp - 0x1258]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x1254]
push eax
call fcn.00428500
mov edx, dword [ebp - 0x1254]
add esp, 8
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42911f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1258]
push 0x3ff
push esi
push 0x55e950
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x429151
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x55e950
lea ecx, [ebp - 0x1224]
mov dword [ebp - 0x1228], str.modver
call fcn.0040dea0
push dword [ebp - 0x126c]
lea ecx, [ebp - 0x125c]
mov dword [ebp - 4], 9
call fcn.0040dea0
mov byte [ebp - 4], 0xa
xor esi, esi
nop dword [eax]
push dword [ebp + esi*8 - 0x124c]
lea ecx, [ebp - 0x125c]
push dword [ebp + esi*8 - 0x1250]
call fcn.004274b0
inc esi
cmp esi, 6
jb 0x429190
mov eax, dword [ebp - 0x1270]
test eax, eax
je 0x4291ca
push eax
push str.app
lea ecx, [ebp - 0x125c]
call fcn.004274b0
mov ebx, dword [ebp - 0x1274]
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, dword [ebp - 0x125c]
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4291f0
sub edx, esi
mov ecx, ebx
sar edx, 1
push edx
push eax
call fcn.0040af60
mov edx, dword [ebp - 0x125c]
mov dword [ebp - 0x1278], 1
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x429231
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x428080
push 6
push 8
lea eax, [ebp - 0x1250]
mov byte [ebp - 4], 0
push eax
call fcn.0049e8dc
mov eax, ebx
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.0049ec90
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00404de0
push 0x80004005
call fcn.00404de0
int3