Function at 0x412940
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d1f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x65c], eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x658], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00405fa0
push 0x60e
lea eax, [ebp - 0xc6c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00417b20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x85e]
push ecx
lea ecx, [ebp - 0xa5e]
push ecx
lea ecx, [ebp - 0xc6c]
push ecx
lea ecx, [ebp - 0xa64]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0041b5a1
mov ecx, 0x183
lea esi, [ebp - 0xc6c]
lea edi, [ebp - 0x650]
rep movsd dword es:[edi], dword [esi]
push 0x43ad60
lea eax, [ebp - 0x242]
push 0x100
push eax
movsw word es:[edi], word [esi]
call fcn.0041b7af
add esp, 0x30
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x650]
push eax
call fcn.004064a0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x412a4e
mov ecx, eax
call fcn.004040b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x412a88
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412a7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412bfc
push edx
push ecx
call fcn.004152ff
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0041999e
add esp, 8
test eax, eax
jne 0x412b3c
push str.Working
lea eax, [ebp - 0x442]
push 0x100
push eax
call fcn.0041b81e
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x650]
push eax
call fcn.004064a0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x412b02
mov ecx, eax
call fcn.004040b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x412b3c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412b32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c01
push edx
push ecx
call fcn.004152ff
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x658]
cmovae eax, dword [ebp - 0x28]
cmp dword [ecx + 0x14], 8
jb 0x412b55
mov ecx, dword [ecx]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x412b8a
mov eax, dword [ebp - 0x654]
movups xmm0, xmmword [ebp - 0x28]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
jmp 0x412be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x654]
xor eax, eax
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x412bdf
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412bd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c06
push edx
push ecx
call fcn.004152ff
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
int3