Function at 0x47c1a3
Capabilities:
Copy file
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
push 0x14
pop ecx
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
cdq
idiv ecx
mov dword [ebp - 4], esi
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x47c2d8
mov ebx, dword [ebp + 8]
mov eax, 0x100
test word [ebx + 4], ax
jne 0x47c2d8
cmp byte [ebx + 0x2b], 0xb
je 0x47c2d8
movzx edx, word [ebx + 0x54]
xor ecx, ecx
test edx, edx
je 0x47c20a
mov eax, dword [ebx + 0x58]
add eax, 2
cmp word [eax], 0xb
je 0x47c2d8
inc ecx
add eax, 0x10
cmp ecx, edx
jne 0x47c1f8
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 4]
call fcn.0047c42d
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x47c229
push 0xe
pop edi
jmp 0x47c2da
mov eax, dword [ecx + 0x1c]
cmp eax, edi
jae 0x47c2d8
imul eax, eax, 0x14
add eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
mov edi, dword [eax]
lea ecx, [eax + 8]
mov edx, dword [eax + 4]
sub edx, edi
mov dword [ebp - 8], edi
sar edx, 1
cmp edi, ecx
jne 0x47c255
push 3
pop ecx
jmp 0x47c25b
mov ecx, dword [ecx]
sub ecx, edi
sar ecx, 1
lea eax, [edx + 0x27]
cmp eax, ecx
jbe 0x47c264
int 0x2c
mov eax, dword [ebp - 0xc]
lea ecx, [edi + edx*2]
cmp byte [eax + 0x10], 0
je 0x47c282
mov dl, byte [ebx + 0x1b]
call fcn.0046b8df
push 0x5c
pop eax
mov word [ecx + 4], ax
add ecx, 6
mov edx, ecx
lea ecx, [ebx + 0x18]
call fcn.0047bd7e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x1050
je 0x47c29f
push 2
pop edi
jmp 0x47c2a8
push edi
call dword [sym.imp.tdh.dll_TdhLoadManifest]
mov edi, eax
mov eax, dword [esi]
push edi
push dword [ebp - 8]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4ab2d4]
mov ecx, dword [ebp - 4]
call esi
mov ecx, dword [ebp - 0x18]
test edi, edi
je 0x47c2e3
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp - 4]
inc eax
mov dword [ecx + 0x1c], eax
cmp eax, dword [ebp - 0x10]
jb 0x47c234
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
cmp edx, dword [ecx + 0x1c]
jae 0x47c387
imul ecx, edx, 0x14
add ecx, dword [eax + 0x18]
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
sub eax, edi
mov dword [ebp - 0xc], edi
sar eax, 1
cmp byte [ecx + 0x10], 0
lea esi, [edi + eax*2]
je 0x47c346
mov dl, byte [ebx + 0x1b]
mov ecx, esi
call fcn.0046b8df
xor eax, eax
push eax
push edi
mov word [esi + 4], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47c33c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x47c36c
mov edi, dword [ebp - 0xc]
push 0x5c
pop eax
mov word [esi + 4], ax
add esi, 6
mov edx, esi
lea ecx, [ebx + 0x18]
call fcn.0047bd7e
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x47c364
xor edi, edi
jmp 0x47c36c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebx, dword [ebp - 4]
push edi
push dword [ebp - 0xc]
mov eax, dword [ebx]
push dword [ebp - 8]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x4ab2d4]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x18]
or dword [eax + 0x1c], 0xffffffff
jmp 0x47c2da