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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x780
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edx, 0x64
lea ecx, [esp + 0x620]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], 0x382
call fcn.00652dd0
mov ecx, 1
call fcn.0065ea40
cmp eax, ebp
jne 0x64a58c
cmp esi, ebp
je 0x64a587
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x649ec6
sub eax, edx
mov dword [esp + 0x94], eax
je 0x64a587
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x649ee1
sub eax, edx
cmp eax, 0x40
ja 0x64a587
cmp byte [esi], 0x2a
jne 0x649f17
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x649f00
sub eax, edx
cmp eax, 1
je 0x64a587
mov ebp, 1
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov ecx, 0x14
lea edi, [esp + 0x370]
rep stosd dword es:[edi], eax
mov ecx, 0x14
lea edi, [esp + 0x278]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x100]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
mov edx, 0x64
lea ecx, [esp + 0x3c0]
mov word [esp + 0x90], ax
call fcn.00650e80
mov edx, 3
lea ecx, [esp + 0x28]
call fcn.00655800
mov eax, dword [esp + 0x28]
and eax, 3
mov dword [esp + 0x28], eax
dec eax
lea ecx, [esp + 0x98]
mov edx, 0x64
je 0x649fc9
dec eax
je 0x649fc2
dec eax
je 0x649fbb
call fcn.00651840
jmp 0x649fce
call fcn.006516f0
jmp 0x649fce
call fcn.00651790
jmp 0x649fce
call fcn.0064f7d0
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x688]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x28
lea edi, [esp + 0x2c8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x28
lea edi, [esp + 0x1d0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x7d
lea edi, [esp + 0x428]
rep stosd dword es:[edi], eax
mov edx, 0x106
lea ecx, [esp + 0x688]
call fcn.00659ee0
test eax, eax
jne 0x64a58c
push 0x12
lea ecx, [esp + 0x84]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.00659620
test eax, eax
jne 0x64a58c
mov bl, 0x31
lea ebx, [ebx]
xor edx, edx
xor eax, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x74], edx
push 0x28
mov dword [esp + 0x50], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x5c], eax
push 0x28
lea edx, [esp + 0x64]
movsx eax, bl
push edx
push eax
mov edx, 0x10
lea ecx, [esp + 0x94]
call fcn.00653740
test eax, eax
jne 0x64a0fa
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.006968ed
add esp, 8
test eax, eax
je 0x64a0fa
lea edx, [esp + 0x30]
lea ecx, [esp + 0x58]
call fcn.006551d0
cmp eax, 1
je 0x64a1cf
inc bl
cmp bl, 0x39
jle 0x64a050
mov bl, 0x31
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x4c], ecx
push 0x28
mov dword [esp + 0x78], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x7c], eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x84], eax
push 0x28
lea eax, [esp + 0x64]
movsx ecx, bl
push eax
push ecx
mov edx, 0x10
lea ecx, [esp + 0x94]
call fcn.00653740
test eax, eax
jne 0x64a1b7
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.006968ed
add esp, 8
test eax, eax
je 0x64a1b7
lea ecx, [esp + 0x58]
call fcn.00655090
cmp eax, 1
je 0x64a1b7
lea ecx, [esp + 0x30]
call fcn.00655130
cmp eax, 1
jne 0x64a1cf
inc bl
cmp bl, 0x39
jle 0x64a107
mov eax, 0x35e
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x64
lea edx, [esp + 0x104]
lea ecx, [esp + 0x5c]
call fcn.006535a0
test eax, eax
jne 0x64a1fb
push 0x64
lea edx, [esp + 0x16c]
lea ecx, [esp + 0x34]
call fcn.00653670
test eax, eax
je 0x64a208
mov eax, 0x382
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x108]
mov ecx, closesocket
call fcn.00654130
test eax, eax
je 0x64a230
mov dword [esp + 0x14], eax
jmp 0x64a4e3
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x64a245
mov dword [esp + 0x14], 0x35f
jmp 0x64a4e3
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x170]
mov ecx, closesocket
call fcn.00654130
test eax, eax
je 0x64a26d
mov dword [esp + 0x14], eax
jmp 0x64a4e3
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x64a282
mov dword [esp + 0x14], 0x35f
jmp 0x64a4e3
cmp dword [esp + 0x24], 1
jne 0x64a46b
push 0xa2
lea edx, [esp + 0x2cc]
push edx
push 4
lea eax, [esp + 0x37c]
push eax
mov edx, ebp
lea ecx, [esp + 0x68]
call fcn.00655ae0
test eax, eax
jne 0x64a4e3
mov edx, 4
lea ecx, [esp + 0x278]
call fcn.00655760
push 0xa2
lea ecx, [esp + 0x1d4]
push ecx
push 4
lea edx, [esp + 0x284]
push edx
mov edx, ebp
lea ecx, [esp + 0x68]
call fcn.00655ae0
test eax, eax
jne 0x64a4e3
lea eax, [esp + 0x2c8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a300
sub eax, edx
mov edi, eax
lea eax, [esp + 0x1d0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a315
sub eax, edx
mov edx, eax
lea eax, [esp + 0x98]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a330
sub eax, esi
add eax, edx
lea eax, [eax + edi + 3]
cmp eax, 0x1f4
ja 0x64a4e3
lea eax, [esp + 0x2c8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a354
sub eax, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x2c8]
lea edi, [esp + 0x428]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x2c8]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a385
sub eax, edx
mov bl, 0x20
lea ecx, [esp + 0x1d0]
mov byte [esp + eax + 0x428], bl
inc eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x64a3a2
sub ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x1d0]
lea edi, [esp + eax + 0x428]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1d0]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x64a3d1
sub ecx, esi
add eax, ecx
lea ecx, [esp + 0x98]
mov byte [esp + eax + 0x428], bl
inc eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x64a3f0
sub ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x98]
lea edi, [esp + eax + 0x428]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x98]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x64a420
sub ecx, esi
add ecx, eax
lea eax, [esp + 0x428]
mov byte [esp + ecx + 0x428], dl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a440
mov ecx, dword [esp + 0x18]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x42c]
push eax
push 1
push 0
push 0x6b93e6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x64a4cd
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c8]
call fcn.00654130
test eax, eax
je 0x64a48c
mov dword [esp + 0x14], eax
jmp 0x64a4e3
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x64a49e
mov dword [esp + 0x14], 0x35f
jmp 0x64a4f2
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64a4a5
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x34]
push ecx
push 1
push 0
push 0x6b93e6
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x64a550
xor edx, edx
cmp eax, 5
setne dl
dec edx
and edx, 0x24
add edx, 0x339
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x64a4f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
test edx, edx
je 0x64a516
cmp dword [esp + 0x24], 1
jne 0x64a50f
lea ecx, [esp + 0x100]
call fcn.006548d0
jmp 0x64a516
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x64a544
cmp dword [esp + 0x2c], 1
jne 0x64a53d
lea ecx, [esp + 0x168]
call fcn.00654960
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
call fcn.00654290
mov ecx, dword [esp + 0x1c]
call fcn.00654550
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x325
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret