Function at 0x4042f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ac01
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x469058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 0x4c], edx
cmp dword [edx + 0x14], 8
jb 0x40432c
mov eax, dword [edx]
cmp dword [ecx + 0x14], 8
jb 0x404334
mov ecx, dword [ecx]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x404583
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
mov edx, esi
movq qword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x28]
call fcn.00418370
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
je 0x404556
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46b068]
cmp eax, dword [ecx + 4]
jle 0x404403
push 0x46b068
call fcn.0041cb48
add esp, 4
cmp dword [0x46b068], 0xffffffff
jne 0x404403
push 0x464d6d
push 0x464d6e
push ecx
push 0x464d6d
push 0x464d6e
push 0x464d70
push 0x464d70
push 0x464d70
push 0x464d6e
push 0x464d6d
sub esp, 8
mov byte [ebp - 4], 1
mov eax, esp
mov dword [eax], 0x464d78
mov dword [eax + 4], 0x16
call fcn.004062d0
push 0x43b820
call fcn.0041d02e
push 0x46b068
mov byte [ebp - 4], 0
call fcn.0041cafe
add esp, 0x38
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push ecx
lea edx, [ebp - 0x28]
movq qword [ebp - 0x1c], xmm0
lea ecx, [ebp - 0x1c]
call fcn.00401230
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov esi, dword [0x46b060]
sub eax, ecx
cmp dword [0x46b064], 0x10
mov dword [ebp - 0x48], ecx
mov ecx, 0x46b050
mov dword [ebp - 0x2c], eax
jb 0x40444d
mov edi, dword [0x46b050]
add esi, edi
jmp 0x404454
add esi, ecx
mov edi, 0x46b050
mov dword [ebp - 0x44], 0
xor eax, eax
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
mov eax, esi
mov dword [ebp - 0x30], 7
sub eax, edi
mov byte [ebp - 4], 2
push eax
call fcn.004045d0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 4
cmp edi, esi
je 0x4044a5
nop
movsx ax, byte [edi]
lea ecx, [ebp - 0x44]
movzx eax, ax
push eax
call fcn.004099d0
inc edi
cmp edi, esi
jne 0x404490
mov ecx, dword [ebp - 0x48]
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x30], 8
mov edx, dword [ebp - 0x34]
cmovae esi, dword [ebp - 0x44]
sub esp, 0xc
mov eax, esp
push edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x4c]
push esi
call fcn.00404090
mov ecx, dword [ebp - 0x30]
add esp, 0x14
cmp ecx, 8
jb 0x40450e
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404504
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4045a0
push ecx
push edx
call fcn.0041c9e4
add esp, 8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x404553
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x404534
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4045a5
push edx
push ecx
call fcn.0041c9e4
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x404583
mov edx, dword [ebp - 0x20]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x404579
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4045a5
push edx
push ecx
call fcn.0041c9e4
add esp, 8
xor al, al
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.0041c9a1
mov esp, ebp
pop ebp
ret
call fcn.004216ef
call fcn.004216ef
int3