Function at 0x4227b0
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43842e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
lea eax, [esp + 0xc]
push edi
push eax
xor edi, edi
push 0x4421bc
mov ebx, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x422be1
mov edx, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push edi
push edi
push edi
push 0x44219c
push edx
mov dword [esp + 0x3c], 0x44219c
mov dword [esp + 0x2c], edi
call esi
cmp eax, 2
jne 0x42284a
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push edi
push edi
push edi
push 0x442180
push ecx
mov dword [esp + 0x3c], 0x442180
call esi
cmp eax, edi
je 0x422855
cmp eax, 2
jne 0x422bd4
jmp 0x422855
cmp eax, 0x5aa
jne 0x422bd4
mov edx, dword [esp + 0x14]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x20], ebp
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x28]
call fcn.0042a402
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov dword [esp + 0xc0], 0
push eax
push ebp
push 0
push 0
push ecx
push edx
call esi
cmp eax, 2
je 0x422bb7
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ebp
mov dword [esp + 0x10], 1
call edi
mov dword [esp + 0x1c], eax
call edi
sub eax, dword [esp + 0x1c]
cmp eax, 0x64
ja 0x422abc
mov eax, dword [esp + 0x14]
lea ecx, [eax + ebp - 5]
cmp esi, ecx
jae 0x422a9a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x422abc
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x42292b
mov edx, dword [esp + 0x30]
push esi
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
inc eax
mov dword [esp + 0x10], eax
lea esi, [esi + ecx + 1]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
ja 0x422945
inc dword [esp + 0x10]
jmp 0x422a85
mov al, byte [esi]
lea ebp, [esi + 4]
cmp al, 0x21
jne 0x422951
lea ebp, [esi + 5]
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
push ebp
call fcn.00422c00
test eax, eax
je 0x422a59
xor edx, edx
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], edx
push ecx
push ebp
mov ecx, ebx
mov dword [esp + 0x5c], 0x186b8
mov dword [esp + 0x60], 1
mov dword [esp + 0x68], 0x40000004
call fcn.0041f800
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4229de
push ebp
push 0
lea ecx, [ebx + 0x474]
call fcn.00429af0
test eax, eax
jne 0x4229fe
push ebp
push eax
mov ecx, ebx
call fcn.00416b20
push 1
push 0x449eac
push 0x449edc
push ebp
lea edx, [esp + 0x5c]
push 0x44a080
push edx
jmp 0x4229f5
push 1
push 0x4431a4
push 0x44a13c
push ebp
lea eax, [esp + 0x5c]
push 0x44a148
push eax
push 0
mov ecx, ebx
call fcn.00415410
mov ecx, dword [esp + 0x10]
and ecx, 0x80000001
jns 0x422a0f
dec ecx
or ecx, 0xfffffffe
inc ecx
mov edi, esi
jne 0x422a34
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
push 1
not ecx
dec ecx
dec edx
push edx
lea esi, [esi + ecx + 1]
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::RemoveAt
jmp 0x422a78
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 1]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
add eax, 2
lea esi, [esi + ecx + 1]
jmp 0x422a7d
mov eax, dword [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 1]
mov eax, dword [esp + 0x10]
inc eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, 0x64
jbe 0x4228d6
jmp 0x422abc
mov ecx, dword [esp + 0x10]
and ecx, 0x80000001
jns 0x422aab
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x422abc
mov edx, dword [esp + 0x30]
push esi
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov ebx, ebp
and ecx, 3
xor ebp, ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x422b99
lea eax, [esp + 0x48]
push ebp
push eax
lea ecx, [esp + 0x30]
call fcn.00416410
mov ecx, dword [eax]
lea eax, [esp + 0x3c]
push ebp
push eax
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x30]
mov byte [esp + 0xc8], 1
mov dword [esp + 0x24], edx
call fcn.00416410
push 0
mov ecx, eax
mov byte [esp + 0xc4], 2
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov byte [esp + 0xc0], 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0xc0], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x40]
push ebp
push eax
lea ecx, [esp + 0x30]
call fcn.00416410
mov ecx, dword [eax]
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x40]
inc esi
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
add edi, esi
add ebx, esi
inc ebp
mov dword [esp + 0x10], edi
cmp ebp, eax
jl 0x422ae8
mov eax, edi
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc eax
push eax
mov eax, dword [esp + 0x1c]
push esi
push 7
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
jmp 0x422bb8
push ebp
call fcn.0042a030
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0xc0], 0xffffffff
call sub.MFC42.DLL_CStringArray::CStringArray
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov ecx, dword [esp + 0xb0]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret