Function at 0x4eb068
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x57
push 0
push 0
dec ecx
jne 0x4eb071
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
mov eax, dword [ebp - 8]
call fcn.00405b5c
mov eax, dword [ebp + 8]
call fcn.00405b5c
lea eax, [ebp - 0x30]
mov edx, dword [0x4a74e0]
call fcn.0040649c
xor eax, eax
push ebp
push 0x4eb7a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x31], 1
mov ecx, 0x4eb7c0
mov dl, 1
mov eax, dword [0x4ee898]
call fcn.004ee900
mov dword [ebp - 0x40], eax
mov ecx, 0x4eb7d8
mov dl, 1
mov eax, dword [0x4ee898]
call fcn.004ee900
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx]
mov esi, dword [eax]
xor ebx, ebx
call fcn.004ed450
xor eax, eax
push ebp
push 0x4eb74a
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4eb13c
lea edi, [ebx + ebx*2]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + edi*8 + 4]
lea edx, [ebp - 0x254]
call fcn.004bda70
mov eax, dword [ebp - 0x254]
mov edx, dword [ebp - 4]
call fcn.00405b04
jne 0x4eb13b
lea eax, [ebp - 0x30]
mov edx, dword [esi + 0x50]
lea edx, [edx + edi*8]
mov ecx, dword [0x4a74e0]
call fcn.004066c8
inc ebx
mov eax, dword [esi + 0x50]
call fcn.00406c70
cmp ebx, eax
jl 0x4eb102
mov eax, dword [esi + 0x50]
call fcn.00406c70
cmp ebx, eax
jle 0x4eb15e
call fcn.00405100
jmp 0x4eb751
xor ebx, ebx
lea ecx, [ebp - 0x258]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004db56c
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x18]
call fcn.004bda70
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4eb6c6
xor ebx, ebx
lea ecx, [ebp - 0x25c]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004db56c
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x14]
call fcn.004bda70
jmp 0x4eb67c
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdd24
push 0x201
lea eax, [ebp - 0x242]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x4eb1ea
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x242]
mov ecx, 0x201
call fcn.0040594c
jmp 0x4eb1f8
mov byte [ebp - 0x31], 0
call fcn.00405100
jmp 0x4eb751
lea ecx, [ebp - 0x260]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
mov edx, dword [ebp - 0x260]
lea eax, [ebp - 0x10]
call fcn.00405774
push 0x20
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.0040af30
test al, al
jne 0x4eb3cd
push 0x20
lea ecx, [ebp - 0x264]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x264]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x26c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x26c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x268]
call fcn.004058d4
mov eax, dword [ebp - 0x268]
push eax
lea ecx, [ebp - 0x274]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
call fcn.004bdd24
mov eax, dword [ebp - 0x274]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x270]
call fcn.004058d4
mov eax, dword [ebp - 0x270]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4eb2ea
push 0x20
lea ecx, [ebp - 0x278]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x278]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4eb3cd
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
call fcn.00405b04
je 0x4eb3cd
mov eax, dword [ebp + 8]
call fcn.0040af54
test al, al
je 0x4eb3cd
push 0x20
lea ecx, [ebp - 0x27c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x27c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x284]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x284]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x280]
call fcn.004058d4
mov eax, dword [ebp - 0x280]
push eax
lea ecx, [ebp - 0x28c]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
call fcn.004bdd24
mov eax, dword [ebp - 0x28c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x288]
call fcn.004058d4
mov eax, dword [ebp - 0x288]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4eb3cd
push 0x20
lea ecx, [ebp - 0x290]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdd24
mov eax, dword [ebp - 0x290]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
je 0x4eb3fc
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
je 0x4eb65d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004bdfbc
test al, al
je 0x4eb65d
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4eb4e4
mov eax, dword [ebp - 0x3c]
call fcn.004eea9c
test al, al
je 0x4eb4e4
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x10]
call fcn.004edd60
test al, al
jne 0x4eb43f
call fcn.004bd828
sub al, 5
je 0x4eb43f
sub al, 2
je 0x4eb43f
sub al, 2
jne 0x4eb4e4
mov eax, dword [ebp - 0x40]
call fcn.004eab80
call fcn.004ee068
test al, al
jne 0x4eb45a
mov eax, dword [ebp - 0x3c]
call fcn.004eee8c
jmp 0x4eb474
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
call fcn.004eaa28
test al, al
je 0x4eb474
mov eax, dword [ebp - 0x3c]
call fcn.004eee8c
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
xor edi, edi
jmp 0x4eb48c
push 0x64
call sub.kernel32.dll_Sleep_1
inc edi
mov eax, dword [ebp - 0x3c]
call fcn.004eeab4
test al, al
jne 0x4eb49d
cmp edi, 0x64
jl 0x4eb484
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
xor edi, edi
jmp 0x4eb4b5
push 0x64
call sub.kernel32.dll_Sleep_1
inc edi
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x10]
call fcn.004edd60
test al, al
jne 0x4eb4d5
call fcn.004bd828
sub al, 5
je 0x4eb4d5
sub al, 2
je 0x4eb4d5
sub al, 2
jne 0x4eb4e4
cmp edi, 0x64
jge 0x4eb4e4
call fcn.004ed884
cmp eax, 1
jb 0x4eb4ad
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405b6c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4eb65d
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x20
je 0x4eb599
cmp dword [ebp - 0x38], 5
je 0x4eb599
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x298]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4eb7e8
call fcn.00481428
mov eax, dword [ebp - 0x298]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 0x2ac], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x2a4], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 0x29c], 0xb
lea edx, [ebp - 0x2b0]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x294]
call fcn.00448c24
jmp 0x4eb65d
mov eax, dword [0x4f5628]
mov byte [eax], 1
mov eax, dword [0x4f5390]
cmp byte [eax], 1
je 0x4eb5c7
mov eax, dword [0x4f5390]
cmp byte [eax], 2
jne 0x4eb5bf
mov eax, dword [0x4f5390]
mov byte [eax], 5
jmp 0x4eb5c7
mov eax, dword [0x4f5390]
mov byte [eax], 4
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004e003c
test al, al
jne 0x4eb65d
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2b8]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4eb7e8
pop eax
call fcn.00481428
mov eax, dword [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 0x2ac], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x2a4], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 0x29c], 0xb
lea edx, [ebp - 0x2b0]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2b4]
call fcn.00448c24
inc ebx
lea ecx, [ebp - 0x2bc]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004db56c
mov eax, dword [ebp - 0x2bc]
lea edx, [ebp - 0x14]
call fcn.004bda70
cmp dword [ebp - 0x14], 0
jne 0x4eb1b2
mov eax, dword [ebp - 0x3c]
call fcn.004eeab4
test al, al
je 0x4eb6c6
mov eax, dword [ebp - 0x3c]
call fcn.004ef010
test al, al
jne 0x4eb6c6
lea ecx, [ebp - 0x2c0]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4eb810
call fcn.00481428
mov eax, dword [ebp - 0x2c0]
call fcn.00448c24
mov eax, dword [ebp - 0x2c]
call fcn.00405b6c
mov dword [ebp - 0x250], eax
mov eax, dword [esi + 0x1c]
call fcn.00405b6c
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24]
call fcn.00405b6c
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x250]
call fcn.004ead5c
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
xor ebx, ebx
jmp 0x4eb716
push 0xfa
call sub.kernel32.dll_Sleep_1
inc ebx
mov eax, dword [ebp - 0x3c]
call fcn.004eea9c
test al, al
jne 0x4eb727
cmp ebx, 0x28
jl 0x4eb70b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb751
call fcn.004ed4c4
mov eax, dword [ebp - 0x40]
call fcn.004047a0
mov eax, dword [ebp - 0x3c]
call fcn.004047a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb7a9
lea eax, [ebp - 0x2c0]
mov edx, 4
call fcn.00405700
lea eax, [ebp - 0x298]
mov edx, 0x12
call fcn.00405700
lea eax, [ebp - 0x30]
mov edx, dword [0x4a74e0]
call fcn.0040656c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405700
lea eax, [ebp + 8]
call fcn.004056dc
ret