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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x5c
push 0
push 0
dec ecx
jne 0x4eb46d
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 0x4ebe3f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004ebf2c
mov ecx, 0x4ebe5c
mov dl, 1
mov eax, dword [0x4ed344]
call fcn.004ed3ac
mov dword [ebp - 0x38], eax
mov ecx, 0x4ebe74
mov dl, 1
mov eax, dword [0x4ed344]
call fcn.004ed3ac
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x4ebdf5
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, 0x4ebe84
call fcn.00405cb8
mov edi, eax
test edi, edi
jne 0x4eb526
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 0x4eb570
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.004da8c0
jmp 0x4eb7cb
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004bdcb8
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.004bdcb8
push 0x20
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4eb6b6
mov eax, dword [ebp - 0x34]
call fcn.004ed548
test al, al
je 0x4eb6df
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004be150
test al, al
je 0x4eb6df
mov eax, dword [ebp - 0x38]
call fcn.004e9748
mov byte [ebp - 0x39], 0
call fcn.004ecb14
test al, al
jne 0x4eb62a
mov byte [ebp - 0x39], 1
jmp 0x4eb645
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.004e95ec
test al, al
je 0x4eb645
mov byte [ebp - 0x39], 1
cmp byte [ebp - 0x39], 0
je 0x4eb6df
mov eax, dword [ebp - 0x34]
call fcn.004ed6d0
test al, al
je 0x4eb68c
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x4eb678
push 0x64
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.004ed548
test al, al
je 0x4eb6df
cmp dword [ebp - 0x30], 0x64
jl 0x4eb66e
jmp 0x4eb6df
lea ecx, [ebp - 0x258]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ebe90
call fcn.00481428
mov eax, dword [ebp - 0x258]
call fcn.00448c24
jmp 0x4eb6df
mov eax, dword [ebp - 0x14]
call fcn.0040af30
test al, al
je 0x4eb6df
mov eax, dword [ebp - 0x14]
call fcn.004c06b8
test al, al
je 0x4eb6df
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bdf50
test al, al
jne 0x4eb6df
mov bl, 1
test bl, bl
jne 0x4eb736
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x25c]
call fcn.004058d4
mov eax, dword [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x260]
call fcn.004058d4
mov eax, dword [ebp - 0x260]
mov cl, 1
pop edx
call fcn.004def40
test al, al
je 0x4eb736
push 0x20
mov eax, dword [ebp - 0x14]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4eb7bd
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00405b04
je 0x4eb7bd
mov eax, dword [ebp + 0x10]
call fcn.0040af54
test al, al
je 0x4eb7bd
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x10]
call fcn.004bdcb8
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 - 0x264]
call fcn.004058d4
mov eax, dword [ebp - 0x264]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x268]
call fcn.004058d4
mov eax, dword [ebp - 0x268]
mov cl, 1
pop edx
call fcn.004def40
test al, al
je 0x4eb7bd
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.004da8c0
cmp dword [ebp - 0x28], 0
jne 0x4eb5aa
mov eax, dword [ebp - 0x34]
call fcn.004ed560
test al, al
je 0x4eb815
mov eax, dword [ebp - 0x34]
call fcn.004ed914
test al, al
jne 0x4eb815
lea ecx, [ebp - 0x26c]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ebeb8
call fcn.00481428
mov eax, dword [ebp - 0x26c]
call fcn.00448c24
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4ebd3c
xor edi, edi
lea ecx, [ebp - 0x18]
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.004da8c0
jmp 0x4ebcf2
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bdcb8
push 0x201
lea eax, [ebp - 0x249]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x4eb870
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x249]
mov ecx, 0x201
call fcn.0040594c
jmp 0x4eb87e
mov byte [ebp - 0x29], 0
call fcn.00405100
jmp 0x4ebdfc
lea ecx, [ebp - 0x270]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004bdcb8
mov edx, dword [ebp - 0x270]
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 0x4eba5d
push 0x20
lea ecx, [ebp - 0x274]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bdcb8
mov eax, dword [ebp - 0x274]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x27c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bdcb8
mov eax, dword [ebp - 0x27c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x278]
call fcn.004058d4
mov eax, dword [ebp - 0x278]
push eax
lea ecx, [ebp - 0x284]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x18]
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]
mov cl, 1
pop edx
call fcn.004def40
test al, al
je 0x4eb975
push 0x20
lea ecx, [ebp - 0x288]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004bdcb8
mov eax, dword [ebp - 0x288]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4eba5d
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00405b04
je 0x4eba5d
mov eax, dword [ebp + 0x10]
call fcn.0040af54
test al, al
je 0x4eba5d
push 0x20
lea ecx, [ebp - 0x28c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
call fcn.004bdcb8
mov eax, dword [ebp - 0x28c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x294]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
call fcn.004bdcb8
mov eax, dword [ebp - 0x294]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x290]
call fcn.004058d4
mov eax, dword [ebp - 0x290]
push eax
lea ecx, [ebp - 0x29c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x18]
call fcn.004bdcb8
mov eax, dword [ebp - 0x29c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x298]
call fcn.004058d4
mov eax, dword [ebp - 0x298]
mov cl, 1
pop edx
call fcn.004def40
test al, al
je 0x4eba5d
push 0x20
lea ecx, [ebp - 0x2a0]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2a0]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x14]
call fcn.0040af30
test al, al
je 0x4eba8c
mov eax, dword [ebp - 0x14]
call fcn.0040af30
test al, al
je 0x4ebce4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004bdf50
test al, al
je 0x4ebce4
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4ebb45
mov eax, dword [ebp - 0x34]
call fcn.004ed548
test al, al
je 0x4ebb45
mov eax, dword [ebp - 0x38]
call fcn.004e9748
call fcn.004ecb14
test al, al
jne 0x4ebaf6
mov eax, dword [ebp - 0x34]
call fcn.004ed6d0
test al, al
jne 0x4ebb45
lea eax, [ebp - 0x2a4]
push eax
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4ebe90
pop eax
pop ecx
call fcn.00481428
mov eax, dword [ebp - 0x2a4]
call fcn.00448c24
jmp 0x4ebb45
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.004e95ec
test al, al
je 0x4ebb45
mov eax, dword [ebp - 0x34]
call fcn.004ed6d0
test al, al
jne 0x4ebb45
lea eax, [ebp - 0x2a8]
push eax
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x4ebe90
pop eax
pop ecx
call fcn.00481428
mov eax, dword [ebp - 0x2a8]
call fcn.00448c24
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
xor esi, esi
jmp 0x4ebb5f
push 0x64
call sub.kernel32.dll_Sleep_1
add esi, 0x64
mov eax, dword [ebp - 0x14]
call fcn.004c06b8
test al, al
je 0x4ebb73
cmp esi, 0x1388
jb 0x4ebb55
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 0x4ebce4
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
je 0x4ebc1e
cmp ebx, 5
je 0x4ebc1e
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x2b0]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ebee0
call fcn.00481428
mov eax, dword [ebp - 0x2b0]
push eax
mov dword [ebp - 0x2c8], ebx
mov byte [ebp - 0x2c4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2bc], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 0x2b4], 0xb
lea edx, [ebp - 0x2c8]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2ac]
call fcn.00448c24
jmp 0x4ebce4
mov eax, dword [0x4f3618]
mov byte [eax], 1
mov eax, dword [0x4f3380]
cmp byte [eax], 1
je 0x4ebc4c
mov eax, dword [0x4f3380]
cmp byte [eax], 4
jne 0x4ebc44
mov eax, dword [0x4f3380]
mov byte [eax], 5
jmp 0x4ebc4c
mov eax, dword [0x4f3380]
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 0x4ebce4
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 0x2cc]
push eax
mov edx, 0x4ebee0
lea ecx, [ebp - 0x2d0]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x2d0]
push eax
mov dword [ebp - 0x2c8], ebx
mov byte [ebp - 0x2c4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2bc], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 0x2b4], 0xb
lea edx, [ebp - 0x2c8]
mov ecx, 2
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2cc]
call fcn.00448c24
inc edi
lea ecx, [ebp - 0x18]
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.004da8c0
cmp dword [ebp - 0x18], 0
jne 0x4eb838
mov eax, dword [ebp - 0x34]
call fcn.004ed560
test al, al
je 0x4ebd3c
mov eax, dword [ebp - 0x34]
call fcn.004ed914
test al, al
jne 0x4ebd3c
mov edx, 0x4ebeb8
lea ecx, [ebp - 0x2d4]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x2d4]
call fcn.00448c24
lea eax, [ebp - 0x48]
push eax
push 2
push 0
call sub.winspool.drv_AddMonitorA
test eax, eax
jne 0x4ebdd2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xbbe
je 0x4ebdd2
cmp ebx, 0xb7
je 0x4ebdd2
mov byte [ebp - 0x29], 0
cmp ebx, 0xbc0
je 0x4ebd7c
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2dc]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4ebf08
call fcn.00481428
mov eax, dword [ebp - 0x2dc]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x2e4], eax
mov byte [ebp - 0x2e0], 0
lea edx, [ebp - 0x2e4]
xor ecx, ecx
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2d8]
call fcn.00448c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ebdfc
mov eax, dword [ebp - 0x34]
call fcn.004047a0
mov eax, dword [ebp - 0x38]
call fcn.004047a0
call fcn.004ebfa0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ebe46
lea eax, [ebp - 0x2dc]
mov edx, 5
call fcn.00405700
lea eax, [ebp - 0x2b0]
mov edx, 0x19
call fcn.00405700
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00405700
lea eax, [ebp + 0x10]
call fcn.004056dc
ret