Function at 0x412b3c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov eax, 0x490f4c
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
call fcn.004696b8
mov dword [ebp - 0x34], 2
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00474b80
inc dword [ebp - 0x34]
lea edx, [ebp - 8]
mov word [ebp - 0x40], 8
lea eax, [ebp - 8]
call fcn.00474b80
inc dword [ebp - 0x34]
xor edx, edx
mov word [ebp - 0x40], 0x14
mov dword [ebp - 0xc], edx
inc dword [ebp - 0x34]
mov word [ebp - 0x40], 8
mov word [ebp - 0x40], 0x20
mov word [ebp - 0x40], 0x2c
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x412baa
mov edx, dword [ebp - 8]
jmp 0x412baf
mov edx, 0x48c90f
lea eax, [ebp - 0x10]
call fcn.00474b48
inc dword [ebp - 0x34]
mov eax, dword [eax]
call fcn.0045f8bc
push eax
dec dword [ebp - 0x34]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x412bf3
push 0x80
mov eax, dword [ebp - 8]
test eax, eax
je 0x412be8
mov edx, dword [ebp - 8]
jmp 0x412bed
mov edx, 0x48c910
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x412c01
mov ecx, dword [ebp - 8]
jmp 0x412c06
mov ecx, 0x48c912
push ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x412c13
mov edx, dword [ebp - 4]
jmp 0x412c18
mov edx, 0x48c911
push edx
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
jne 0x412c9c
mov word [ebp - 0x40], 0x38
mov edx, 0x48c913
lea eax, [ebp - 0x14]
call fcn.00474b48
inc dword [ebp - 0x34]
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.00474d74
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x40], 0x44
push eax
lea eax, [ebp - 0x14]
dec dword [ebp - 0x34]
call fcn.00474d44
dec dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00474d44
pop eax
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
jmp 0x412f0f
push 0x80
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x412cad
mov eax, dword [ebp - 8]
jmp 0x412cb2
mov eax, 0x48c919
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0045f784
mov esi, eax
cmp esi, 0xffffffff
jne 0x412d43
mov word [ebp - 0x40], 0x50
mov edx, 0x48c91a
lea eax, [ebp - 0x18]
call fcn.00474b48
inc dword [ebp - 0x34]
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 8]
call fcn.00474d74
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x40], 0x5c
push eax
lea eax, [ebp - 0x18]
dec dword [ebp - 0x34]
call fcn.00474d44
dec dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00474d44
pop eax
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
jmp 0x412f0f
mov dword [ebp - 0x54], 0xfffffffc
mov ecx, 2
mov edx, dword [ebp - 0x54]
mov eax, esi
call fcn.0045f840
push 5
call fcn.004689a4
pop ecx
mov ebx, eax
mov ecx, 4
mov edx, ebx
mov eax, esi
call fcn.0045f7e8
mov word [ebp - 0x40], 0x68
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00474b48
inc dword [ebp - 0x34]
xor edx, edx
mov eax, dword [eax]
call fcn.0045f76c
mov edi, eax
dec dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00474d44
push ebx
call fcn.0046894c
pop ecx
test edi, edi
jle 0x412e35
sub dword [ebp - 0x54], edi
mov ecx, 2
mov edx, dword [ebp - 0x54]
mov eax, esi
call fcn.0045f840
lea ecx, [edi + 1]
push ecx
call fcn.004689a4
pop ecx
mov ebx, eax
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.0045f7e8
mov word [ebp - 0x40], 0x74
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00474b48
inc dword [ebp - 0x34]
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
xor eax, eax
push ecx
mov dword [ebp - 0x24], eax
push edx
inc dword [ebp - 0x34]
call fcn.0040b3e8
add esp, 8
lea edx, [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00474d74
dec dword [ebp - 0x34]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x34]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00474d44
push ebx
call fcn.0046894c
pop ecx
jmp 0x412e66
mov word [ebp - 0x40], 0x80
mov edx, 0x48c920
lea eax, [ebp - 0x28]
call fcn.00474b48
inc dword [ebp - 0x34]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0xc]
call fcn.00474d74
dec dword [ebp - 0x34]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00474d44
mov eax, esi
call fcn.0045f84c
mov word [ebp - 0x40], 8
jmp 0x412eb1
mov word [ebp - 0x40], 0x98
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.00474d74
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x40], 0xa4
push eax
lea eax, [ebp - 0xc]
dec dword [ebp - 0x34]
call fcn.00474d44
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00474d44
pop eax
mov word [ebp - 0x40], 0x98
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4