Function at 0x4791c0
Capabilities:
Check if file exists
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2eb9
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x38]
mov edi, edx
mov dword [ebp - 0x6c], 0
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ebx
je 0x479247
cmp dword [ebx + 0x14], 8
jb 0x479212
mov eax, dword [ebx]
jmp 0x479214
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x479247
xor esi, esi
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
push esi
mov word [edi], ax
push ebx
or eax, 0xffffffff
mov ecx, edi
call fcn.00416830
jmp 0x479421
cmp byte [esi + 0x134], 0
je 0x4792cc
cmp dword [esi + 0x128], 0
je 0x4792cc
call fcn.0047d110
mov ecx, ebx
test eax, eax
je 0x479298
push 9
mov eax, str.C:Users_
call fcn.00416700
mov ecx, eax
push 0
add esi, 0x118
push esi
or eax, 0xffffffff
mov esi, ecx
call fcn.00416610
mov ecx, eax
push 0x10
mov eax, str.AppDataRoaming
call fcn.00416700
jmp 0x479404
push 0x1a
mov eax, str.C:Documents_and_Settings_
call fcn.00416700
mov ecx, eax
push 0
add esi, 0x118
push esi
or eax, 0xffffffff
mov esi, ecx
call fcn.00416610
mov ecx, eax
push 0x11
mov eax, str.Application_Data
call fcn.00416700
jmp 0x479404
mov edi, 7
xor ecx, ecx
push edi
mov eax, str.AppData
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], cx
call fcn.00419690
mov dword [ebp - 4], 1
xor edx, edx
push 0x40
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
call fcn.00419690
mov byte [ebp - 4], 2
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x64]
mov ecx, esi
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x74], SysReAllocString
call fcn.004798c0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x68]
mov edi, eax
call fcn.004165a0
mov byte [ebp - 4], 2
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x479359
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049ca60
add esp, 4
mov edi, 7
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], esi
jb 0x479381
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049ca60
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], esi
jb 0x4793a1
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049ca60
add esp, 4
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ecx + 0x48], ebx
jne 0x4793fe
mov ecx, 0x4ca428
lea ebx, [ebp - 0x2c]
call fcn.00479a50
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x68]
mov edi, eax
call fcn.004165a0
xor ebx, ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x4793ea
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049ca60
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov ebx, esi
jmp 0x479401
mov ebx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x70]
xor esi, esi
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
push esi
mov word [edi], cx
push ebx
or eax, 0xffffffff
mov ecx, edi
call fcn.00416830
mov dword [ebp - 4], esi
mov dword [ebp - 0x6c], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret