Function at 0x418840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5c91
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x74], 0
call fcn.00417940
test al, al
jne 0x4188ce
mov esi, dword [0x520340]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x63]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
push eax
call fcn.004a7190
add esp, 8
push 0
lea ecx, [ebp - 0xa0]
call fcn.00442860
push str.success
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.00442820
lea eax, [ebp - 0x84]
push eax
push 0x4d968c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0
call fcn.00442a70
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x88], esi
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 2
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x60], ebx
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 3
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x6c], edi
mov ecx, dword [ebp - 0x5c]
push str.hive
mov byte [ebp - 4], 5
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x70]
push eax
call fcn.0044ee90
add esp, 0x1c
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 6
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], ecx
cmp eax, ecx
je 0x4189fc
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x4189e7
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4189e7
push dword [ebp - 0x50]
call fcn.00404840
add esp, 4
mov dword [ebp - 0x50], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4189dc
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
lea esi, [eax + 0x10]
mov dword [ebp - 0x88], esi
jmp 0x4189fc
push dword [edx - 0xc]
lea ecx, [ebp - 0x88]
push edx
call fcn.00409950
mov esi, dword [ebp - 0x88]
mov edx, dword [ebp - 0x70]
add edx, 0xfffffff0
or ecx, 0xffffffff
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418a1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
push ecx
mov ecx, dword [esi]
mov dword [ebp - 0x58], esp
mov eax, dword [ecx]
mov dword [ebp - 0x70], esi
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x418a48
cmp ecx, dword [esi]
jne 0x418a48
mov eax, 1
lock xadd dword [edx], eax
jmp 0x418a8b
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x50], edx
test edx, edx
jne 0x418a5f
call fcn.0040c2e0
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004a7195
mov esi, dword [ebp - 0x50]
add esp, 0x10
mov ecx, dword [ebp - 0x58]
lea eax, [esi + 0x10]
mov dword [ecx], eax
call fcn.004155d0
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x418ba7
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x5c]
push str.readReg_hive_error_
push eax
call fcn.0040b800
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 7
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 8
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00442d00
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 8
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x418b24
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b64
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b81
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x70]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x419575
mov ecx, dword [ebp - 0x5c]
push 0x4d9ab8
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x54]
push eax
call fcn.0044ee90
add esp, 0x1c
mov edx, dword [eax]
lea ecx, [ebx - 0x10]
lea esi, [edx - 0x10]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x58], ecx
cmp esi, ecx
je 0x418c2c
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
jl 0x418c1d
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x418c1d
push esi
call fcn.00404840
or esi, 0xffffffff
add esp, 4
mov dword [ebp - 0x68], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x418c15
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x68]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x60], ebx
jmp 0x418c2f
push dword [edx - 0xc]
lea ecx, [ebp - 0x60]
push edx
call fcn.00409950
mov ebx, dword [ebp - 0x60]
or esi, 0xffffffff
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418c4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5c]
push 0x4d9abc
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x58]
push eax
call fcn.0044ee90
add esp, 0x1c
mov edx, dword [eax]
lea ecx, [edi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x68], ecx
cmp eax, ecx
je 0x418cd6
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x418cc7
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x418cc7
push dword [ebp - 0x54]
call fcn.00404840
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, esi
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x418cbf
mov edx, dword [ebp - 0x68]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
lea edi, [eax + 0x10]
mov dword [ebp - 0x6c], edi
jmp 0x418cd6
push dword [edx - 0xc]
lea ecx, [ebp - 0x6c]
push edx
call fcn.00409950
mov edi, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418cf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5c]
xor eax, eax
push 0x4d9ac4
mov dword [ebp - 0x58], eax
call fcn.00443e00
test al, al
je 0x418d25
mov ecx, dword [ebp - 0x5c]
push 0x4d9ac4
call fcn.00442de0
mov ecx, eax
call fcn.004434b0
mov dword [ebp - 0x58], eax
jmp 0x418d27
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
cmp eax, 0x20
je 0x418d48
test eax, eax
je 0x418d48
cmp eax, 0x40
jne 0x418d54
mov ecx, 0x20119
mov dword [ebp - 0x5c], 0x20219
jmp 0x418d54
mov ecx, 0x20219
mov dword [ebp - 0x5c], 0x20119
lea eax, [ebp - 0x74]
push eax
push ecx
push 0
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
cmp ecx, 2
jne 0x418d88
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x418d90
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x5c]
push 0
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
je 0x418eb9
push ecx
lea eax, [ebp - 0x54]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x50]
push 0x4d9ac8
push eax
mov byte [ebp - 4], 0xc
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418dd3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xf
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x10
call fcn.00442d00
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xf
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x418e35
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418e55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418e72
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418e8f
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x70]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x419575
lea eax, [ebp - 0x64]
push eax
push 0
lea eax, [ebp - 0x8c]
push eax
push 0
push edi
push dword [ebp - 0x74]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x64], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x419014
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x50]
push str.readReg_RegQueryValueEx_gen_
push eax
mov byte [ebp - 4], 0x11
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418f2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x14
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x15
call fcn.00442d00
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x14
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x418f90
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418fb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418fcd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418fea
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x70]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x419575
mov eax, dword [ebp - 0x8c]
cmp eax, 4
jne 0x41929f
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push edi
push dword [ebp - 0x74]
mov dword [ebp - 0x58], 0
call eax
test eax, eax
je 0x41917a
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x50]
push str.readReg_RegQueryValueEx_dword_
push eax
mov byte [ebp - 4], 0x16
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x18
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419094
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x19
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x1a
call fcn.00442d00
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x19
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x4190f6
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419116
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419133
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419150
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x70]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x419575
push dword [ebp - 0x58]
lea ecx, [ebp - 0x84]
call fcn.004427c0
push 0x4d9b70
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x1b
call fcn.00442d00
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.00442a70
mov edx, dword [0x520340]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xf
idiv ecx
cmp edx, 2
jne 0x41923c
mov eax, dword [0x520340]
cdq
lea esi, [ecx + 0x20]
xor ecx, ecx
sub eax, edx
sar eax, 1
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x58], eax
lea ecx, [ecx]
test eax, eax
jle 0x419231
mov eax, dword [0x520340]
cdq
and edx, 3
lea ecx, [edx + eax]
mov eax, dword [ebp - 0x58]
sar ecx, 2
mov dword [ebp - 0x54], ecx
xor edx, edx
mov dword [ebp - 0x50], eax
mov edi, edi
test ecx, ecx
jle 0x419222
mov eax, edx
add esi, eax
dec eax
dec ecx
jne 0x419216
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
add edx, dword [ebp - 0x6c]
dec eax
mov dword [ebp - 0x50], eax
jne 0x419210
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x58]
inc ecx
mov dword [ebp - 0x6c], ecx
cmp ecx, esi
jl 0x4191f0
or esi, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 3
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41925c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419279
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x70]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419575
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x419575
cmp eax, 1
jne 0x41923c
mov eax, dword [ebp - 0x64]
inc eax
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
mov ecx, dword [ebp - 0x64]
add esp, 4
add ecx, ecx
push ecx
push 0
push eax
mov dword [ebp - 0x5c], eax
call fcn.004a7560
mov eax, dword [ebp - 0x64]
add esp, 0xc
add eax, eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push edi
push dword [ebp - 0x74]
call eax
test eax, eax
jne 0x4193ae
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
xor edx, edx
mov word [ecx + eax*2], dx
push ecx
lea ecx, [ebp - 0x50]
call fcn.00401ff0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x1c
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x1d
call fcn.00442780
push 0x4d9b70
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x1e
call fcn.00442d00
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x1d
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x41937e
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41939e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x5c]
call fcn.004a7190
add esp, 4
jmp 0x41923c
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x50]
push str.readReg_RegQueryValueEx_str_
push eax
mov byte [ebp - 4], 0x1f
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x21
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4193f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x22
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x23
call fcn.00442d00
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x22
call fcn.00442a70
cmp dword [ebp - 0x18], 0x10
jb 0x419453
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419473
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419490
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4194ad
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x70]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x419575
mov eax, dword [ebp - 0x74]
or ebx, 0xffffffff
test eax, eax
je 0x41958d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x4c]
call fcn.004449b0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 0x28
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x29
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x2a
jb 0x4195d1
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x4195f0
xor ecx, ecx
jmp 0x419602
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x54], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4195f8
sub ecx, dword [ebp - 0x54]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x68]
push eax
call fcn.0044ee90
add esp, 0x1c
mov ecx, dword [eax]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 0x2b
cmp edx, edi
je 0x41966f
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x419660
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x419660
push edx
call fcn.00404840
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x419658
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x54]
lea esi, [eax + 0x10]
mov dword [ebp - 0x60], esi
jmp 0x41966f
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00409950
mov esi, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x2a
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41968f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], 0x29
jb 0x4196a4
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
call fcn.004179a0
test al, al
jne 0x4196c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x520340], edx
mov edi, dword [ebp - 0x90]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x4196e4
call fcn.0040c2e0
mov dword [edi + 8], eax
mov edx, dword [0x520340]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 0xe
jne 0x419718
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x28
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x419733
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x4c], 0x4d9684
jb 0x41974f
push dword [ebp - 0x48]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00444ab0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret