Function at 0x4af433
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 0x4af568
mov ebx, dword [ebp + 8]
mov eax, 0x100
test word [ebx + 4], ax
jne 0x4af568
cmp byte [ebx + 0x2b], 0xb
je 0x4af568
movzx edx, word [ebx + 0x54]
xor ecx, ecx
test edx, edx
je 0x4af49a
mov eax, dword [ebx + 0x58]
add eax, 2
cmp word [eax], 0xb
je 0x4af568
inc ecx
add eax, 0x10
cmp ecx, edx
jne 0x4af488
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 4]
call fcn.004af699
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4af4b9
push 0xe
pop edi
jmp 0x4af56a
mov eax, dword [ecx + 0x1c]
cmp eax, edi
jae 0x4af568
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 0x4af4e5
push 3
pop ecx
jmp 0x4af4eb
mov ecx, dword [ecx]
sub ecx, edi
sar ecx, 1
lea eax, [edx + 0x27]
cmp eax, ecx
jbe 0x4af4f4
int 0x2c
mov eax, dword [ebp - 0xc]
lea ecx, [edi + edx*2]
cmp byte [eax + 0x10], 0
je 0x4af512
mov dl, byte [ebx + 0x1b]
call fcn.0049df5c
push 0x5c
pop eax
mov word [ecx + 4], ax
add ecx, 6
mov edx, ecx
lea ecx, [ebx + 0x18]
call fcn.004af2cd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x1050
je 0x4af52f
push 2
pop edi
jmp 0x4af538
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 [0x4f6d6c]
mov ecx, dword [ebp - 4]
call esi
mov ecx, dword [ebp - 0x18]
test edi, edi
je 0x4af573
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp - 4]
inc eax
mov dword [ecx + 0x1c], eax
cmp eax, dword [ebp - 0x10]
jb 0x4af4c4
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 0x4af617
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 0x4af5d6
mov dl, byte [ebx + 0x1b]
mov ecx, esi
call fcn.0049df5c
xor eax, eax
push eax
push edi
mov word [esi + 4], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4af5cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x4af5fc
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.004af2cd
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4af5f4
xor edi, edi
jmp 0x4af5fc
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 [0x4f6d6c]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x18]
or dword [eax + 0x1c], 0xffffffff
jmp 0x4af56a