Function at 0x1021140
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x1039004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, edx
lea edx, [ebp - 0xa2c]
push edx
mov dword [ebp - 0xa20], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xa1c], ecx
xor ebx, ebx
push ebx
lea ecx, [edi + 0x64]
push ecx
mov dword [ebp - 0xa28], edi
mov dword [ebp - 0xa2c], 0x105
call sub.instapi.dll_GetInstRegPathByID
test eax, eax
je 0x10211c5
lea esi, [edi + 0x4d8]
push esi
push 0x20019
push ebx
lea edx, [ebp - 0x218]
push edx
push reloc.WS2_32.dll_bind
mov word [ebp - 0x10], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10211da
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029f27
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x4d4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x4d4]
mov ecx, dword [esi]
push 1
push eax
push 4
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
je 0x1021222
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xa4c]
push ecx
push 4
push 0xc04e0006
mov dword [ebp - 0xa4c], eax
call fcn.010240e0
jmp 0x10211c5
mov esi, dword [esi]
lea edx, [ebp - 0xa18]
test edx, edx
mov dword [ebp - 0xa2c], 0x800
je 0x1021242
mov dword [ebp - 0xa2c], 0x7fc
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [ebp - 0xa18]
push ecx
lea edx, [ebp - 0xa24]
push edx
push ebx
push 0x101a880
push esi
mov dword [ebp - 0xa24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x1021279
cmp eax, 0xea
jne 0x10212fe
cmp dword [ebp - 0xa24], 7
je 0x10212cc
push 0x70c
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
add eax, eax
xor eax, dword [edi + 0xcc]
and eax, 2
xor dword [edi + 0xcc], eax
test byte [edi + 0xcc], 2
jne 0x10217f1
cmp word [ebp - 0xa18], 0
lea ebx, [ebp - 0xa18]
mov dword [ebp - 0xa24], ebx
je 0x10217f1
jmp 0x102131c
cmp eax, ebx
mov ecx, dword [ebp - 0xa2c]
jne 0x10212e2
mov edx, ecx
shr edx, 1
mov word [ebp + edx*2 - 0xa18], bx
add ecx, 2
cmp eax, ebx
jne 0x10212f5
mov edx, ecx
shr edx, 1
mov word [ebp + edx*2 - 0xa18], bx
add ecx, 2
mov dword [ebp - 0xa2c], ecx
cmp eax, ebx
jne 0x102128d
cmp word [ebp - 0xa18], bx
je 0x102128d
xor eax, eax
jmp 0x1021292
mov ebx, dword [ebp - 0xa24]
mov edi, dword [ebp - 0xa28]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1021321
sub eax, edx
sar eax, 1
push ebx
mov dword [ebp - 0xa48], eax
call dword [sym.imp.MSVCR80.dll__wcslwr]
mov esi, dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 4
push 0x101a894
push ebx
call esi
add esp, 8
test eax, eax
jne 0x1021743
push 0x101a8a8
push ebx
call esi
add esp, 8
test eax, eax
jne 0x1021743
push 0x101a8bc
push ebx
call esi
add esp, 8
test eax, eax
jne 0x1021652
push 0x101a8d0
push ebx
call esi
add esp, 8
test eax, eax
jne 0x1021652
push 0x101a920
push ebx
call esi
add esp, 8
test eax, eax
jne 0x102160d
push 0x101a934
push ebx
call esi
add esp, 8
test eax, eax
jne 0x102160d
push 0x101a948
push ebx
call esi
add esp, 8
test eax, eax
jne 0x102156d
push 0x101a95c
push ebx
call esi
add esp, 8
test eax, eax
jne 0x102156d
push 0x101a988
push ebx
call esi
add esp, 8
test eax, eax
jne 0x10214c2
push 0x101a99c
push ebx
call esi
add esp, 8
test eax, eax
jne 0x10214c2
push 0x101a9b4
push ebx
call esi
add esp, 8
test eax, eax
jne 0x1021469
push 0x101a9c8
push ebx
call esi
add esp, 8
test eax, eax
jne 0x1021469
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x103a4fc], 2
je 0x102145b
mov ecx, dword [0x103b300]
test ecx, ecx
je 0x102145b
mov edx, dword [0x103b300]
mov eax, dword [0x103b108]
push ebx
push edx
push 0x151c00
push eax
call fcn.01024ec0
add esp, 0x10
mov ecx, edi
mov eax, ebx
call fcn.0101f4f0
jmp 0x10217d5
push 0x2c
push ebx
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
je 0x10217d5
mov ecx, dword [ebp - 0xa20]
mov edx, dword [ecx]
add eax, 2
push eax
mov eax, dword [ebp - 0xa1c]
mov esi, dword [eax]
push 0x101a9dc
push edx
lea edi, [ebp - 0xa38]
mov dword [ebp - 0xa38], 0
call fcn.01023c90
add esp, 0xc
test eax, eax
je 0x10211c5
mov esi, dword [ebp - 0xa38]
jmp 0x10217a1
push 0x2c
push ebx
call dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
je 0x10217d5
add esi, 2
push 0x40
push esi
mov dword [ebp - 0xa34], 0
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x102151c
mov eax, dword [ebp - 0xa20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xa1c]
push esi
mov esi, dword [edx]
push 0x101a730
push ecx
lea edi, [ebp - 0xa34]
call fcn.01023c90
add esp, 0xc
jmp 0x102154d
push 0x101a9b0
push esi
call dword [sym.imp.MSVCR80.dll_wcstok]
mov edx, dword [ebp - 0xa1c]
mov esi, dword [edx]
push eax
mov eax, dword [ebp - 0xa20]
mov ecx, dword [eax]
push 0x101a730
push ecx
lea edi, [ebp - 0xa34]
call fcn.01023c90
add esp, 0x14
test eax, eax
je 0x10211c5
mov eax, dword [ebp - 0xa1c]
mov ecx, dword [eax]
mov esi, dword [ebp - 0xa34]
sub ecx, dword [ebp + 8]
push esi
push ecx
jmp 0x10217ae
push 0x2c
push ebx
call dword [sym.imp.MSVCR80.dll_wcschr]
mov edi, eax
add esp, 8
test edi, edi
je 0x10217d5
add edi, 2
push 0x101a970
push edi
call esi
add esp, 8
test eax, eax
jne 0x10217d5
push 0x2c
push edi
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
je 0x10217d5
push 0xa
add eax, 2
push 0
push eax
mov dword [ebp - 0xa44], 0
call dword [sym.imp.MSVCR80.dll_wcstoul]
mov edx, dword [ebp - 0xa20]
mov ecx, dword [ebp - 0xa1c]
mov esi, dword [ecx]
add esp, 0xc
push eax
mov eax, dword [edx]
push 0x101a978
push eax
lea edi, [ebp - 0xa44]
call fcn.01023c90
add esp, 0xc
test eax, eax
je 0x10217d5
mov edx, dword [ebp - 0xa1c]
mov eax, dword [edx]
mov esi, dword [ebp - 0xa44]
sub eax, dword [ebp + 8]
push esi
push eax
jmp 0x10217ae
mov ecx, dword [ebp - 0xa20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xa1c]
mov esi, dword [eax]
add edi, 0x42
push edi
push 0x101a610
push edx
lea edi, [ebp - 0xa40]
mov dword [ebp - 0xa40], 0
call fcn.01023c90
add esp, 0xc
test eax, eax
je 0x10211c5
mov esi, dword [ebp - 0xa40]
jmp 0x10217a1
push 0x2c
push ebx
call dword [sym.imp.MSVCR80.dll_wcschr]
mov edi, eax
add esp, 8
test edi, edi
je 0x10217d5
add edi, 2
push 0x101a5a4
push edi
mov dword [ebp - 0xa30], 0
call esi
add esp, 8
test eax, eax
je 0x10216d3
mov esi, dword [sym.imp.MSVCR80.dll_wcstok]
push 0x101a5a4
push edi
call esi
push 0x101a8e4
push 0
call esi
add esp, 0x10
test eax, eax
je 0x1021700
mov ecx, dword [ebp - 0xa20]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0xa28]
add eax, 0x42
push eax
mov eax, dword [ebp - 0xa1c]
mov esi, dword [eax]
push 0x101a8e8
push edx
lea edi, [ebp - 0xa30]
call fcn.01023c90
add esp, 0x10
jmp 0x10216f8
mov ecx, dword [ebp - 0xa20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xa1c]
mov esi, dword [eax]
push edi
push 0x101a910
push edx
lea edi, [ebp - 0xa30]
call fcn.01023c90
add esp, 0xc
test eax, eax
je 0x10211c5
mov edx, dword [ebp - 0xa1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xa30]
sub eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xa28]
push ecx
push eax
xor ecx, ecx
call fcn.0101fac0
test eax, eax
je 0x10217cf
mov ecx, dword [ebp - 0xa1c]
mov eax, dword [ebp - 0xa30]
add dword [ecx], eax
mov ecx, dword [ebp - 0xa20]
sub dword [ecx], eax
jmp 0x10217cf
push 0x2c
push ebx
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
je 0x10217d5
push 0xa
add eax, 2
push 0
push eax
mov dword [ebp - 0xa3c], 0
call dword [sym.imp.MSVCR80.dll_wcstoul]
mov ecx, dword [ebp - 0xa20]
mov edx, dword [ecx]
add esp, 0xc
push eax
mov eax, dword [ebp - 0xa1c]
mov esi, dword [eax]
push 0x101a4bc
push edx
lea edi, [ebp - 0xa3c]
call fcn.01023c90
add esp, 0xc
test eax, eax
je 0x10217d5
mov esi, dword [ebp - 0xa3c]
mov ecx, dword [ebp - 0xa1c]
mov edx, dword [ecx]
sub edx, dword [ebp + 8]
push esi
push edx
mov ebx, dword [ebp - 0xa28]
xor ecx, ecx
call fcn.0101fac0
test eax, eax
je 0x10217cf
mov eax, dword [ebp - 0xa1c]
add dword [eax], esi
mov eax, dword [ebp - 0xa20]
sub dword [eax], esi
mov ebx, dword [ebp - 0xa24]
mov eax, dword [ebp - 0xa48]
cmp word [ebx + eax*2 + 2], 0
lea ebx, [ebx + eax*2 + 2]
mov dword [ebp - 0xa24], ebx
jne 0x1021310
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.01029f27
mov esp, ebp
pop ebp
ret 8