Function at 0x654550
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x898
push ebx
push ebp
xor ebp, ebp
mov ebx, ecx
cmp ebx, ebp
push esi
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
jne 0x65457d
mov eax, 0x325
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x64
lea ecx, [esp + 0x1c0]
call fcn.00651430
mov edx, 0x64
lea ecx, [esp + 0x228]
call fcn.006514a0
mov edx, 0x64
lea ecx, [esp + 0x88]
call fcn.006514e0
mov edx, 0x64
lea ecx, [esp + 0x158]
call fcn.00651580
mov edx, 0x64
lea ecx, [esp + 0xf0]
call fcn.00651620
mov edx, 0x64
lea ecx, [esp + 0x20]
call fcn.006514a0
xor eax, eax
mov ecx, 0x7d
lea edi, [esp + 0x6b0]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x5a8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x290]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x398]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x106
lea eax, [esp + 0x5ac]
push eax
call esi
test eax, eax
je 0x6548b7
mov edx, 0x106
lea ecx, [esp + 0x290]
call fcn.00659ee0
cmp eax, ebp
jne 0x6548bc
push 0x20a
lea ecx, [esp + 0x39c]
push ecx
call esi
test eax, eax
je 0x6548b7
lea eax, [esp + 0x398]
lea edx, [eax + 1]
jmp 0x654680
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x654680
sub eax, edx
mov edx, eax
cmp edx, 1
jl 0x6548b7
cmp edx, 0x104
jg 0x6548b7
lea eax, [esp + 0x290]
mov byte [esp + edx + 0x398], 0x5c
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6546b3
sub eax, esi
cmp eax, 1
jl 0x6548b7
cmp eax, 0x104
jg 0x6548b7
lea ebp, [eax + edx]
lea ecx, [ebp + 1]
cmp ecx, 0x209
ja 0x6548b7
mov ecx, eax
lea edi, [esp + edx + 0x398]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x290]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c8]
mov ecx, ebx
mov byte [esp + ebp + 0x3a0], 0
call fcn.00654130
test eax, eax
jne 0x6548bc
mov esi, dword [esp + 0x18]
test esi, esi
je 0x6548bc
push eax
mov edx, 0x1f4
lea ecx, [esp + 0x6b4]
call fcn.006558a0
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x654776
lea eax, [esp + 0x6b0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x654757
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x6b4]
push ecx
push 1
push 0
push 0x6b93e6
push esi
call ebp
push 0
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x230]
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.00654130
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x6547f9
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x6547f9
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00654130
test eax, eax
jne 0x6547f2
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x6547f2
lea eax, [esp + 0x398]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6547d0
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x39c]
push ecx
push 1
push 0
push 0x6b93e6
push esi
call ebp
push esi
call edi
push ebx
call edi
mov esi, dword [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x160]
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.00654130
test eax, eax
jne 0x65484f
mov esi, dword [esp + 0x14]
test esi, esi
je 0x65484f
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x654830
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x24]
push eax
push 1
push 0
push 0x6b93e6
push esi
call ebp
push esi
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xf8]
mov dword [esp + 0x1c], 0
call fcn.00654130
test eax, eax
jne 0x6548a6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x6548a6
lea eax, [esp + 0x5a8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x654884
sub eax, edx
inc eax
push eax
lea edx, [esp + 0x5ac]
push edx
push 1
push 0
push 0x6b93e6
push esi
call ebp
push esi
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x382
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret