Function at 0x4ec910
Capabilities:
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x5d
push 0
push 0
dec ecx
jne 0x4ec919
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
mov eax, dword [ebp - 8]
call fcn.00405b5c
mov eax, dword [ebp - 0xc]
call fcn.00405b5c
mov eax, dword [ebp + 0x10]
call fcn.00405b5c
xor eax, eax
push ebp
push 0x4ed332
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004ed450
mov ecx, 0x4ed350
mov dl, 1
mov eax, dword [0x4ee898]
call fcn.004ee900
mov dword [ebp - 0x38], eax
mov ecx, 0x4ed368
mov dl, 1
mov eax, dword [0x4ee898]
call fcn.004ee900
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x4ed2e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x29], 1
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 8]
call fcn.00405774
mov edx, dword [ebp - 4]
mov eax, 0x4ed378
call fcn.00405cb8
mov edi, eax
test edi, edi
jne 0x4ec9d3
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.00405774
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00405774
jmp 0x4eca1d
lea eax, [ebp - 0x250]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405bd4
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x1c]
call fcn.0040a4a8
lea eax, [ebp - 0x254]
push eax
lea edx, [edi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00405bd4
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x20]
call fcn.0040a4a8
mov eax, dword [ebp - 0x1c]
call fcn.00405b6c
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
call fcn.00405b6c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x20]
call fcn.00405b6c
mov dword [ebp - 0x40], eax
xor edi, edi
lea ecx, [ebp - 0x28]
mov edx, edi
mov eax, dword [ebp - 0x24]
call fcn.004db56c
jmp 0x4ecc8e
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x28]
call fcn.004bdd24
push 0x20
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ecb79
mov eax, dword [ebp - 0x34]
call fcn.004eea9c
test al, al
je 0x4ecba2
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004be1bc
test al, al
je 0x4ecba2
mov eax, dword [ebp - 0x38]
call fcn.004eab80
mov byte [ebp - 0x39], 0
call fcn.004ee068
test al, al
jne 0x4ecad7
mov byte [ebp - 0x39], 1
jmp 0x4ecaf2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
call fcn.004eaa28
test al, al
je 0x4ecaf2
mov byte [ebp - 0x39], 1
cmp byte [ebp - 0x39], 0
je 0x4ecba2
mov eax, dword [ebp - 0x34]
call fcn.004eee8c
test al, al
je 0x4ecb39
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x4ecb25
push 0x64
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.004eea9c
test al, al
je 0x4ecba2
cmp dword [ebp - 0x30], 0x64
jl 0x4ecb1b
jmp 0x4ecba2
lea ecx, [ebp - 0x25c]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ed384
call fcn.00481428
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
mov edx, 0x4ed3ac
call fcn.004059f4
mov eax, dword [ebp - 0x258]
call fcn.00448c24
jmp 0x4ecba2
mov eax, dword [ebp - 0x14]
call fcn.0040af30
test al, al
je 0x4ecba2
mov eax, dword [ebp - 0x14]
call fcn.004c0724
test al, al
je 0x4ecba2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bdfbc
test al, al
jne 0x4ecba2
mov bl, 1
test bl, bl
jne 0x4ecbf9
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x260]
call fcn.004058d4
mov eax, dword [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x264]
call fcn.004058d4
mov eax, dword [ebp - 0x264]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4ecbf9
push 0x20
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ecc80
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00405b04
je 0x4ecc80
mov eax, dword [ebp + 0x10]
call fcn.0040af54
test al, al
je 0x4ecc80
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x10]
call fcn.004bdd24
push 0x20
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
mov esi, eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov edx, esi
lea eax, [ebp - 0x268]
call fcn.004058d4
mov eax, dword [ebp - 0x268]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x26c]
call fcn.004058d4
mov eax, dword [ebp - 0x26c]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4ecc80
push 0x20
push esi
call sub.kernel32.dll_SetFileAttributesA
inc edi
lea ecx, [ebp - 0x28]
mov edx, edi
mov eax, dword [ebp - 0x24]
call fcn.004db56c
cmp dword [ebp - 0x28], 0
jne 0x4eca57
mov eax, dword [ebp - 0x34]
call fcn.004eeab4
test al, al
je 0x4eccd8
mov eax, dword [ebp - 0x34]
call fcn.004ef010
test al, al
jne 0x4eccd8
lea ecx, [ebp - 0x270]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ed3bc
call fcn.00481428
mov eax, dword [ebp - 0x270]
call fcn.00448c24
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ed22f
xor edi, edi
lea ecx, [ebp - 0x18]
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.004db56c
jmp 0x4ed1e5
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
push 0x201
lea eax, [ebp - 0x249]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x4ecd33
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x249]
mov ecx, 0x201
call fcn.0040594c
jmp 0x4ecd41
mov byte [ebp - 0x29], 0
call fcn.00405100
jmp 0x4ed2ef
lea ecx, [ebp - 0x274]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004bdd24
mov edx, dword [ebp - 0x274]
lea eax, [ebp - 0x14]
call fcn.00405774
push 0x20
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
jne 0x4ecf20
push 0x20
lea ecx, [ebp - 0x278]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
mov eax, dword [ebp - 0x278]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x280]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
mov eax, dword [ebp - 0x280]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x27c]
call fcn.004058d4
mov eax, dword [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x288]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x18]
call fcn.004bdd24
mov eax, dword [ebp - 0x288]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x284]
call fcn.004058d4
mov eax, dword [ebp - 0x284]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4ece38
push 0x20
lea ecx, [ebp - 0x28c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
mov eax, dword [ebp - 0x28c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ecf20
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00405b04
je 0x4ecf20
mov eax, dword [ebp + 0x10]
call fcn.0040af54
test al, al
je 0x4ecf20
push 0x20
lea ecx, [ebp - 0x290]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
call fcn.004bdd24
mov eax, dword [ebp - 0x290]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x298]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
call fcn.004bdd24
mov eax, dword [ebp - 0x298]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x294]
call fcn.004058d4
mov eax, dword [ebp - 0x294]
push eax
lea ecx, [ebp - 0x2a0]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x18]
call fcn.004bdd24
mov eax, dword [ebp - 0x2a0]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x29c]
call fcn.004058d4
mov eax, dword [ebp - 0x29c]
mov cl, 1
pop edx
call fcn.004e003c
test al, al
je 0x4ecf20
push 0x20
lea ecx, [ebp - 0x2a4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
call fcn.004bdd24
mov eax, dword [ebp - 0x2a4]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x14]
call fcn.0040af30
test al, al
je 0x4ecf4f
mov eax, dword [ebp - 0x14]
call fcn.0040af30
test al, al
je 0x4ed1d7
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004bdfbc
test al, al
je 0x4ed1d7
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4ed038
mov eax, dword [ebp - 0x34]
call fcn.004eea9c
test al, al
je 0x4ed038
mov eax, dword [ebp - 0x38]
call fcn.004eab80
call fcn.004ee068
test al, al
jne 0x4ecfd3
mov eax, dword [ebp - 0x34]
call fcn.004eee8c
test al, al
jne 0x4ed038
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4ed384
pop eax
pop ecx
call fcn.00481428
mov ecx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
mov edx, 0x4ed3e4
call fcn.004059f4
mov eax, dword [ebp - 0x2a8]
call fcn.00448c24
jmp 0x4ed038
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
call fcn.004eaa28
test al, al
je 0x4ed038
mov eax, dword [ebp - 0x34]
call fcn.004eee8c
test al, al
jne 0x4ed038
lea eax, [ebp - 0x2b4]
push eax
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4ed384
pop eax
pop ecx
call fcn.00481428
mov ecx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x2b0]
mov edx, 0x4ed3f4
call fcn.004059f4
mov eax, dword [ebp - 0x2b0]
call fcn.00448c24
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
xor esi, esi
jmp 0x4ed052
push 0x64
call sub.kernel32.dll_Sleep_1
add esi, 0x64
mov eax, dword [ebp - 0x14]
call fcn.004c0724
test al, al
je 0x4ed066
cmp esi, 0x1388
jb 0x4ed048
push 1
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
jne 0x4ed1d7
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
je 0x4ed111
cmp ebx, 5
je 0x4ed111
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x2bc]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ed404
call fcn.00481428
mov eax, dword [ebp - 0x2bc]
push eax
mov dword [ebp - 0x2d4], ebx
mov byte [ebp - 0x2d0], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 0x2c8], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c4], eax
mov byte [ebp - 0x2c0], 0xb
lea edx, [ebp - 0x2d4]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2b8]
call fcn.00448c24
jmp 0x4ed1d7
mov eax, dword [0x4f5628]
mov byte [eax], 1
mov eax, dword [0x4f5390]
cmp byte [eax], 1
je 0x4ed13f
mov eax, dword [0x4f5390]
cmp byte [eax], 4
jne 0x4ed137
mov eax, dword [0x4f5390]
mov byte [eax], 5
jmp 0x4ed13f
mov eax, dword [0x4f5390]
mov byte [eax], 2
push 5
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
jne 0x4ed1d7
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 0x2d8]
push eax
mov edx, 0x4ed404
lea ecx, [ebp - 0x2dc]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x2dc]
push eax
mov dword [ebp - 0x2d4], ebx
mov byte [ebp - 0x2d0], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 0x2c8], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c4], eax
mov byte [ebp - 0x2c0], 0xb
lea edx, [ebp - 0x2d4]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2d8]
call fcn.00448c24
inc edi
lea ecx, [ebp - 0x18]
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.004db56c
cmp dword [ebp - 0x18], 0
jne 0x4eccfb
mov eax, dword [ebp - 0x34]
call fcn.004eeab4
test al, al
je 0x4ed22f
mov eax, dword [ebp - 0x34]
call fcn.004ef010
test al, al
jne 0x4ed22f
mov edx, 0x4ed3bc
lea ecx, [ebp - 0x2e0]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x2e0]
call fcn.00448c24
lea eax, [ebp - 0x48]
push eax
push 2
push 0
call sub.winspool.drv_AddMonitorA
test eax, eax
jne 0x4ed2c5
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xbbe
je 0x4ed2c5
cmp ebx, 0xb7
je 0x4ed2c5
mov byte [ebp - 0x29], 0
cmp ebx, 0xbc0
je 0x4ed26f
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x2e8]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ed42c
call fcn.00481428
mov eax, dword [ebp - 0x2e8]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x2f0], eax
mov byte [ebp - 0x2ec], 0
lea edx, [ebp - 0x2f0]
xor ecx, ecx
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2e4]
call fcn.00448c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed2ef
mov eax, dword [ebp - 0x34]
call fcn.004047a0
mov eax, dword [ebp - 0x38]
call fcn.004047a0
call fcn.004ed4c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed339
lea eax, [ebp - 0x2e8]
mov edx, 5
call fcn.00405700
lea eax, [ebp - 0x2bc]
mov edx, 0x1c
call fcn.00405700
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00405700
lea eax, [ebp + 0x10]
call fcn.004056dc
ret