Function at 0x4e7b4c
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb34
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4c8], ecx
mov dword [ebp - 0x4cc], ecx
mov dword [ebp - 0x4c4], ecx
mov dword [ebp - 0x4c0], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4e7f35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x56ab38]
cmp dword [eax], 2
je 0x4e7ed5
push 0x104
lea eax, [ebp - 0x4b9]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x4c0]
lea eax, [ebp - 0x4b9]
call fcn.0040e5a4
mov edx, dword [ebp - 0x4c0]
lea eax, [ebp - 4]
mov ecx, 0x4e7f4c
call fcn.004054f8
mov byte [ebp - 9], 0
mov byte [ebp - 0xa], 0
xor eax, eax
push ebp
push 0x4e7e91
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4e7e80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e7894
test al, al
je 0x4e7c6c
lea eax, [ebp - 0x4c4]
lea edx, [ebp - 0x4b9]
mov ecx, 0x105
call fcn.0040545c
mov eax, dword [ebp - 0x4c4]
lea ecx, [ebp - 8]
mov edx, 0x4e7f64
call fcn.004e79b0
mov eax, dword [ebp - 4]
call fcn.004056ac
push eax
push 0
push 0
push 0
call sub.kernel32.dll_WritePrivateProfileStringA
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1e8]
call fcn.0040370c
mov eax, dword [0x56a930]
mov byte [eax], 0x20
lea eax, [ebp - 0x1e8]
call fcn.0040349c
call fcn.004030b0
mov byte [ebp - 9], 1
jmp 0x4e7c77
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405274
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x3b4]
call fcn.0040370c
mov eax, dword [0x56a930]
mov byte [eax], 0x11
lea eax, [ebp - 0x3b4]
call fcn.004034a8
call fcn.004030b0
mov byte [ebp - 0xa], 1
mov byte [ebp - 0x15], 0
xor ebx, ebx
cmp byte [ebp - 9], 0
je 0x4e7d55
jmp 0x4e7d3d
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x1e8]
call fcn.00403b20
lea eax, [ebp - 0x1e8]
call fcn.00403b8c
call fcn.004030b0
mov bl, 1
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040d6e4
cmp dword [ebp - 0x14], 0
je 0x4e7d23
mov eax, 1
mov edx, dword [ebp - 0x14]
dec eax
test edx, edx
je 0x4e7cf9
cmp eax, dword [edx - 4]
jb 0x4e7cfe
call fcn.004042ac
inc eax
cmp byte [edx + eax - 1], 0x5b
jne 0x4e7d23
mov edx, 0x4e7f74
mov eax, dword [ebp - 0x10]
call fcn.0040d354
test eax, eax
jne 0x4e7d1d
mov byte [ebp - 0x15], 1
jmp 0x4e7d23
cmp byte [ebp - 0x15], 0
jne 0x4e7d55
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.004058c8
call fcn.00403da4
call fcn.004030b0
xor ebx, ebx
lea eax, [ebp - 0x1e8]
call fcn.00403978
call fcn.004030b0
test al, al
je 0x4e7cb6
cmp byte [ebp - 0x15], 0
jne 0x4e7d75
mov edx, 0x4e7f74
lea eax, [ebp - 0x3b4]
call fcn.004058c8
call fcn.00403da4
call fcn.004030b0
test esi, esi
je 0x4e7d85
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004e7af0
jmp 0x4e7d92
lea eax, [ebp - 0x14]
mov edx, 0x4e7f88
call fcn.00405274
push dword [ebp - 0x14]
push 0x4e7f94
lea edx, [ebp - 0x4cc]
mov eax, edi
call fcn.004e7af0
push dword [ebp - 0x4cc]
lea eax, [ebp - 0x4c8]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0x4c8]
lea eax, [ebp - 0x3b4]
call fcn.004058c8
call fcn.00403da4
call fcn.004030b0
cmp byte [ebp - 9], 0
je 0x4e7e46
test bl, bl
je 0x4e7e32
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.004058c8
call fcn.00403da4
call fcn.004030b0
jmp 0x4e7e32
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x1e8]
call fcn.00403b20
lea eax, [ebp - 0x1e8]
call fcn.00403b8c
call fcn.004030b0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x3b4]
call fcn.004058c8
call fcn.00403da4
call fcn.004030b0
lea eax, [ebp - 0x1e8]
call fcn.00403978
call fcn.004030b0
test al, al
je 0x4e7dfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7e87
cmp byte [ebp - 0xa], 0
je 0x4e7e69
lea eax, [ebp - 0x3b4]
call fcn.004037d4
call fcn.004030b0
cmp byte [ebp - 9], 0
je 0x4e7e7f
lea eax, [ebp - 0x1e8]
call fcn.004037d4
call fcn.004030b0
ret
test esi, esi
je 0x4e7ee5
mov eax, esi
call fcn.004056ac
mov dword [ebp - 0x1c], eax
jmp 0x4e7eea
xor eax, eax
mov dword [ebp - 0x1c], eax
push 5
mov eax, dword [ebp - 0x1c]
push eax
mov eax, edi
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7f3c
lea eax, [ebp - 0x4cc]
mov edx, 4
call fcn.00405200
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405200
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405200
ret