Function at 0x64ba00
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6ac
push ebx
push esi
mov ebx, edx
xor esi, esi
mov eax, 0x50
mov dword [esp + 0x14], ecx
mov edx, 0x64
push edi
lea ecx, [esp + 0x4e0]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
call fcn.00654580
xor ecx, ecx
call fcn.0065fea0
cmp eax, esi
jne 0x64bd67
cmp ebx, esi
je 0x64bd62
cmp dword [ebp + 8], esi
je 0x64bd62
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64ba70
sub eax, edx
mov dword [esp + 0x8c], eax
je 0x64bd62
mov eax, ebx
lea edx, [eax + 1]
jmp 0x64ba90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64ba90
sub eax, edx
cmp eax, 0x40
ja 0x64bd62
cmp byte [ebx], 0x2a
jne 0x64bac7
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64bab0
sub eax, edx
cmp eax, 1
je 0x64bd62
mov esi, 1
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov ecx, 0x14
lea edi, [esp + 0xf8]
rep stosd dword es:[edi], eax
mov word [esp + 0x60], ax
mov ecx, 0x14
lea edi, [esp + 0x298]
rep stosd dword es:[edi], eax
mov ecx, 0x5a
lea edi, [esp + 0x548]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x28
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x28
lea edi, [esp + 0x1f0]
rep stosd dword es:[edi], eax
mov edx, 3
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
call fcn.00656c60
mov eax, dword [esp + 0x14]
and eax, 3
mov dword [esp + 0x14], eax
dec eax
lea ecx, [esp + 0x90]
mov edx, 0x64
je 0x64bb72
dec eax
je 0x64bb6b
dec eax
je 0x64bb64
call fcn.00652ca0
jmp 0x64bb77
call fcn.00652b50
jmp 0x64bb77
call fcn.00652bf0
jmp 0x64bb77
call fcn.00650c30
xor eax, eax
mov ecx, 0x7d
lea edi, [esp + 0x2e8]
rep stosd dword es:[edi], eax
push 0x12
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x20]
mov edx, ebx
call fcn.0065aa80
test eax, eax
jne 0x64bd67
mov bl, 0x31
xor edx, edx
xor eax, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x44], edx
push 0x28
mov dword [esp + 0x84], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x90], eax
push 0x28
lea edx, [esp + 0x34]
movsx eax, bl
push edx
push eax
mov edx, 0x10
lea ecx, [esp + 0x64]
call fcn.00654ba0
test eax, eax
jne 0x64bc4c
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00697d4d
add esp, 8
test eax, eax
je 0x64bc4c
lea edx, [esp + 0x64]
lea ecx, [esp + 0x28]
call fcn.00656630
cmp eax, 1
je 0x64bc65
inc bl
cmp bl, 0x39
jle 0x64bba3
mov eax, 0x35f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x16b
lea edx, [esp + 0x54c]
lea ecx, [esp + 0x2c]
call fcn.00654a00
test eax, eax
jne 0x64be32
call fcn.006552d0
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
lea ecx, [esp + 0x554]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x64bccc
cmp eax, 2
je 0x64bc57
xor edx, edx
cmp eax, 5
setne dl
dec edx
and edx, 0x25
add edx, 0x338
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x64bc57
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2a4]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x10c]
push edx
push eax
mov edx, esi
lea ecx, [esp + 0x44]
call fcn.00655f10
mov edi, eax
test edi, edi
je 0x64bd33
cmp edi, 0x362
je 0x64bd33
cmp edi, 0x361
je 0x64bd33
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0xa2
lea ecx, [esp + 0x14c]
push ecx
push edx
push eax
mov edx, esi
lea ecx, [esp + 0x38]
call fcn.00656f40
test eax, eax
je 0x64bd70
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x325
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x10]
cmp eax, 2
jl 0x64bd7e
cmp eax, 0x50
jle 0x64bd97
mov edx, 4
lea ecx, [esp + 0xf8]
mov dword [esp + 0x10], edx
call fcn.00656bc0
mov eax, dword [esp + 0x10]
push 0xa2
lea edx, [esp + 0x1f4]
push edx
push eax
lea eax, [esp + 0x104]
push eax
mov edx, esi
lea ecx, [esp + 0x38]
call fcn.00656f40
test eax, eax
je 0x64bdd5
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x382
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x148]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64bde0
sub eax, edx
mov edi, eax
lea eax, [esp + 0x1f0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64bdf5
sub eax, edx
mov edx, eax
lea eax, [esp + 0x90]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64be10
sub eax, esi
add eax, edx
lea edx, [eax + edi + 3]
cmp edx, 0x1f4
jbe 0x64be40
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x382
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x148]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64be50
sub eax, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x148]
lea edi, [esp + 0x2e8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x148]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64be81
sub eax, edx
mov bl, 0x20
lea ecx, [esp + 0x1f0]
mov byte [esp + eax + 0x2e8], bl
inc eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x64bea0
sub ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x1f0]
lea edi, [esp + eax + 0x2e8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1f0]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x64bed0
sub ecx, esi
add eax, ecx
lea ecx, [esp + 0x90]
mov byte [esp + eax + 0x2e8], bl
inc eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x64bef0
sub ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x90]
lea edi, [esp + eax + 0x2e8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x64bf20
sub ecx, esi
add ecx, eax
lea eax, [esp + 0x2e8]
mov byte [esp + ecx + 0x2e8], dl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64bf40
mov ecx, dword [esp + 0xc]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x2ec]
push eax
push 1
push 0
push 0x6ba446
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x64bf95
xor edx, edx
cmp eax, 5
mov eax, dword [esp + 0xc]
setne dl
push eax
dec edx
and edx, 0x24
add edx, 0x339
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8