Function at 0x1003a6b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044e96
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x100609d0]
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, edx
xor ebx, ebx
mov edi, ecx
lea edx, [ebp - 0x410]
mov dword [ebp - 0x534], edi
mov dword [ebp - 0x52c], esi
mov dword [ebp - 0x518], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1003a701
mov ecx, 0x10046e7c
lea eax, [ebp - 0x410]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003a736
test dl, dl
je 0x1003a732
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003a736
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003a716
xor eax, eax
jmp 0x1003a73b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1003ac15
push 0x80
lea ecx, [ebp - 0x554]
mov byte [ebp - 0x511], bl
mov byte [ebp - 0x512], bl
mov byte [esi], bl
mov byte [ebp - 0x110], bl
call fcn.10001360
mov esi, dword [sym.imp.MSVCR100.dll_strtok]
lea eax, [ebp - 0x410]
push 0x10046ec8
push eax
mov dword [ebp - 4], ebx
call esi
add esp, 8
test eax, eax
je 0x1003a7cb
jmp 0x1003a790
push eax
lea ecx, [ebp - 0x51c]
call fcn.100375c0
push eax
lea ecx, [ebp - 0x554]
mov byte [ebp - 4], 1
call fcn.100014e0
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], 0
call fcn.10037690
push 0x10046ec8
push 0
call esi
add esp, 8
test eax, eax
jne 0x1003a790
lea ecx, [ebp - 0x554]
call fcn.100016c0
mov dword [ebp - 0x53c], eax
test eax, eax
jle 0x1003ab59
jmp 0x1003a7f0
mov ecx, dword [ebp - 0x518]
push ecx
lea ecx, [ebp - 0x554]
call fcn.10001730
mov ecx, eax
call fcn.10037620
mov esi, eax
push 0xfe
lea eax, [ebp - 0x30e]
mov edx, 0x2e
push 0
push eax
mov dword [ebp - 0x520], esi
mov word [ebp - 0x310], dx
call sub.MSVCR100.dll_memset
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003a837
lea edi, [ebp - 0x310]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003a850
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x51c], 0
test ebx, ebx
jne 0x1003aa26
lea esi, [ebx + 1]
mov ebx, dword [sym.imp.MSVCR100.dll__stricmp]
mov edi, dword [ebp - 0x520]
push edi
push esi
push 0xd
lea ecx, [ebp - 0x510]
push 0x18
push ecx
mov byte [ebp - 0x510], 0
call fcn.100387e0
add esp, 0x10
push eax
call ebx
add esp, 8
test eax, eax
je 0x1003ab75
inc esi
cmp esi, 0x13
jle 0x1003a881
lea edx, [ebp - 0x538]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x310]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003aa26
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x524]
push ecx
mov ecx, dword [ebp - 0x538]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x528]
push eax
push 0
push 0
mov edi, 0x100
push ecx
mov dword [ebp - 0x524], edi
call esi
test eax, eax
jne 0x1003aa0c
mov ebx, 1
cmp dword [ebp - 0x528], ebx
jne 0x1003aa0c
lea edx, [ebp - 0x530]
push edx
push 0x20019
push eax
lea eax, [ebp - 0x210]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003aa0c
lea ecx, [ebp - 0x524]
push ecx
mov ecx, dword [ebp - 0x530]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x528]
push eax
push 0
push 0
push ecx
mov dword [ebp - 0x524], edi
call esi
test eax, eax
jne 0x1003a9ff
cmp dword [ebp - 0x528], ebx
jne 0x1003a9ff
mov byte [ebp - 0x511], bl
mov cl, byte [ebp + eax - 0x210]
mov byte [ebp + eax - 0x110], cl
add eax, ebx
test cl, cl
jne 0x1003a990
lea eax, [ebp - 0x110]
dec eax
jmp 0x1003a9b0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1003a9b0
mov edx, dword [str.__.]
mov cl, byte [0x1004a5f4]
mov dword [eax], edx
mov byte [eax + 4], cl
mov eax, dword [ebp - 0x520]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003a9d1
lea edi, [ebp - 0x110]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003a9e3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x51c], ebx
mov edx, dword [ebp - 0x530]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x538]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x51c], 0
jne 0x1003aaa8
cmp dword [ebp - 0x518], 0
je 0x1003aa51
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1003aa36
mov cx, word [0x100471d4]
mov dl, byte [0x100471d6]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1003aa58
mov cx, word [0x1004a5ec]
mov dl, byte [0x1004a5ee]
mov word [eax], cx
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x520]
mov ecx, eax
jmp 0x1003aa80
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003aa80
lea edi, [ebp - 0x110]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003aa92
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x518], 0
mov ebx, dword [ebp - 0x52c]
je 0x1003aad1
lea edi, [ebx - 1]
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003aac0
mov ax, word [0x10046ec8]
mov word [edi], ax
lea eax, [ebx - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1003aad4
mov cx, word [0x1004a5ec]
mov word [eax], cx
mov dl, byte [0x1004a5ee]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0x520]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003aaf7
sub eax, ecx
mov esi, ecx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003ab05
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x518]
inc eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, 1
mov dword [ebp - 0x518], eax
cmp eax, dword [ebp - 0x53c]
jl 0x1003a7f0
cmp byte [ebp - 0x511], 0
jne 0x1003abdf
cmp byte [ebp - 0x512], 0
jne 0x1003abdf
mov edi, dword [ebp - 0x534]
lea eax, [ebp - 0x110]
push eax
push 1
push 0x6e
push 0
call fcn.10038620
add esp, 0xc
push eax
push edi
jmp 0x1003abf2
push esi
push 0xe
push 0x18
mov byte [ebp - 0x512], 1
call fcn.10038620
lea edx, [ebp - 0x110]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1003ab91
lea eax, [ebp - 0x110]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1003aba2
mov edx, dword [str.__.]
mov cl, byte [0x1004a5f4]
mov dword [eax], edx
mov byte [eax + 4], cl
mov eax, edi
mov ecx, edi
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003abc0
lea edi, [ebp - 0x110]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003abd2
jmp 0x1003aa9a
mov edx, dword [ebp - 0x534]
lea ecx, [ebp - 0x110]
push ecx
push 0x1004a5e8
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x554]
mov dword [ebp - 4], 0xffffffff
call fcn.100014d0
mov eax, dword [ebp - 0x518]
jmp 0x1003ac38
push 1
push 0x66
push ebx
call fcn.10038620
mov edx, edi
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1003ac26
mov dword [esi], 0x2a2e2a
mov eax, ebx
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.1003d0d0
mov esp, ebp
pop ebp
ret