Function at 0x1000afa0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004095b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x10062070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x294], ax
lea eax, [ebp - 0x292]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x10065ca0]
add esp, 0xc
test al, 1
jne 0x1000b00d
or eax, 1
push 0x10045810
mov dword [0x10065ca0], eax
call fcn.1003daa7
add esp, 4
sub esp, 8
lea eax, [ebp - 0x294]
push eax
call fcn.1001b060
push 0x100470bc
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x10065ca0]
test al, 1
jne 0x1000b04c
or eax, 1
push 0x10045810
mov dword [0x10065ca0], eax
call fcn.1003daa7
add esp, 4
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000b0a7
lea eax, [ebp - 0x294]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x1000b0a7
mov eax, dword [0x10066674]
test al, 1
jne 0x1000b08e
or eax, 1
push 0x10045980
mov dword [0x10066674], eax
call fcn.1003daa7
add esp, 4
lea eax, [ebp - 0x294]
push eax
push str.Failed_to_create_directory_:__s
push 0x10066670
call fcn.10024090
add esp, 0xc
xor eax, eax
push 0x76
push eax
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0x8a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x1000b0cc
mov edi, dword [esi]
jmp 0x1000b0ce
mov edi, esi
mov eax, dword [0x10065ca0]
test al, 1
jne 0x1000b0ec
or eax, 1
push 0x10045810
mov dword [0x10065ca0], eax
call fcn.1003daa7
add esp, 4
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000b0f1
sub edx, ecx
sar edx, 1
je 0x1000b110
lea eax, [ebp - 0x8c]
push eax
mov ecx, edi
call fcn.1001b150
xor eax, eax
mov dword [ebp - 0x4b8], 7
mov dword [ebp - 0x4bc], 0
mov word [ebp - 0x4cc], ax
cmp word [ebp - 0x8c], ax
jne 0x1000b13a
xor ecx, ecx
jmp 0x1000b152
lea ecx, [ebp - 0x8c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b143
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.1000dd10
push str..ico
lea edx, [ebp - 0x4cc]
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 4], 0
call fcn.1000c610
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x4b8], 8
jb 0x1000b19f
push dword [ebp - 0x4cc]
call edi
add esp, 4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x49c], ax
lea eax, [ebp - 0x49a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0x4a0], 8
lea eax, [ebp - 0x4b4]
cmovae eax, dword [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 0x14], 8
jb 0x1000b1ee
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x49c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete bl
cmp dword [ebp - 0x4a0], 8
jb 0x1000b218
push dword [ebp - 0x4b4]
call edi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003d966
mov esp, ebp
pop ebp
ret 4