Function at 0x412590
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa68
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, 0xc33350
push edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4125b0
sub eax, edx
sar eax, 1
je 0x412877
mov eax, 0xc36bfc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4125d0
sub eax, edx
sar eax, 1
je 0x412877
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.004238b0
add esp, 0xc
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x4a]
push ecx
mov word [ebp - 0x4c], ax
call fcn.004238b0
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.004238b0
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + 0xc33350]
mov word [ebp + eax - 0x254], cx
add eax, 2
test cx, cx
jne 0x412670
lea eax, [ebp - 0x254]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x412690
mov edx, dword [str.PCScript]
mov ecx, dword [0x43b6bc]
mov dword [eax], edx
mov edx, dword [0x43b6c0]
mov dword [eax + 4], ecx
mov ecx, dword [0x43b6c4]
mov dword [eax + 8], edx
mov edx, dword [0x43b6c8]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
call fcn.0040cb90
mov ebx, eax
lea eax, [ebp - 0x254]
push eax
call fcn.0041e06c
add esp, 4
cmp eax, 0xffffffff
jne 0x4126f2
lea ecx, [ebp - 0x254]
push ecx
call fcn.0041d598
add esp, 4
lea eax, [ebp - 0x4c]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4126f7
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 0x412710
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.0041e06c
add esp, 4
cmp eax, 0xffffffff
jne 0x41274f
lea eax, [ebp - 0x254]
push eax
call fcn.0041d598
add esp, 4
lea edi, [ebp - 0x254]
add edi, 0xfffffffe
jmp 0x412760
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412760
mov ecx, dword [0x43b6cc]
mov eax, 0xc36bfc
mov dword [edi], ecx
mov edx, eax
jmp 0x412780
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412780
lea edi, [ebp - 0x254]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x412796
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 0x4127c0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4127c0
mov edx, dword [0x43b6d0]
mov ecx, dword [0x43b6d4]
mov dword [eax], edx
mov dx, word [0x43b6d8]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
push 0
lea eax, [ebp - 0x254]
push eax
push 0xc38688
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x412831
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0xa54]
push 0x43b6dc
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa54]
push eax
call fcn.00403790
add esp, 0x14
jmp 0x41285c
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0xa54]
push 0x43b714
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa54]
add esp, 0xc
push eax
call fcn.00403790
add esp, 4
test ebx, ebx
je 0x412877
mov eax, 0xc33350
call fcn.0040ab50
push 0x43b1f8
call fcn.00403790
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcde
mov esp, ebp
pop ebp
ret