Function at 0x4ae730
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov eax, 0x10a60
call fcn.006ab750
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10a70]
push edi
push 4
push 0x6f1058
xor ebp, ebp
push esi
mov word [esp + 0xa7c], bp
call fcn.0069cfe9
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x4ae795
lea edx, [eax + 2]
jmp 0x4ae770
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4ae770
sub eax, edx
sar eax, 1
lea ebx, [eax - 4]
mov edx, esi
lea eax, [ebx + 5]
lea esi, [esp + 0xa70]
call fcn.00496c70
jmp 0x4ae7fc
call fcn.004aebb0
test al, al
jne 0x4aeb35
cmp word [esi], 0x5c
jne 0x4ae7c7
cmp word [esi + 2], 0x5c
jne 0x4ae7c7
push 0x7fff
lea eax, [esp + 0xa74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, eax
jmp 0x4ae7fc
push esi
push str.__s
mov esi, 0x108
lea edi, [esp + 0x868]
call fcn.004af0d0
add esp, 8
push 0x7fff
lea ecx, [esp + 0xa74]
push ecx
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, eax
sub ebx, 4
cmp ebx, 0x7fff
ja 0x4aea9d
cmp ebx, 0x104
jb 0x4aeb35
lea edi, [esp + 0x248]
call fcn.004aec50
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ae838
push ebp
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [esp + 0x248]
lea esi, [esp + 0x34]
call fcn.004805c0
push 0x5c
mov eax, esi
call fcn.004808e0
xor esi, esi
lea edx, [ebx + 3]
test edx, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
jl 0x4ae8c8
jmp 0x4ae870
movzx eax, word [esp + edx*2 + 0xa70]
cmp ax, 0x5c
je 0x4ae88b
cmp ax, 0x2f
je 0x4ae88b
sub edx, 1
jns 0x4ae870
jmp 0x4ae8c8
lea eax, [esp + 0xa70]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae895
mov ecx, ebx
sub ecx, edx
add edx, 1
push edx
sub eax, esi
lea edx, [esp + 0xa74]
sar eax, 1
add ecx, 3
push edx
lea esi, [esp + 0x18]
call fcn.0048a5e0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea edi, [esp + 0x450]
call fcn.004ad1c0
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae8e0
sub eax, edx
sar eax, 1
sub ebp, eax
mov eax, ebp
cmp eax, 0x14
jbe 0x4ae8fd
mov eax, 0x14
mov dword [esp + 0x14], eax
mov word [esi + eax*2], 0
lea eax, [esp + 0x450]
push eax
lea eax, [esp + 0x14]
call fcn.00480990
lea edi, [esp + 0x34]
lea esi, [esp + 0x28]
call fcn.00480560
lea edi, [esp + 0x10]
mov eax, esi
call fcn.00480a00
mov edi, dword [esp + 0x28]
test edi, edi
mov eax, edi
jne 0x4ae93f
mov eax, 0x6bc0cc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4aeac4
mov edx, dword [esp + 0x10]
test edx, edx
mov ebp, 1
jne 0x4ae961
mov edx, 0x6bc0cc
lea esi, [esp + 0x40]
call fcn.004ad160
mov dx, word [esp + 0x40]
xor ecx, ecx
xor esi, esi
test dx, dx
movzx eax, dx
je 0x4ae99d
jmp 0x4ae980
cmp ax, 0x2e
jne 0x4ae988
mov esi, ecx
add ecx, ebp
movzx eax, word [esp + ecx*2 + 0x40]
test ax, ax
jne 0x4ae980
test esi, esi
je 0x4ae99d
mov word [esp + esi*2 + 0x40], ax
mov ebx, dword [esp + 0x38]
xor edi, edi
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
jmp 0x4ae9bd
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test edi, edi
je 0x4ae9cc
xor esi, esi
mov word [edi], 0
mov dword [esp + 0x20], esi
test ebx, ebx
je 0x4aea19
lea eax, [ebx + esi + 1]
cmp eax, ecx
jbe 0x4ae9f8
add eax, ecx
cmp eax, 0x104
jae 0x4ae9e6
mov eax, 0x104
push eax
lea esi, [esp + 0x20]
call fcn.00480af0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
lea ecx, [ebx + ebx]
push ecx
push edx
lea eax, [edi + esi*2]
push eax
call fcn.006a4bd0
add esp, 0xc
add esi, ebx
mov dword [esp + 0x20], esi
mov word [edi + esi*2], 0
lea ecx, [esp + 0x450]
push ecx
push ebp
lea edx, [esp + 0x48]
push edx
push str._s__d_s
mov esi, 0x104
lea edi, [esp + 0x668]
call fcn.004af0d0
add esp, 0x10
mov eax, edi
push eax
lea eax, [esp + 0x20]
add ebp, 1
call fcn.00480990
mov edi, dword [esp + 0x1c]
test edi, edi
mov eax, edi
jne 0x4aea5e
mov eax, 0x6bc0cc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ae9b5
cmp ebp, 0x2710
jb 0x4aeaac
push edi
call fcn.0069c8fa
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0069c8fa
mov edx, dword [esp + 0x18]
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0x40]
push eax
call fcn.0069c8fa
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10a60
ret 4
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0069c8fa
push 0
mov dword [esp + 0x30], edi
call fcn.0069c8fa
add esp, 8
test edi, edi
mov eax, edi
jne 0x4aeacf
mov eax, 0x6bc0cc
mov esi, dword [esp + 0x10a74]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test edi, edi
mov edx, edi
jne 0x4aeaeb
mov edx, 0x6bc0cc
movzx eax, word [edx]
xor ecx, ecx
add edx, 2
test ax, ax
je 0x4aeb12
cmp ecx, 0x103
jae 0x4aeb12
mov word [esi + ecx*2], ax
movzx eax, word [edx]
add ecx, 1
add edx, 2
test ax, ax
jne 0x4aeaf8
push edi
mov word [esi + ecx*2], 0
call fcn.0069c8fa
mov edx, dword [esp + 0x14]
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0x3c]
push eax
call fcn.0069c8fa
add esp, 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10a60
ret 4