Function at 0x4a9d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5345dd
mov eax, dword fs:[0]
push eax
mov eax, 0x1290
call fcn.004ad380
mov eax, dword [0x57a438]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x129c], eax
mov dword [ebp - 0x1298], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1294], eax
mov dword [ebp - 0x127c], 0
mov dword [ebp - 4], 1
call fcn.00406f50
mov ecx, eax
test ecx, ecx
je 0x4aa521
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1278], eax
mov dword [ebp - 4], 2
test esi, esi
je 0x4a9e20
push esi
lea ecx, [ebp - 0x126c]
call fcn.00406cc0
lea eax, [ebp - 0x1278]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x126c]
push eax
call fcn.0040d8c0
mov edx, dword [ebp - 0x126c]
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a9e5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a9e5c
call fcn.00415710
mov ecx, eax
call fcn.004a8f60
mov edx, eax
test edx, edx
jne 0x4a9e36
xor ecx, ecx
jmp 0x4a9e4f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9e40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1278]
call fcn.00406d90
call fcn.00415710
lea ecx, [ebp - 0x1290]
push ecx
mov ecx, eax
call fcn.004a9340
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov byte [ebp - 4], 4
test eax, eax
jne 0x4a9fe6
call fcn.00415710
cmp word [0x5829e0], 0
jne 0x4a9f96
cmp dword [eax + 0x2c], 8
lea ecx, [eax + 0x18]
mov dword [ebp - 0x128c], 0
mov dword [ebp - 0x1288], 0
mov dword [ebp - 0x1284], 0
jb 0x4a9ec0
mov ecx, dword [ecx]
push 0x20219
push ecx
push dword [eax + 0x30]
lea ecx, [ebp - 0x128c]
call fcn.0041cbd0
mov edi, dword [ebp - 0x128c]
test eax, eax
jne 0x4a9f8b
lea eax, [ebp - 0x126c]
mov dword [ebp - 0x126c], 0x800
push eax
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0x1270]
push eax
push 0
push 0x54da3c
push edi
call ebx
test eax, eax
jne 0x4a9f8b
mov eax, dword [ebp - 0x1270]
cmp eax, 1
je 0x4a9f1f
cmp eax, 2
jne 0x4a9f8b
mov eax, dword [ebp - 0x126c]
test eax, eax
je 0x4a9f3c
test al, 1
jne 0x4a9f8b
shr eax, 1
cmp word [ebp + eax*2 - 0xa22], 0
je 0x4a9f45
jmp 0x4a9f8b
xor eax, eax
mov word [ebp - 0xa20], ax
mov ecx, 0x5829e0
lea esi, [ebp - 0xa20]
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4a9f7e
movzx eax, word [esi + ecx]
test ax, ax
je 0x4a9f7e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4a9f60
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x4a9f96
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5829e0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4a9fe1
mov ecx, 0x5829e0
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4a9fd4
movzx eax, word [esi + ecx]
test ax, ax
je 0x4a9fd4
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4a9fb6
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov eax, 0x5829e0
push eax
lea ecx, [ebp - 0x1264]
mov dword [ebp - 0x1268], str.pid
call fcn.00406cc0
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 5
test eax, eax
jne 0x4aa11b
call fcn.00415710
cmp word [0x5831e0], 0
jne 0x4aa116
cmp dword [eax + 0x2c], 8
lea ecx, [eax + 0x18]
mov dword [ebp - 0x128c], 0
mov dword [ebp - 0x1288], 0
mov dword [ebp - 0x1284], 0
jb 0x4aa047
mov ecx, dword [ecx]
push 0x20219
push ecx
push dword [eax + 0x30]
lea ecx, [ebp - 0x128c]
call fcn.0041cbd0
mov edi, dword [ebp - 0x128c]
test eax, eax
jne 0x4aa10b
lea eax, [ebp - 0x126c]
mov dword [ebp - 0x126c], 0x800
push eax
lea eax, [ebp - 0x1220]
push eax
lea eax, [ebp - 0x1270]
push eax
push 0
push str.FROM
push edi
call ebx
test eax, eax
jne 0x4aa10b
mov eax, dword [ebp - 0x1270]
cmp eax, 1
je 0x4aa0a6
cmp eax, 2
jne 0x4aa10b
mov eax, dword [ebp - 0x126c]
test eax, eax
je 0x4aa0c3
test al, 1
jne 0x4aa10b
shr eax, 1
cmp word [ebp + eax*2 - 0x1222], 0
je 0x4aa0cc
jmp 0x4aa10b
xor eax, eax
mov word [ebp - 0x1220], ax
mov ecx, 0x5831e0
lea esi, [ebp - 0x1220]
mov edx, 0x3ff
sub esi, ecx
nop
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4aa0fe
movzx eax, word [esi + ecx]
test ax, ax
je 0x4aa0fe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4aa0e0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x4aa116
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x5831e0
push eax
lea ecx, [ebp - 0x125c]
mov dword [ebp - 0x1260], 0x54d9b4
call fcn.00406cc0
mov byte [ebp - 4], 6
call fcn.00415710
mov ecx, eax
call fcn.004a9650
push eax
lea ecx, [ebp - 0x1254]
mov dword [ebp - 0x1258], str.mid
call fcn.00406cc0
mov byte [ebp - 4], 7
call fcn.00415710
cmp word [0x5841e0], 0
jne 0x4aa179
push 0x3ff
push 0x5841e0
call fcn.004f7510
push 0x5841e0
lea ecx, [ebp - 0x124c]
mov dword [ebp - 0x1250], 0x54d9d0
call fcn.00406cc0
lea eax, [ebp - 0x1278]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1244]
mov dword [ebp - 0x1248], 0x54d9e0
call fcn.00416d80
mov dword [ebp - 0x127c], 2
mov byte [ebp - 4], 9
call fcn.00415710
xor eax, eax
cmp ax, word [0x5851e0]
jne 0x4aa2f6
push 0x210
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004fecc0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x108
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov byte [ebp - 4], 0xa
call fcn.00406f50
mov ecx, eax
test ecx, ecx
je 0x4aa52b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1274], eax
mov byte [ebp - 4], 0xb
call fcn.00406f50
mov ecx, eax
test ecx, ecx
je 0x4aa535
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x126c], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x126c]
call fcn.00406e80
test al, al
jne 0x4aa288
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aa266
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x126c]
call fcn.00406d90
lea eax, [ebp - 0x1274]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x126c]
push eax
call fcn.0040d8c0
mov edx, dword [ebp - 0x126c]
or ebx, 0xffffffff
add esp, 8
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4aa2c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1274]
push 0x3ff
push esi
push 0x5851e0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov byte [ebp - 4], 9
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4aa2f9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4aa2f9
or ebx, 0xffffffff
push 0x5851e0
lea ecx, [ebp - 0x123c]
mov dword [ebp - 0x1240], 0x54d9f4
call fcn.00406cc0
cmp word [0x5827d8], 0
mov byte [ebp - 4], 0xe
jne 0x4aa3b2
push str.ntdll.dll
mov dword [ebp - 0x1270], 0
mov dword [ebp - 0x1274], 0
mov dword [ebp - 0x126c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4aa38f
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4aa388
lea ecx, [ebp - 0x126c]
push ecx
lea ecx, [ebp - 0x1274]
push ecx
lea ecx, [ebp - 0x1270]
push ecx
call eax
movzx eax, word [ebp - 0x126c]
mov dword [ebp - 0x126c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x1274]
push dword [ebp - 0x1270]
push 0x5611bc
push 0x208
push 0x5827d8
call fcn.004aa540
add esp, 0x14
push 0x5827d8
lea ecx, [ebp - 0x1234]
mov dword [ebp - 0x1238], 0x54da08
call fcn.00406cc0
lea eax, [ebp - 0x1290]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x122c]
mov dword [ebp - 0x1230], str.instdate
call fcn.00416d80
mov dword [ebp - 0x127c], 6
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1224]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x1228], str.app
call fcn.00406cc0
push dword [ebp - 0x1294]
lea ecx, [ebp - 0x1280]
mov byte [ebp - 4], 0x11
call fcn.00406cc0
mov byte [ebp - 4], 0x12
xor esi, esi
nop dword [eax]
push dword [ebp + esi*8 - 0x1264]
lea ecx, [ebp - 0x1280]
push dword [ebp + esi*8 - 0x1268]
call fcn.00428b00
inc esi
cmp esi, 9
jb 0x4aa430
mov edi, dword [ebp - 0x1298]
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, dword [ebp - 0x1280]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4aa473
sub edx, esi
mov ecx, edi
sar edx, 1
push edx
push eax
call fcn.0040b2e0
mov edx, dword [ebp - 0x1280]
mov eax, ebx
mov dword [ebp - 0x127c], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4aa4b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x414450
push 9
push 8
lea eax, [ebp - 0x1268]
mov byte [ebp - 4], 4
push eax
call fcn.004acc42
mov edx, dword [ebp - 0x1290]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4aa4e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1278]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4aa503
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004ac694
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407c80
push 0x80004005
call fcn.00407c80
push 0x80004005
call fcn.00407c80
int3