Function at 0x49e400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x40c]
sub esp, 0x488
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp + 0x408], eax
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp + 0x424]
push ebx
mov ebx, dword [ebp + 0x418]
push esi
mov esi, dword [ebp + 0x414]
push edi
mov edi, dword [ebp + 0x420]
xor edx, edx
push 0x40e
mov dword [ebp - 0x44], eax
push edx
lea eax, [ebp - 6]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x30], ecx
mov word [ebp - 8], dx
call fcn.004677c0
add esp, 0xc
test ebx, ebx
je 0x49e8dd
test esi, esi
je 0x49e471
cmp byte [esi], 0
jne 0x49e47a
cmp dword [ebx], 0
je 0x49e8dd
test edi, edi
je 0x49e8dd
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x49e8dd
cmp dword [eax], 0
je 0x49e8dd
cmp dword [ebx], 0
jne 0x49e4e2
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x34]
mov edx, esi
mov dword [ebp - 0x34], 0x208
call fcn.0049dbe0
add esp, 4
test eax, eax
jne 0x49e4ce
push ebx
push 3
push eax
lea edx, [ebp - 8]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49e4d9
mov dword [ebx], 0
jmp 0x49e8bd
cmp dword [ebx], 0
je 0x49e8bd
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
test edi, edi
je 0x49e565
cmp byte [edi], 0
je 0x49e565
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49e500
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x49e52f
call fcn.0046d420
mov eax, esp
test eax, eax
je 0x49e52a
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp - 0x18], eax
jmp 0x49e548
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x49e545
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x49e5a8
push 0
push esi
push eax
dec esi
push esi
push edi
call fcn.004a50f0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x49e8a6
push 0
push 8
call fcn.004a1830
mov ebx, eax
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
add esi, ebx
lea eax, [esi + 8]
add esp, 8
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], esi
cmp eax, 0x400
ja 0x49e5b2
call fcn.0046d420
mov eax, esp
test eax, eax
je 0x49e5a1
mov dword [eax], 0xcccc
mov esi, dword [ebp - 0x14]
add eax, 8
mov edi, eax
mov dword [ebp - 0x28], edi
jmp 0x49e5d0
mov esi, 8
jmp 0x49e8a6
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x49e5c8
mov dword [eax], 0xdddd
add eax, 8
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov edi, eax
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x49e5ed
call fcn.0046d420
mov eax, esp
test eax, eax
je 0x49e603
mov dword [eax], 0xcccc
jmp 0x49e600
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x49e603
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x49e892
test eax, eax
je 0x49e892
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [eax]
push edi
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
jne 0x49e897
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x14]
add ecx, ebx
cmp eax, ecx
jne 0x49e88b
movzx edi, ax
dec edi
mov eax, 0x80808081
mul edi
shr edx, 7
mov eax, edx
imul eax, eax, 0xff
mov esi, edi
sub esi, eax
neg esi
sbb esi, esi
neg esi
mov eax, 0x108
mov dword [ebp - 0x34], edi
add esi, edx
call fcn.0046d420
mov ebx, esp
mov dword [ebp - 0x24], esp
test ebx, ebx
je 0x49e692
mov dword [ebx], 0xcccc
add ebx, 8
mov dword [ebp - 0x24], ebx
mov eax, 0x108
call fcn.0046d420
mov eax, esp
mov dword [ebp - 0x10], esp
test eax, eax
je 0x49e6b1
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp - 0x10], eax
test esi, esi
jbe 0x49e805
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0x110fd9a
mov dword [ebp - 0x2c], esi
lea ebx, [ebx]
mov eax, edi
sub eax, dword [ebp - 0x20]
mov byte [ebp - 9], 0xff
cmp eax, 0xff
ja 0x49e6e3
mov byte [ebp - 9], al
movzx cx, byte [ebp - 9]
xor eax, eax
shl cx, 8
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
movzx edx, cx
push eax
xor bl, bl
mov dword [ebp - 0x54], edx
call fcn.004a71f0
movzx ecx, byte [ebp - 9]
add esp, 4
mov dword [ebp - 0x48], ecx
call fcn.004a73e0
xor edx, edx
div dword [ebp - 0x48]
mov al, dl
shr al, 5
movzx esi, dl
mov byte [ebp - 0xa], al
movzx edi, byte [ebp - 0xa]
mov ecx, esi
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + edi*4 - 0x74]
lea edi, [ebp + edi*4 - 0x74]
test eax, ecx
jne 0x49e76a
or ecx, eax
movzx eax, bl
mov dword [edi], ecx
mov ecx, dword [ebp - 0x24]
mov byte [eax + ecx], dl
mov edx, dword [ebp - 0x10]
mov byte [esi + edx], bl
inc bl
inc dword [ebp - 0x40]
cmp bl, byte [ebp - 9]
jae 0x49e7ba
mov ax, word [ebp - 0x40]
cmp ax, word [ebp - 0x54]
jb 0x49e724
xor dl, dl
cmp byte [ebp - 9], dl
jbe 0x49e7e4
cmp bl, byte [ebp - 9]
jae 0x49e7ba
movzx eax, dl
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, eax
shr ecx, 5
test dword [ebp + ecx*4 - 0x74], esi
jne 0x49e7b3
mov esi, dword [ebp - 0x24]
movzx ecx, bl
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
mov byte [eax + ecx], bl
inc bl
inc dl
cmp dl, byte [ebp - 9]
jb 0x49e783
cmp byte [ebp - 9], 0
jbe 0x49e7e4
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x48]
lea ecx, [edi + edx]
nop
movzx edx, byte [eax]
mov ebx, dword [ebp - 0x28]
add edx, edi
mov dl, byte [edx + ebx]
mov byte [ecx], dl
inc eax
inc ecx
sub esi, 1
jne 0x49e7d0
add dword [ebp - 0x38], 0x110fd9a
add dword [ebp - 0x20], 0xff
sub dword [ebp - 0x2c], 1
mov edi, dword [ebp - 0x34]
jne 0x49e6d0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
test ebx, ebx
je 0x49e820
add ebx, 0xfffffff8
cmp dword [ebx], 0xdddd
jne 0x49e820
push ebx
call fcn.004684a1
mov eax, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x49e838
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x49e838
push eax
call fcn.004684a1
add esp, 4
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov byte [edi + esi], 0
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
push edi
push esi
push eax
push ebx
call fcn.0046a058
add esp, 0x10
lea ecx, [ebp - 0x3c]
push ecx
push ebx
lea ecx, [ebp - 0x7c]
mov byte [ebx + edi], 0
call fcn.0049d7b0
test eax, eax
je 0x49e884
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
add esi, edi
push esi
push eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.0046a058
mov esi, dword [ebp - 0x3c]
add esp, 0x10
jmp 0x49e897
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x49e897
mov esi, 0xd
jmp 0x49e897
mov esi, 8
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0041a6d0
mov edi, dword [ebp - 0x44]
add esp, 4
test edi, edi
je 0x49e8bb
cmp byte [edi], 0
je 0x49e8bb
mov edx, dword [ebp - 0x18]
push edx
call fcn.0041a6d0
add esp, 4
mov eax, esi
lea esp, [ebp - 0x88]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x408]
xor ecx, ebp
call fcn.004677af
add ebp, 0x40c
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x49e8bd