Function at 0x4e9c30
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 0x4e9c39
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 [0x4baf40]
call fcn.0040649c
xor eax, eax
push ebp
push 0x4ea36a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x31], 1
mov ecx, 0x4ea388
mov dl, 1
mov eax, dword [0x4ed344]
call fcn.004ed3ac
mov dword [ebp - 0x40], eax
mov ecx, 0x4ea3a0
mov dl, 1
mov eax, dword [0x4ed344]
call fcn.004ed3ac
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx]
mov esi, dword [eax]
xor ebx, ebx
call fcn.004ebf2c
xor eax, eax
push ebp
push 0x4ea312
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4e9d04
lea edi, [ebx + ebx*2]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + edi*8 + 4]
lea edx, [ebp - 0x254]
call fcn.004bda44
mov eax, dword [ebp - 0x254]
mov edx, dword [ebp - 4]
call fcn.00405b04
jne 0x4e9d03
lea eax, [ebp - 0x30]
mov edx, dword [esi + 0x50]
lea edx, [edx + edi*8]
mov ecx, dword [0x4baf40]
call fcn.004066c8
inc ebx
mov eax, dword [esi + 0x50]
call fcn.00406c70
cmp ebx, eax
jl 0x4e9cca
mov eax, dword [esi + 0x50]
call fcn.00406c70
cmp ebx, eax
jle 0x4e9d26
call fcn.00405100
jmp 0x4ea319
xor ebx, ebx
lea ecx, [ebp - 0x258]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004da8c0
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x18]
call fcn.004bda44
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4ea28e
xor ebx, ebx
lea ecx, [ebp - 0x25c]
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.004da8c0
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x14]
call fcn.004bda44
jmp 0x4ea244
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
push 0x201
lea eax, [ebp - 0x242]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x4e9db2
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x242]
mov ecx, 0x201
call fcn.0040594c
jmp 0x4e9dc0
mov byte [ebp - 0x31], 0
call fcn.00405100
jmp 0x4ea319
lea ecx, [ebp - 0x260]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
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 0x4e9f95
push 0x20
lea ecx, [ebp - 0x264]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
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.004bdcb8
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.004bdcb8
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.004def40
test al, al
je 0x4e9eb2
push 0x20
lea ecx, [ebp - 0x278]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov eax, dword [ebp - 0x278]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4e9f95
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
call fcn.00405b04
je 0x4e9f95
mov eax, dword [ebp + 8]
call fcn.0040af54
test al, al
je 0x4e9f95
push 0x20
lea ecx, [ebp - 0x27c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdcb8
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.004bdcb8
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.004bdcb8
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.004def40
test al, al
je 0x4e9f95
push 0x20
lea ecx, [ebp - 0x290]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bdcb8
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 0x4e9fc4
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
je 0x4ea225
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004bdf50
test al, al
je 0x4ea225
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4ea0ac
mov eax, dword [ebp - 0x3c]
call fcn.004ed548
test al, al
je 0x4ea0ac
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x10]
call fcn.004ec80c
test al, al
jne 0x4ea007
call fcn.004bd7fc
sub al, 5
je 0x4ea007
sub al, 2
je 0x4ea007
sub al, 2
jne 0x4ea0ac
mov eax, dword [ebp - 0x40]
call fcn.004e9748
call fcn.004ecb14
test al, al
jne 0x4ea022
mov eax, dword [ebp - 0x3c]
call fcn.004ed6d0
jmp 0x4ea03c
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
call fcn.004e95ec
test al, al
je 0x4ea03c
mov eax, dword [ebp - 0x3c]
call fcn.004ed6d0
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
xor edi, edi
jmp 0x4ea054
push 0x64
call sub.kernel32.dll_Sleep_1
inc edi
mov eax, dword [ebp - 0x3c]
call fcn.004ed560
test al, al
jne 0x4ea065
cmp edi, 0x64
jl 0x4ea04c
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
xor edi, edi
jmp 0x4ea07d
push 0x64
call sub.kernel32.dll_Sleep_1
inc edi
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x10]
call fcn.004ec80c
test al, al
jne 0x4ea09d
call fcn.004bd7fc
sub al, 5
je 0x4ea09d
sub al, 2
je 0x4ea09d
sub al, 2
jne 0x4ea0ac
cmp edi, 0x64
jge 0x4ea0ac
call fcn.004ec360
cmp eax, 1
jb 0x4ea075
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 0x4ea225
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x20
je 0x4ea161
cmp dword [ebp - 0x38], 5
je 0x4ea161
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x298]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ea3b0
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 0x4ea225
mov eax, dword [0x4f3618]
mov byte [eax], 1
mov eax, dword [0x4f3380]
cmp byte [eax], 1
je 0x4ea18f
mov eax, dword [0x4f3380]
cmp byte [eax], 2
jne 0x4ea187
mov eax, dword [0x4f3380]
mov byte [eax], 5
jmp 0x4ea18f
mov eax, dword [0x4f3380]
mov byte [eax], 4
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004def40
test al, al
jne 0x4ea225
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2b8]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4ea3b0
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.004da8c0
mov eax, dword [ebp - 0x2bc]
lea edx, [ebp - 0x14]
call fcn.004bda44
cmp dword [ebp - 0x14], 0
jne 0x4e9d7a
mov eax, dword [ebp - 0x3c]
call fcn.004ed560
test al, al
je 0x4ea28e
mov eax, dword [ebp - 0x3c]
call fcn.004ed914
test al, al
jne 0x4ea28e
lea ecx, [ebp - 0x2c0]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ea3d8
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.004e9924
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
xor ebx, ebx
jmp 0x4ea2de
push 0xfa
call sub.kernel32.dll_Sleep_1
inc ebx
mov eax, dword [ebp - 0x3c]
call fcn.004ed548
test al, al
jne 0x4ea2ef
cmp ebx, 0x28
jl 0x4ea2d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea319
call fcn.004ebfa0
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 0x4ea371
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 [0x4baf40]
call fcn.0040656c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405700
lea eax, [ebp + 8]
call fcn.004056dc
ret