Function at 0x10021c50
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043abb
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x1005b034]
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
xor ebx, ebx
lea edi, [ebx + 0x18]
mov eax, str.ataISf8BGjRKl0AC26bOw
lea esi, [ebp - 0x80]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov dword [ebp - 4], ebx
call fcn.10002580
add esp, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6c], 0x10
jb 0x10021cc9
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0xf
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x50], eax
lea edi, [eax + 9]
mov eax, str.QNDk1fnu_0tF5WAdvXvbg
lea esi, [ebp - 0x64]
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 3
call fcn.10002580
add esp, 8
mov esi, 0x10
cmp dword [ebp - 0x50], esi
jb 0x10021d1a
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], ebx
cmp dword [ebp - 0x88], esi
jae 0x10021d45
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0xa4]
push ecx
push 0x20019
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021e0a
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x10021d71
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0xa0]
push edx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0xa4]
push eax
call edi
test eax, eax
jne 0x10021dfd
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x38]
lea esi, [ebp - 0x48]
cmp ecx, eax
ja 0x10021da9
or eax, 0xffffffff
call fcn.10002ea0
jmp 0x10021db5
push ebx
mov ebx, ecx
sub ebx, eax
call fcn.10008270
xor ebx, ebx
mov ecx, dword [ebp - 0x48]
mov eax, 0x10
cmp dword [ebp - 0x34], eax
jae 0x10021dc5
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
jae 0x10021dd0
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0xa0]
push edx
push ecx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0xa4]
push eax
call edi
test eax, eax
jne 0x10021dfd
push ebx
push ebx
push ebx
push 0x10021c30
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.100219d0
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x9c]
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.10003280
mov byte [ebp - 4], 6
cmp dword [ebp - 0x50], 0x10
jb 0x10021e44
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.10003280
mov edi, 0x10
cmp dword [ebp - 0x50], edi
jb 0x10021e78
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x34], edi
jb 0x10021e8a
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], edi
jb 0x10021eaa
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x88], edi
jb 0x10021ecb
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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.1003e6b0
mov esp, ebp
pop ebp
ret