Function at 0x414760
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa68
mov eax, dword [0x446044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, 0xc9aa38
push edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414780
sub eax, edx
sar eax, 1
je 0x414a47
mov eax, 0xc9e2f0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4147a0
sub eax, edx
sar eax, 1
je 0x414a47
lea eax, [ebp - 0xa64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xa52]
push edx
mov word [ebp - 0xa54], cx
call fcn.00426670
add esp, 0xc
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x4a]
push ecx
mov word [ebp - 0x4c], ax
call fcn.00426670
movzx edx, word [ebp - 0xa5e]
movzx eax, word [ebp - 0xa62]
movzx ecx, word [ebp - 0xa64]
add esp, 0xc
push edx
push eax
push ecx
lea edx, [ebp - 0x4c]
push str._04u__02u__02u
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x252]
push ecx
mov word [ebp - 0x254], ax
call fcn.00426670
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + 0xc9aa38]
mov word [ebp + eax - 0x254], cx
add eax, 2
test cx, cx
jne 0x414840
lea eax, [ebp - 0x254]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x414860
mov edx, dword [str.PCScript]
mov ecx, dword [0x43f93c]
mov dword [eax], edx
mov edx, dword [0x43f940]
mov dword [eax + 4], ecx
mov ecx, dword [0x43f944]
mov dword [eax + 8], edx
mov edx, dword [0x43f948]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
call fcn.0040e740
mov ebx, eax
lea eax, [ebp - 0x254]
push eax
call fcn.00420d59
add esp, 4
cmp eax, 0xffffffff
jne 0x4148c2
lea ecx, [ebp - 0x254]
push ecx
call fcn.00420106
add esp, 4
lea eax, [ebp - 0x4c]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4148c7
lea edi, [ebp - 0x254]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4148e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x254]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00420d59
add esp, 4
cmp eax, 0xffffffff
jne 0x41491f
lea eax, [ebp - 0x254]
push eax
call fcn.00420106
add esp, 4
lea edi, [ebp - 0x254]
add edi, 0xfffffffe
jmp 0x414930
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x414930
mov ecx, dword [0x43f94c]
mov eax, 0xc9e2f0
mov dword [edi], ecx
mov edx, eax
jmp 0x414950
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414950
lea edi, [ebp - 0x254]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x414966
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x254]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x414990
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x414990
mov edx, dword [0x43f950]
mov ecx, dword [0x43f954]
mov dword [eax], edx
mov dx, word [0x43f958]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
push 0
lea eax, [ebp - 0x254]
push eax
push 0xc9fd78
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x414a01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0xa54]
push 0x43f95c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa54]
push eax
call fcn.00403960
add esp, 0x14
jmp 0x414a2c
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0xa54]
push 0x43f994
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa54]
add esp, 0xc
push eax
call fcn.00403960
add esp, 4
test ebx, ebx
je 0x414a47
mov eax, 0xc9aa38
call fcn.0040c700
push 0x43f3b0
call fcn.00403960
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e7be
mov esp, ebp
pop ebp
ret