Function at 0x476ab0
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6694b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push esi
push edi
lea edi, [ebp - 0x184]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
call fcn.00405024
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00405024
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00405ad3
add esp, 8
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x144], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax]
push ecx
push 0x6856dc
lea edx, [ebp - 0x14]
push edx
call fcn.0060da8c
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x13c]
call fcn.00619871
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10], eax
mov esi, esp
push 0x105
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, esp
call fcn.005e0cbc
test eax, eax
jne 0x476bae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00619871
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00619871
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00619871
jmp 0x476d4f
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
push str._s_s
lea ecx, [ebp - 0x18]
push ecx
call fcn.0060da8c
add esp, 0x10
mov esi, esp
push 0
lea ecx, [ebp - 0x18]
call fcn.004073ce
push eax
lea ecx, [ebp - 0x14]
call fcn.004073ce
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp esi, esp
call fcn.005e0cbc
test eax, eax
je 0x476cff
mov esi, esp
push 0x80
lea ecx, [ebp - 0x18]
call fcn.004073ce
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp esi, esp
call fcn.005e0cbc
push 0
lea ecx, [ebp - 0x18]
call fcn.00619ca1
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.005e0cbc
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x20
jae 0x476c64
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00619871
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00619871
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00619871
jmp 0x476d4f
mov edx, dword [str.DllRegisterServer]
mov dword [ebp - 0x134], edx
mov eax, dword [0x68f6d0]
mov dword [ebp - 0x130], eax
mov ecx, dword [0x68f6d4]
mov dword [ebp - 0x12c], ecx
mov edx, dword [0x68f6d8]
mov dword [ebp - 0x128], edx
mov ax, word [0x68f6dc]
mov word [ebp - 0x124], ax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x138], ecx
mov esi, esp
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.005e0cbc
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x476ce7
mov esi, esp
call dword [ebp - 0x120]
cmp esi, esp
call fcn.005e0cbc
mov esi, esp
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, esp
call fcn.005e0cbc
jmp 0x476d28
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00619871
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00619871
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00619871
jmp 0x476d4f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00619871
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00619871
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00619871
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x184
cmp ebp, esp
call fcn.005e0cbc
mov esp, ebp
pop ebp
ret