Function at 0x64b590
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.00654110
xor ecx, ecx
call fcn.0065fa30
cmp eax, esi
jne 0x64b8f7
cmp ebx, esi
je 0x64b8f2
cmp dword [ebp + 8], esi
je 0x64b8f2
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64b600
sub eax, edx
mov dword [esp + 0x8c], eax
je 0x64b8f2
mov eax, ebx
lea edx, [eax + 1]
jmp 0x64b620
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64b620
sub eax, edx
cmp eax, 0x40
ja 0x64b8f2
cmp byte [ebx], 0x2a
jne 0x64b657
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64b640
sub eax, edx
cmp eax, 1
je 0x64b8f2
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.006567f0
mov eax, dword [esp + 0x14]
and eax, 3
mov dword [esp + 0x14], eax
dec eax
lea ecx, [esp + 0x90]
mov edx, 0x64
je 0x64b702
dec eax
je 0x64b6fb
dec eax
je 0x64b6f4
call fcn.00652830
jmp 0x64b707
call fcn.006526e0
jmp 0x64b707
call fcn.00652780
jmp 0x64b707
call fcn.006507c0
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.0065a610
test eax, eax
jne 0x64b8f7
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.00654730
test eax, eax
jne 0x64b7dc
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.006978dd
add esp, 8
test eax, eax
je 0x64b7dc
lea edx, [esp + 0x64]
lea ecx, [esp + 0x28]
call fcn.006561c0
cmp eax, 1
je 0x64b7f5
inc bl
cmp bl, 0x39
jle 0x64b733
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.00654590
test eax, eax
jne 0x64b9c2
call fcn.00654e60
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 0x64b85c
cmp eax, 2
je 0x64b7e7
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 0x64b7e7
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.00655aa0
mov edi, eax
test edi, edi
je 0x64b8c3
cmp edi, 0x362
je 0x64b8c3
cmp edi, 0x361
je 0x64b8c3
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.00656ad0
test eax, eax
je 0x64b900
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 0x64b90e
cmp eax, 0x50
jle 0x64b927
mov edx, 4
lea ecx, [esp + 0xf8]
mov dword [esp + 0x10], edx
call fcn.00656750
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.00656ad0
test eax, eax
je 0x64b965
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 0x64b970
sub eax, edx
mov edi, eax
lea eax, [esp + 0x1f0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64b985
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 0x64b9a0
sub eax, esi
add eax, edx
lea edx, [eax + edi + 3]
cmp edx, 0x1f4
jbe 0x64b9d0
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 0x64b9e0
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 0x64ba11
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 0x64ba30
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 0x64ba60
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 0x64ba80
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 0x64bab0
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 0x64bad0
mov ecx, dword [esp + 0xc]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x2ec]
push eax
push 1
push 0
push 0x6ba3e6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x64bb25
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