Function at 0x10005080
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043e10
mov eax, dword fs:[0]
push eax
sub esp, 0x5cc
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 + 0x40]
mov eax, str.lFXrgAyTbPDSCHOwQAuIUXH18wJjHUCrsHktEcEtgfI0qskAlH2RLBccY233KNuO
lea esi, [ebp - 0x550]
mov dword [ebp - 0x53c], 0xf
mov dword [ebp - 0x540], ebx
mov byte [ebp - 0x550], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x534]
push ecx
mov dword [ebp - 4], ebx
call fcn.10002900
add esp, 8
mov edi, eax
mov esi, 0x100686d8
mov byte [ebp - 4], 1
call fcn.10003280
mov edi, 0x10
cmp dword [ebp - 0x520], edi
jb 0x1000511b
mov edx, dword [ebp - 0x534]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x520], esi
mov dword [ebp - 0x524], ebx
mov byte [ebp - 0x534], bl
cmp dword [ebp - 0x53c], edi
jb 0x10005151
mov eax, dword [ebp - 0x550]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x53c], esi
mov edi, 0x18
mov eax, str.evIOesjSf2w24PGoWU9PIA
lea esi, [ebp - 0x550]
mov dword [ebp - 0x540], ebx
mov byte [ebp - 0x550], bl
call fcn.10002d20
mov ecx, esi
push ecx
lea edx, [ebp - 0x534]
push edx
mov dword [ebp - 4], 2
call fcn.10002900
add esp, 8
mov edi, eax
mov esi, 0x100686f4
mov byte [ebp - 4], 3
call fcn.10003280
mov esi, 0x10
cmp dword [ebp - 0x520], esi
jb 0x100051be
mov eax, dword [ebp - 0x534]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x520], edi
mov dword [ebp - 0x524], ebx
mov byte [ebp - 0x534], bl
cmp dword [ebp - 0x53c], esi
jb 0x100051f4
mov ecx, dword [ebp - 0x550]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x520], edi
mov edi, 0x40
mov eax, str.L3cM_2xsLGZda_2E0vqDNf9WxS6MGUqUzBgpSmGqrbVAIa74JNPybXKh1aKi22J
lea esi, [ebp - 0x534]
mov dword [ebp - 0x524], ebx
mov byte [ebp - 0x534], bl
call fcn.10002d20
mov edx, esi
push edx
lea eax, [ebp - 0x588]
push eax
mov dword [ebp - 4], 4
call fcn.10002580
add esp, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x520], 0x10
jb 0x10005251
mov ecx, dword [ebp - 0x534]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0xf
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x53c], eax
lea edi, [eax + 9]
mov eax, str.VWAKo1nZieR6n2rU0rGfNA
lea esi, [ebp - 0x550]
mov dword [ebp - 0x524], ebx
mov byte [ebp - 0x534], bl
mov dword [ebp - 0x540], ebx
mov byte [ebp - 0x550], bl
call fcn.10002d20
mov edx, esi
push edx
lea eax, [ebp - 0x56c]
push eax
mov byte [ebp - 4], 7
call fcn.10002580
add esp, 8
mov edi, 0x10
mov byte [ebp - 4], 9
cmp dword [ebp - 0x53c], edi
jb 0x100052c4
mov ecx, dword [ebp - 0x550]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
push 0x103
mov dword [ebp - 0x5aa], eax
mov dword [ebp - 0x5a6], eax
mov dword [ebp - 0x5a2], eax
mov dword [ebp - 0x59e], eax
mov dword [ebp - 0x59a], eax
mov dword [ebp - 0x596], eax
mov dword [ebp - 0x592], eax
mov dword [ebp - 0x58e], eax
mov word [ebp - 0x58a], ax
lea eax, [ebp - 0x117]
mov edx, 0x31
push ebx
mov esi, 0xf
push eax
mov dword [ebp - 0x53c], esi
mov dword [ebp - 0x540], ebx
mov byte [ebp - 0x550], bl
mov word [ebp - 0x5ac], dx
mov dword [ebp - 0x5cc], ebx
mov byte [ebp - 0x118], bl
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x588]
add esp, 0xc
mov dword [ebp - 0x5d4], ebx
mov dword [ebp - 0x5d8], 0x104
cmp dword [ebp - 0x574], edi
jae 0x10005365
lea eax, [ebp - 0x588]
lea ecx, [ebp - 0x5cc]
push ecx
push 1
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100053c7
cmp dword [ebp - 0x558], edi
jb 0x10005397
mov edx, dword [ebp - 0x56c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x558], esi
mov dword [ebp - 0x55c], ebx
mov byte [ebp - 0x56c], bl
cmp dword [ebp - 0x574], edi
jb 0x10005824
mov eax, dword [ebp - 0x588]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jmp 0x10005821
mov eax, dword [0x100686f4]
cmp dword [0x10068708], edi
jae 0x100053d9
mov eax, 0x100686f4
lea ecx, [ebp - 0x5d8]
push ecx
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x5cc]
lea ecx, [ebp - 0x5d4]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp - 0x5cc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x1000545c
cmp dword [ebp - 0x558], edi
jb 0x10005428
mov ecx, dword [ebp - 0x56c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x558], 0xf
mov dword [ebp - 0x55c], ebx
mov byte [ebp - 0x56c], bl
cmp dword [ebp - 0x574], edi
jb 0x10005824
mov edx, dword [ebp - 0x588]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jmp 0x10005821
push 0x3ff
lea eax, [ebp - 0x517]
push ebx
push eax
mov byte [ebp - 0x518], bl
call sub.MSVCR100.dll_memset
mov edi, 0x400
add esp, 0xc
mov dword [ebp - 0x5d0], edi
lea ecx, [ebp - 0x5ac]
lea eax, [ebp - 0x118]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100054b0
cmp dl, bl
je 0x100054ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100054b0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x10005490
xor eax, eax
jmp 0x100054b5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100056dc
mov eax, dword [ebp - 0x588]
mov esi, 0x10
cmp dword [ebp - 0x574], esi
jae 0x100054d6
lea eax, [ebp - 0x588]
lea ecx, [ebp - 0x5cc]
push ecx
push 0x20019
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100056dc
mov eax, dword [ebp - 0x56c]
cmp dword [ebp - 0x558], esi
jae 0x1000550b
lea eax, [ebp - 0x56c]
lea edx, [ebp - 0x5d0]
push edx
mov edx, dword [ebp - 0x5cc]
lea ecx, [ebp - 0x518]
push ecx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100056cf
mov eax, dword [ebp - 0x5d0]
cmp eax, edi
jbe 0x10005543
mov dword [ebp - 0x5d0], edi
jmp 0x1000554a
cmp eax, 0x3ff
jb 0x1000554f
mov eax, 0x3ff
mov byte [ebp + eax - 0x518], bl
lea eax, [ebp - 0x518]
lea ecx, [ebp - 0x534]
call fcn.10002df0
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0xa
call fcn.10003380
lea eax, [ebp - 0x518]
lea ecx, [ebp - 0x5a4]
call fcn.10002df0
lea edi, [ebp - 0x534]
mov byte [ebp - 4], 0xb
call fcn.10004530
test al, al
je 0x100056b0
lea eax, [ebp - 0x5c8]
push eax
mov ecx, edi
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0x534]
mov byte [ebp - 4], 0xc
call fcn.10003280
lea ecx, [ebp - 0x5c8]
mov byte [ebp - 4], 0xb
call fcn.10003310
cmp dword [ebp - 0x574], 0x10
mov eax, dword [ebp - 0x588]
jae 0x100055e4
lea eax, [ebp - 0x588]
push ebx
lea ecx, [ebp - 0x5cc]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100056b5
mov ecx, dword [ebp - 0x534]
mov eax, 0x10
cmp dword [ebp - 0x520], eax
jae 0x10005622
lea ecx, [ebp - 0x534]
cmp dword [ebp - 0x558], eax
mov eax, dword [ebp - 0x56c]
jae 0x10005636
lea eax, [ebp - 0x56c]
mov edx, dword [ebp - 0x524]
inc edx
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x5cc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x5cc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x534]
push edx
lea eax, [ebp - 0x5c8]
push eax
call fcn.10002580
add esp, 8
mov edi, eax
lea esi, [ebp - 0x534]
mov byte [ebp - 4], 0xd
call fcn.10003280
lea ecx, [ebp - 0x5c8]
mov byte [ebp - 4], 0xb
call fcn.10003310
cmp dword [ebp - 0x520], 0x10
mov eax, dword [ebp - 0x534]
jae 0x100056a4
mov eax, esi
push 0x101774f0
call fcn.10006580
jmp 0x100056b5
call fcn.10004b80
lea ecx, [ebp - 0x5a4]
call fcn.10003310
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 9
call fcn.10003310
mov ecx, dword [ebp - 0x5cc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x534]
push edx
lea ecx, [ebp - 0x588]
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0x588]
mov byte [ebp - 4], 0xe
call fcn.10003280
mov byte [ebp - 4], 9
cmp dword [ebp - 0x520], 0x10
jb 0x1000571f
mov eax, dword [ebp - 0x534]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x534]
push ecx
lea ecx, [ebp - 0x56c]
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0x56c]
mov byte [ebp - 4], 0xf
call fcn.10003280
mov byte [ebp - 4], 9
cmp dword [ebp - 0x520], 0x10
jb 0x10005762
mov edx, dword [ebp - 0x534]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0x534]
push 0x100686d8
push eax
call fcn.10002750
add esp, 8
mov edi, eax
mov esi, 0x100686d8
mov byte [ebp - 4], 0x10
call fcn.10003280
mov byte [ebp - 4], 9
cmp dword [ebp - 0x520], 0x10
jb 0x100057a3
mov ecx, dword [ebp - 0x534]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x5c8]
push 0x100686f4
push edx
call fcn.10002750
add esp, 8
mov edi, eax
mov esi, 0x100686f4
mov byte [ebp - 4], 0x11
call fcn.10003280
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, 0x10
cmp dword [ebp - 0x5b4], edi
jb 0x100057e6
mov eax, dword [ebp - 0x5c8]
push eax
call esi
add esp, 4
cmp dword [ebp - 0x558], edi
jb 0x100057fa
mov ecx, dword [ebp - 0x56c]
push ecx
call esi
add esp, 4
mov dword [ebp - 0x558], 0xf
mov dword [ebp - 0x55c], ebx
mov byte [ebp - 0x56c], bl
cmp dword [ebp - 0x574], edi
jb 0x10005824
mov edx, dword [ebp - 0x588]
push edx
call esi
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