Function at 0x64ae50
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.00653dc0
mov ecx, 1
call fcn.0065fa30
cmp eax, ebp
jne 0x64b57c
cmp esi, ebp
je 0x64b577
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64aeb6
sub eax, edx
mov dword [esp + 0x94], eax
je 0x64b577
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64aed1
sub eax, edx
cmp eax, 0x40
ja 0x64b577
cmp byte [esi], 0x2a
jne 0x64af07
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64aef0
sub eax, edx
cmp eax, 1
je 0x64b577
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.00651e70
mov edx, 3
lea ecx, [esp + 0x28]
call fcn.006567f0
mov eax, dword [esp + 0x28]
and eax, 3
mov dword [esp + 0x28], eax
dec eax
lea ecx, [esp + 0x98]
mov edx, 0x64
je 0x64afb9
dec eax
je 0x64afb2
dec eax
je 0x64afab
call fcn.00652830
jmp 0x64afbe
call fcn.006526e0
jmp 0x64afbe
call fcn.00652780
jmp 0x64afbe
call fcn.006507c0
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.0065aed0
test eax, eax
jne 0x64b57c
push 0x12
lea ecx, [esp + 0x84]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.0065a610
test eax, eax
jne 0x64b57c
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.00654730
test eax, eax
jne 0x64b0ea
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.006978dd
add esp, 8
test eax, eax
je 0x64b0ea
lea edx, [esp + 0x30]
lea ecx, [esp + 0x58]
call fcn.006561c0
cmp eax, 1
je 0x64b1bf
inc bl
cmp bl, 0x39
jle 0x64b040
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.00654730
test eax, eax
jne 0x64b1a7
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.006978dd
add esp, 8
test eax, eax
je 0x64b1a7
lea ecx, [esp + 0x58]
call fcn.00656080
cmp eax, 1
je 0x64b1a7
lea ecx, [esp + 0x30]
call fcn.00656120
cmp eax, 1
jne 0x64b1bf
inc bl
cmp bl, 0x39
jle 0x64b0f7
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.00654590
test eax, eax
jne 0x64b1eb
push 0x64
lea edx, [esp + 0x16c]
lea ecx, [esp + 0x34]
call fcn.00654660
test eax, eax
je 0x64b1f8
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.00655120
test eax, eax
je 0x64b220
mov dword [esp + 0x14], eax
jmp 0x64b4d3
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x64b235
mov dword [esp + 0x14], 0x35f
jmp 0x64b4d3
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x170]
mov ecx, closesocket
call fcn.00655120
test eax, eax
je 0x64b25d
mov dword [esp + 0x14], eax
jmp 0x64b4d3
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x64b272
mov dword [esp + 0x14], 0x35f
jmp 0x64b4d3
cmp dword [esp + 0x24], 1
jne 0x64b45b
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.00656ad0
test eax, eax
jne 0x64b4d3
mov edx, 4
lea ecx, [esp + 0x278]
call fcn.00656750
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.00656ad0
test eax, eax
jne 0x64b4d3
lea eax, [esp + 0x2c8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64b2f0
sub eax, edx
mov edi, eax
lea eax, [esp + 0x1d0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64b305
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 0x64b320
sub eax, esi
add eax, edx
lea eax, [eax + edi + 3]
cmp eax, 0x1f4
ja 0x64b4d3
lea eax, [esp + 0x2c8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64b344
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 0x64b375
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 0x64b392
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 0x64b3c1
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 0x64b3e0
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 0x64b410
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 0x64b430
mov ecx, dword [esp + 0x18]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x42c]
push eax
push 1
push 0
push 0x6ba3e6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x64b4bd
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c8]
call fcn.00655120
test eax, eax
je 0x64b47c
mov dword [esp + 0x14], eax
jmp 0x64b4d3
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x64b48e
mov dword [esp + 0x14], 0x35f
jmp 0x64b4e2
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x64b495
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x34]
push ecx
push 1
push 0
push 0x6ba3e6
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x64b540
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 0x64b4e2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
test edx, edx
je 0x64b506
cmp dword [esp + 0x24], 1
jne 0x64b4ff
lea ecx, [esp + 0x100]
call fcn.006558c0
jmp 0x64b506
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x64b534
cmp dword [esp + 0x2c], 1
jne 0x64b52d
lea ecx, [esp + 0x168]
call fcn.00655950
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.00655280
mov ecx, dword [esp + 0x1c]
call fcn.00655540
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