Function at 0x4b58b0
Capabilities:
Copy file
Get common file path
Get graphical window text
Read .ini file
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x1144
call fcn.004d6340
push ebx
push esi
push edi
lea eax, [esp + 0xd40]
push 0x104
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1168]
lea ecx, [esp + 0x54]
push eax
mov eax, dword [esp + 0x1168]
push ecx
push edx
push eax
mov dword [esp + 0x2c], 0
call fcn.004b53b0
add esp, 0x20
test eax, eax
je 0x4b5b90
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x5b9260
lea ecx, [esp + 0x52c]
push 0x104
push ecx
push 0x598470
push str.EXESCRFolder
push str.Slideshow
call esi
push 0x5b9260
lea edx, [esp + 0x224]
push 0x104
push edx
push str.MySlideshow
push str.EXESCRFile
push str.Slideshow
call esi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [esp + 0x528]
push eax
call fcn.004c7a80
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
lea ecx, [esp + 0x220]
je 0x4b59b7
push str..scr
push ecx
call fcn.004d6acd
add esp, 8
test eax, eax
jne 0x4b59f7
lea edx, [esp + 0x220]
push str..SCR
push edx
call fcn.004d6acd
add esp, 8
test eax, eax
jne 0x4b59f7
push str..scr
jmp 0x4b59e7
push str..exe
push ecx
call fcn.004d6acd
add esp, 8
test eax, eax
jne 0x4b59f7
lea edx, [esp + 0x220]
push str..EXE
push edx
call fcn.004d6acd
add esp, 8
test eax, eax
jne 0x4b59f7
push str..exe
lea eax, [esp + 0x224]
push eax
call fcn.004d62f1
add esp, 8
lea ecx, [esp + 0x220]
lea edx, [esp + 0x528]
push ecx
push edx
call fcn.004d62f1
lea eax, [esp + 0x530]
lea ecx, [esp + 0x228]
push eax
push ecx
call fcn.004d631b
lea edx, [esp + 0x230]
push edx
call fcn.004381b0
add esp, 0x14
cmp eax, 1
jne 0x4b5ac6
mov ecx, dword [0x5b5574]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x428]
push 0x40
push eax
push 0x4f6
push ecx
call esi
mov eax, dword [0x5b5574]
lea edx, [esp + 0x4a8]
push 0x40
push edx
push 0x51d
push eax
call esi
lea ecx, [esp + 0x220]
lea edx, [esp + 0x428]
push ecx
lea eax, [esp + 0x4ac]
push edx
push eax
lea ecx, [esp + 0x944]
push 0x598e10
push ecx
call fcn.004d5ee1
add esp, 0x14
lea edx, [esp + 0x938]
push 0x2124
push 0x5b96a0
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.00446950
add esp, 0x10
cmp eax, 7
je 0x4b5b90
lea eax, [esp + 0x528]
push str.Slideshow.exe
push eax
call fcn.004904e0
lea ecx, [esp + 0x530]
push ecx
call fcn.004381b0
add esp, 0xc
test eax, eax
jne 0x4b5b0f
lea edx, [esp + 0x528]
push 1
push edx
push str.Slideshow.exe
call fcn.004905d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1144
ret
lea eax, [esp + 0x220]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x220]
push 0
lea edx, [esp + 0x52c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4b5b51
push eax
push eax
lea eax, [esp + 0x228]
push eax
push 0x59bb30
push 0x4f7
jmp 0x4b5b81
mov eax, dword [esp + 0x44]
lea edx, [eax + eax*8]
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 3
push eax
call fcn.004d5aaa
add esp, 4
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
push 0
jne 0x4b5b9c
push eax
push eax
push eax
push 0x50a
mov ecx, dword [0x5b5574]
push ecx
call fcn.004cc7f0
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1144
ret
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x234]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b5bf5
push edi
call fcn.004d59c1
mov ecx, dword [0x5b5574]
push 3
lea eax, [esp + 0x228]
push 0
push eax
push 0
push 0x4e71
push ecx
call fcn.004cc7f0
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1144
ret
push ebp
push ebx
call fcn.004b57f0
push 2
push 0
push 0
push ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
call fcn.004b57a0
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x14
lea edx, [esp + 0x14]
lea eax, [esp + 0x48]
push 0
push edx
push 0x1dc
push eax
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [esp + 0x734]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x734]
push edx
call fcn.004c9990
lea eax, [esp + 0x738]
push str.temp.jpg
push eax
call fcn.004d62f1
mov edx, dword [esp + 0x1164]
add esp, 0xc
lea ecx, [esp + 0xb44]
push pe_nt_image_headers32
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x4b6095
lea esi, [edi + 8]
lea edi, [esi - 8]
mov ecx, 0x88e
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x115c]
lea edi, [esi + 0x14]
push eax
push edi
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.004b1140
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x958]
push 0x5a4938
push ecx
call fcn.004d5ee1
mov eax, dword [esp + 0x117c]
add esp, 0x24
lea edx, [esp + 0x93c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x1158]
push ecx
call fcn.004cb8e0
push edi
call fcn.004d6713
mov dword [esi + 0x10], eax
lea eax, [esi - 8]
push eax
push edi
call fcn.004ccca0
push 1
push 0
push 0
push ebx
call fcn.004b57a0
mov dword [esi], eax
mov eax, edx
add esp, 0x20
mov dword [esi + 4], edx
test eax, eax
ja 0x4b6089
jb 0x4b5d4e
cmp dword [esi], 0xffffe380
jae 0x4b6089
push edi
call fcn.004c7910
mov dword [esi + 8], eax
mov eax, dword [esi - 8]
add esp, 4
cmp eax, 0xffffffff
mov dword [esi + 0xc], edx
jne 0x4b5d6d
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
test eax, eax
je 0x4b600c
lea edx, [esi + 0x2228]
lea eax, [esi + 0x2224]
lea ecx, [esi + 0x2220]
push edx
push eax
push ecx
push 0
push 0
push edi
call fcn.004a71a0
mov ebp, eax
add esp, 0x40
test ebp, ebp
je 0x4b5fc5
mov eax, dword [esi - 8]
cmp eax, 0xa
je 0x4b5fb7
cmp eax, 0x32
je 0x4b5fb7
cmp eax, 0x59
je 0x4b5fb7
cmp eax, 0x1f
je 0x4b5fb7
lea eax, [esi + 0x222c]
push 0
push eax
push 0
push 0
push 0
push ebp
call fcn.004c5070
mov eax, dword [esp + 0x64]
xor edi, edi
add esp, 0x18
cmp eax, edi
je 0x4b5f2c
mov eax, dword [esp + 0x68]
cmp eax, edi
jle 0x4b5f2c
mov edi, dword [esi + 0x2220]
mov ecx, dword [esi + 0x2224]
sub eax, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ecx
je 0x4b5eb8
dec eax
je 0x4b5ea6
fild dword [esp + 0x24]
mov eax, dword [esp + 0x5c]
cmp ecx, eax
fstp dword [esp + 0x18]
fild dword [esp + 0x20]
fstp dword [esp + 0x28]
fld dword [esp + 0x18]
fdiv dword [esp + 0x28]
fstp dword [esp + 0x18]
jle 0x4b5e77
fild dword [esp + 0x5c]
mov dword [esp + 0x20], eax
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fmul dword [esp + 0x18]
fadd qword [0x5526c8]
call fcn.004d6118
mov edi, eax
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x58]
cmp edi, eax
jle 0x4b5edc
fild dword [esp + 0x58]
mov edi, eax
mov dword [esp + 0x24], edi
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fdiv dword [esp + 0x18]
fadd qword [0x5526c8]
call fcn.004d6118
mov dword [esp + 0x20], eax
jmp 0x4b5edc
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ecx
jmp 0x4b5edc
lea edx, [esp + 0x20]
push 1
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
mov ecx, dword [esp + 0x6c]
push edi
push ecx
push edx
call fcn.004c7350
mov edi, dword [esp + 0x40]
add esp, 0x1c
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x20]
push 1
push 0
push 1
push 1
push eax
push ecx
push edi
push ebp
call fcn.00421dd0
add esp, 0x20
mov edi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push edi
call fcn.004281e0
add esp, 8
mov ebp, eax
test edi, edi
je 0x4b5f2a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor edi, edi
mov edx, dword [esp + 0x30]
push edi
push edx
lea eax, [esp + 0x73c]
push ebp
push eax
call fcn.0040b110
add esp, 0x10
cmp eax, 1
jne 0x4b5f70
lea ecx, [esp + 0x734]
push ecx
call fcn.004c7910
mov dword [esi + 0xc], edx
lea edx, [esp + 0x738]
push edx
push ebx
mov dword [esi + 8], eax
call fcn.004b5810
add esp, 0xc
test eax, eax
jne 0x4b5f7f
mov eax, dword [esp + 0x10]
mov dword [esi + 8], edi
inc eax
mov dword [esi + 0xc], edi
mov dword [esp + 0x10], eax
cmp ebp, edi
je 0x4b5f91
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
inc eax
add esi, 0x2238
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4b5ca2
jmp 0x4b6091
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi - 8]
cmp eax, 0x1a
je 0x4b5feb
cmp eax, 0x22
je 0x4b5feb
cmp eax, 0x33
je 0x4b5feb
cmp eax, 0xa
je 0x4b5feb
cmp eax, 0x59
je 0x4b5feb
cmp eax, 0x32
je 0x4b5feb
cmp eax, 0x1f
jne 0x4b5ff9
push edi
push ebx
call fcn.004b5810
add esp, 8
test eax, eax
jne 0x4b5f91
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
jmp 0x4b5f91
lea eax, [esi + 0x2228]
lea ecx, [esi + 0x2224]
push eax
lea edx, [esi + 0x2220]
push ecx
push edx
push 0
push 0x32
push edi
call fcn.004a71a0
lea ecx, [esi + 0x222c]
push 0
push ecx
push 0
push 0
push 0
push eax
mov dword [esp + 0x70], eax
call fcn.004c5070
mov eax, dword [esp + 0x70]
add esp, 0x58
test eax, eax
je 0x4b6061
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push ebx
call fcn.004b5810
add esp, 8
test eax, eax
jne 0x4b5f97
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
jmp 0x4b5f97
mov dword [esp + 0x10], 0xffffffff
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x734]
push eax
call fcn.004d7368
push 1
push 0
push 0
push ebx
call fcn.004b57a0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
add esp, 0x14
mov dword [esp + 0x40], edx
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x4b61f7
lea esi, [edi + 0x10]
mov eax, dword [esi + 4]
test eax, eax
ja 0x4b60e0
cmp dword [esi], 0
jbe 0x4b61dc
lea ecx, [esp + 0x14]
push 0
lea eax, [esi - 0x10]
push ecx
push 4
push eax
push ebx
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi - 8]
push 8
push eax
push ebx
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
push 8
push esi
push ebx
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 8]
push 4
push eax
push ebx
call ebp
lea ecx, [esp + 0x14]
lea edi, [esi + 0xc]
push 0
push ecx
push edi
call fcn.004d6713
add esp, 4
add eax, eax
push eax
push edi
push ebx
call ebp
mov eax, dword [esp + 0x158]
test eax, eax
je 0x4b619e
mov edx, dword [esi + 0x2224]
mov eax, dword [esi + 0x2220]
mov ecx, dword [esi + 0x221c]
push 0
push 0
push 0
push 0x40590000
push 0
push edx
mov edx, dword [esi + 0x2218]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push 0
push 0xfffffc19
inc ecx
push eax
mov eax, dword [esi - 0x10]
lea edx, [esp + 0xd74]
push ecx
push edx
push eax
push edi
lea ecx, [esi + 0x218]
push 0x1000
push ecx
call fcn.004b7220
add esp, 0x48
lea eax, [esi + 0x218]
lea edi, [esi + 0x214]
push eax
call fcn.004d6713
add esp, 4
lea edx, [esp + 0x14]
mov dword [edi], eax
push 0
push edx
push 4
push edi
push ebx
call ebp
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push 0
push eax
add ecx, ecx
lea eax, [esi + 0x218]
push ecx
push eax
push ebx
call ebp
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
inc eax
add esi, 0x2238
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4b60d0
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x3c]
push 8
push eax
push ebx
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x44]
push 8
push edx
push ebx
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x50]
push 4
push ecx
push ebx
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push 3
push 0x5a4934
push ebx
call ebp
lea eax, [esp + 0x14]
push 0
push eax
push 3
push 0x5a4930
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004d59c1
add esp, 4
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [esp + 0x1158]
lea ecx, [esp + 0xb44]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xf4c]
push eax
push 0x5985ac
push ecx
call fcn.004d5ee1
mov eax, dword [0x5b5574]
push 3
lea edx, [esp + 0xf5c]
push 0
push edx
push 0
push 0x530
push eax
call fcn.004cc7f0
add esp, 0x24
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1144
ret