Function at 0x64a5a0
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.00653120
xor ecx, ecx
call fcn.0065ea40
cmp eax, esi
jne 0x64a907
cmp ebx, esi
je 0x64a902
cmp dword [ebp + 8], esi
je 0x64a902
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a610
sub eax, edx
mov dword [esp + 0x8c], eax
je 0x64a902
mov eax, ebx
lea edx, [eax + 1]
jmp 0x64a630
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a630
sub eax, edx
cmp eax, 0x40
ja 0x64a902
cmp byte [ebx], 0x2a
jne 0x64a667
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a650
sub eax, edx
cmp eax, 1
je 0x64a902
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.00655800
mov eax, dword [esp + 0x14]
and eax, 3
mov dword [esp + 0x14], eax
dec eax
lea ecx, [esp + 0x90]
mov edx, 0x64
je 0x64a712
dec eax
je 0x64a70b
dec eax
je 0x64a704
call fcn.00651840
jmp 0x64a717
call fcn.006516f0
jmp 0x64a717
call fcn.00651790
jmp 0x64a717
call fcn.0064f7d0
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.00659620
test eax, eax
jne 0x64a907
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.00653740
test eax, eax
jne 0x64a7ec
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.006968ed
add esp, 8
test eax, eax
je 0x64a7ec
lea edx, [esp + 0x64]
lea ecx, [esp + 0x28]
call fcn.006551d0
cmp eax, 1
je 0x64a805
inc bl
cmp bl, 0x39
jle 0x64a743
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.006535a0
test eax, eax
jne 0x64a9d2
call fcn.00653e70
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 0x64a86c
cmp eax, 2
je 0x64a7f7
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 0x64a7f7
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.00654ab0
mov edi, eax
test edi, edi
je 0x64a8d3
cmp edi, 0x362
je 0x64a8d3
cmp edi, 0x361
je 0x64a8d3
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.00655ae0
test eax, eax
je 0x64a910
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 0x64a91e
cmp eax, 0x50
jle 0x64a937
mov edx, 4
lea ecx, [esp + 0xf8]
mov dword [esp + 0x10], edx
call fcn.00655760
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.00655ae0
test eax, eax
je 0x64a975
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 0x64a980
sub eax, edx
mov edi, eax
lea eax, [esp + 0x1f0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a995
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 0x64a9b0
sub eax, esi
add eax, edx
lea edx, [eax + edi + 3]
cmp edx, 0x1f4
jbe 0x64a9e0
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 0x64a9f0
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 0x64aa21
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 0x64aa40
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 0x64aa70
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 0x64aa90
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 0x64aac0
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 0x64aae0
mov ecx, dword [esp + 0xc]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x2ec]
push eax
push 1
push 0
push 0x6b93e6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x64ab35
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