Function at 0x4d6978
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4d6981
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4d6ca2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004049a8
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov eax, dword [ebp + 0xc]
call fcn.004049a8
mov eax, ebx
call fcn.00409ad0
test al, al
je 0x4d6c7f
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4cba90]
call fcn.004d057c
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x418804]
call fcn.00403aa4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d6c78
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4d6c37
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f2e14], 0
je 0x4d6a23
mov eax, dword [ebp - 8]
mov edx, dword [0x4f2e14]
mov dword [eax + 0x7c], edx
mov dword [eax + 0x78], 0x4d7258
mov edx, ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 8]
call fcn.004d1c0c
mov eax, dword [ebp - 8]
mov byte [eax + 0x40], 1
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00409ef0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004d0ca0
mov eax, dword [ebp - 8]
mov byte [eax + 0x39], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x50], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x5c], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x3a], 1
mov eax, dword [ebp - 8]
call fcn.004d1684
mov ecx, esi
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004d1070
mov eax, dword [ebp - 8]
call fcn.004d2b40
mov esi, eax
dec esi
test esi, esi
jl 0x4d6b23
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004d0fc4
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x4efcf4]
mov eax, dword [eax]
call fcn.0040a00c
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.004090ac
test al, al
jne 0x4d6af7
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004d0fc4
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00402cbc
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040a00c
mov edx, dword [ebp - 0x24]
pop eax
call fcn.004090ac
test al, al
je 0x4d6b1b
mov cl, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004d15c0
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004d0fc4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec esi
jne 0x4d6a97
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d6c27
mov edx, dword [0x4ef91c]
mov edx, dword [edx]
lea eax, [ebp - 0x34]
mov ecx, 0x4d6cbc
call fcn.00404cd0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00409ef0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.004d0ca0
mov eax, dword [ebp - 8]
call fcn.004d176c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4d6c08
inc esi
xor ebx, ebx
mov eax, dword [0x4ef91c]
push dword [eax]
push 0x4d6cbc
lea ecx, [ebp - 0x38]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d44
mov eax, dword [ebp - 0xc]
call fcn.00409ad0
test al, al
je 0x4d6c00
mov eax, dword [ebp - 0xc]
call fcn.004d6824
push 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0xc]
call fcn.0040a00c
mov ecx, dword [ebp - 0x44]
mov edx, dword [0x4efa94]
mov edx, dword [edx]
lea eax, [ebp - 0x40]
call fcn.00404cd0
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
mov edx, 0x4d6ccc
call fcn.00409e5c
mov eax, dword [ebp - 0x3c]
call fcn.00404e84
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404e84
push eax
call sub.kernel32.dll_CopyFileA
inc ebx
dec esi
jne 0x4d6b7c
mov edx, dword [0x4ef91c]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, 0x4d6cbc
call fcn.00404cd0
mov eax, dword [ebp - 0x48]
mov dl, 1
call fcn.004d6e1c
mov eax, dword [ebp - 4]
mov byte [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d6c5a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6c7f
mov eax, dword [ebp - 0x10]
call fcn.00403ad4
mov eax, dword [ebp - 8]
call fcn.00403ad4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6ca9
lea eax, [ebp - 0x48]
mov edx, 0xe
call fcn.004049cc
lea eax, [ebp - 0xc]
call fcn.004049a8
ret