Function at 0x411000
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0xb56ac8
push edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411020
sub eax, edx
sar eax, 1
je 0x4112d5
mov eax, 0xb59160
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411040
sub eax, edx
sar eax, 1
je 0x4112d5
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xa4e]
push edx
mov word [ebp - 0xa50], cx
call fcn.00422210
add esp, 0xc
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x46]
push ecx
mov word [ebp - 0x48], ax
call fcn.00422210
movzx edx, word [ebp - 0xa5a]
movzx eax, word [ebp - 0xa5e]
movzx ecx, word [ebp - 0xa60]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edx
push eax
push ecx
lea edx, [ebp - 0x48]
push str._04u__02u__02u
push edx
call ebx
add esp, 0x14
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x24e]
push ecx
mov word [ebp - 0x250], ax
call fcn.00422210
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0xb56ac8]
mov word [ebp + eax - 0x250], cx
add eax, 2
test cx, cx
jne 0x4110e1
lea eax, [ebp - 0x250]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x411101
mov edx, dword [str.PCScript]
mov ecx, dword [0x438e14]
mov dword [eax], edx
mov edx, dword [0x438e18]
mov dword [eax + 4], ecx
mov ecx, dword [0x438e1c]
mov dword [eax + 8], edx
mov edx, dword [0x438e20]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [ebp - 0x250]
push eax
call fcn.0041c99f
add esp, 4
cmp eax, 0xffffffff
jne 0x41115c
lea ecx, [ebp - 0x250]
push ecx
call fcn.0041bfc8
add esp, 4
lea eax, [ebp - 0x48]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411161
lea edi, [ebp - 0x250]
sub eax, edx
add edi, 0xfffffffe
jmp 0x411180
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x411180
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x250]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0041c99f
add esp, 4
cmp eax, 0xffffffff
jne 0x4111bf
lea eax, [ebp - 0x250]
push eax
call fcn.0041bfc8
add esp, 4
lea edi, [ebp - 0x250]
add edi, 0xfffffffe
jmp 0x4111d0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4111d0
mov ecx, dword [0x438e24]
mov eax, 0xb59160
mov dword [edi], ecx
mov edx, eax
jmp 0x4111f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4111f0
lea edi, [ebp - 0x250]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x411206
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 - 0x250]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x411230
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x411230
mov edx, dword [0x438e28]
mov ecx, dword [0x438e2c]
mov dword [eax], edx
mov dx, word [0x438e30]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
push 0
lea eax, [ebp - 0x250]
push eax
push 0xb5abe8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4112ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0xa50]
push 0x438e34
push edx
call ebx
lea eax, [ebp - 0xa50]
push eax
call fcn.00403790
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0xa50]
push 0x438e70
push edx
call ebx
lea eax, [ebp - 0xa50]
add esp, 0xc
push eax
call fcn.00403790
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041a70e
mov esp, ebp
pop ebp
ret