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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11417ee
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x10462c8
lea eax, [ebp - 0x120]
push eax
mov edi, ecx
push 0x1046248
lea ecx, [ebp - 0x11c]
push 2
push ecx
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x120], ebx
call fcn.01075110
add esp, 0x18
mov edx, dword [0x115f550]
push edx
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], ebx
call fcn.0107f6b0
mov eax, dword [0x115f544]
push eax
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.0107f6b0
mov ecx, dword [0x115f548]
push ecx
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 2
call fcn.0107f6b0
mov edx, dword [0x115f554]
push edx
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 3
call fcn.0107f6b0
mov eax, dword [edi + 0x14]
mov eax, dword [eax - 0xc]
cmp eax, ebx
lea esi, [edi + 0x14]
mov byte [ebp - 4], 4
je 0x10f4aa1
mov ecx, dword [edi + 4]
cmp dword [ecx - 0xc], ebx
je 0x10f4aa1
lea ebx, [ebp - 0x148]
mov dword [ebp - 0x12c], 4
jmp 0x10f47d6
mov edi, dword [ebp - 0x128]
mov edx, dword [0x1161d94]
mov eax, dword [edx + 0xc]
mov ecx, 0x1161d94
call eax
add eax, 0x10
mov dword [ebp - 0x130], eax
mov edx, dword [0x1161d94]
mov eax, dword [edx + 0xc]
mov ecx, 0x1161d94
mov byte [ebp - 4], 5
call eax
add eax, 0x10
mov dword [ebp - 0x124], eax
push ebx
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 0x138]
push ecx
mov byte [ebp - 4], 6
call fcn.0109e970
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 7
call fcn.0109c210
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10f4857
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 0x134]
push ecx
call fcn.0109e970
push eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 8
call fcn.0109c210
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10f489e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x130]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10f48ec
call fcn.01127f00
test al, al
je 0x10f48cd
push edi
push 0x1046208
push 0x1046188
push 3
call fcn.01128b70
add esp, 0x10
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10f4a59
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10f4934
call fcn.01127f00
test al, al
je 0x10f48cd
push edi
push 0x1046148
push 0x10460c8
push 3
call fcn.01128b70
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10f4a59
mov esi, dword [ebp - 0x124]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10f497c
call fcn.01127f00
test al, al
je 0x10f4963
push esi
push 0x1046080
push 0x1046000
push 3
call fcn.01128b70
add esp, 0x10
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10f4a59
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10f49be
call fcn.01127f00
test al, al
je 0x10f4963
push esi
push 0x1046148
push 0x1045f80
push 3
call fcn.01128b70
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10f4a59
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10f4a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10f49de
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10f49ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x10f4a1a
mov ecx, dword [ebp - 0x120]
push ecx
push esi
push edi
push 0x1045f30
push 0x1045eb0
push 0
call fcn.01128b70
add esp, 0x18
mov dword [ebp - 0x120], 0
jmp 0x10f4a45
call fcn.01127f00
test al, al
je 0x10f4a45
push esi
push edi
push 0x1045e78
push 0x1045df8
push 0
call fcn.01128b70
add esp, 0x14
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10f4a65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10f4a85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 4
sub dword [ebp - 0x12c], 1
jne 0x10f47d0
mov ecx, dword [ebp - 0x128]
mov byte [ecx + 2], 0
jmp 0x10f4ac5
call fcn.01127f00
test al, al
je 0x10f4ac5
mov edx, dword [edi + 4]
mov eax, dword [esi]
push edx
push eax
push 0x1045d00
push 0x1045c80
push 3
call fcn.01128b70
add esp, 0x14
mov esi, dword [ebp - 0x120]
push fcn.0111cdb0
push 4
push 4
lea ecx, [ebp - 0x148]
push ecx
mov byte [ebp - 4], 0
call fcn.01083987
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
call fcn.01075230
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret