Function at 0x20011060
Capabilities:
Check if file exists
Copy file
Delete file
Write file on windows

Disassembly:
sub esp, 0xc4c
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0xc48], eax
mov eax, dword [esp + 0xc54]
mov ecx, dword [esp + 0xc58]
mov edx, dword [esp + 0xc60]
push ebx
mov ebx, dword [esp + 0xc60]
push ebp
mov ebp, dword [esp + 0xc70]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc6c]
push esi
mov esi, dword [esp + 0xc5c]
mov dword [esp + 0x1c], eax
mov eax, dword [0x2002b328]
push edi
mov edi, dword [esp + 0xc84]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xc7c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0xc80]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
test eax, eax
jle 0x200110e8
cmp eax, 0x11
jl 0x2001110a
cmp eax, 0x3e8
jle 0x200110f6
cmp eax, 0x3f9
jl 0x2001110a
cmp eax, dword [0x20026270]
je 0x2001110a
cmp eax, dword [0x20026208]
jne 0x20011361
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x860]
push edx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
call sym.SDTAPI.DLL_SDT_ReadBaseMsg
cmp eax, 0x90
jne 0x20011361
test edi, edi
je 0x200111be
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20011141
sub eax, edx
je 0x200111be
push 0x104
lea eax, [esp + 0x44c]
push 0
push eax
call fcn.200132c0
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20011168
sub eax, edx
cmp byte [edi + eax], 0x5c
jne 0x2001118f
push edi
lea ecx, [esp + 0x44c]
push 0x2002078c
push ecx
call fcn.2001364c
add esp, 0xc
jmp 0x200111aa
push 0x20020500
push edi
lea edx, [esp + 0x450]
push str._s_s
push edx
call fcn.2001364c
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x200111be
push edi
call fcn.20003eb0
add esp, 4
push 0x104
lea eax, [esp + 0x348]
push 0
push eax
call fcn.200132c0
push 0x104
lea ecx, [esp + 0x14c]
push 0
push ecx
call fcn.200132c0
push 0x104
lea edx, [esp + 0x25c]
push 0
push edx
call fcn.200132c0
add esp, 0x24
test edi, edi
je 0x200112d3
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20011210
sub eax, edx
je 0x200112d3
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20011224
sub eax, edx
cmp byte [edi + eax], 0x5c
push str.photo.wlt
lea eax, [esp + 0x348]
jne 0x20011283
push edi
push str._s_s
push eax
call fcn.2001364c
push str.photo.bmp
push edi
lea ecx, [esp + 0x154]
push str._s_s
push ecx
call fcn.2001364c
push str.photo.jpg
push edi
lea edx, [esp + 0x268]
push str._s_s
push edx
call fcn.2001364c
add esp, 0x30
jmp 0x2001131b
push 0x20020500
push edi
push str._s_s_s
push eax
call fcn.2001364c
push str.photo.bmp
push 0x20020500
push edi
lea ecx, [esp + 0x15c]
push str._s_s_s
push ecx
call fcn.2001364c
push str.photo.jpg
push 0x20020500
push edi
lea edx, [esp + 0x274]
push str._s_s_s
push edx
call fcn.2001364c
add esp, 0x3c
jmp 0x2001131b
push str.photo.wlt
lea eax, [esp + 0x348]
push 0x2002078c
push eax
call fcn.2001364c
push str.photo.bmp
lea ecx, [esp + 0x14c]
push 0x2002078c
push ecx
call fcn.2001364c
push str.photo.jpg
lea edx, [esp + 0x25c]
push 0x2002078c
push edx
call fcn.2001364c
add esp, 0x24
lea eax, [esp + 0x344]
push 0x20020708
push eax
call fcn.200141ea
mov edi, eax
add esp, 8
test edi, edi
je 0x20011403
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x860]
push 1
push edx
call fcn.200140a4
add esp, 0x10
push edi
cmp dword [esp + 0x18], eax
je 0x20011368
call fcn.20013ec6
add esp, 4
xor eax, eax
jmp 0x20011942
call fcn.20013ec6
add esp, 4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea eax, [esp + 0x550]
push eax
push 0x2002049c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x54c]
push 0x5c
push ecx
call fcn.20013122
mov edx, dword [str.dewlt.dll]
mov dword [eax], edx
mov ecx, dword [0x20020784]
mov dword [eax + 4], ecx
mov dx, word [0x20020788]
mov word [eax + 8], dx
mov cl, byte [0x2002078a]
add esp, 8
lea edx, [esp + 0x54c]
push edx
mov byte [eax + 0xa], cl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x200113ec
mov eax, 0xfffffffc
jmp 0x20011942
push str.dewlt
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x2001140d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 4
jmp 0x20011942
lea ecx, [esp + 0x344]
push ecx
call eax
push edi
cmp eax, 1
je 0x2001142d
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffb
jmp 0x20011942
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
lea edx, [esp + 0x244]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.20010fb0
push ecx
lea eax, [esp + 0x144]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.20010fb0
call fcn.20010ca0
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
add esp, 8
push eax
push eax
mov dword [esi], eax
push 0x1e
mov dword [esi + 4], eax
push esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 0xf
mov dword [esi + 0x10], eax
lea ecx, [esp + 0x50]
push ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
push eax
mov word [esi + 0x1c], ax
push eax
mov byte [esi + 0x1e], al
call edi
mov eax, 0x1d
jmp 0x200114a0
cmp byte [esi + eax], 0x20
jne 0x200114b1
cmp byte [esi + eax + 1], 0
jne 0x200114b1
mov byte [esi + eax], 0
dec eax
test eax, eax
jg 0x200114a0
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp byte [esp + 0x5a], 0x31
mov word [ecx], ax
mov byte [ecx + 2], al
jne 0x200114d3
mov edx, 0xd0c4
mov word [ecx], dx
jmp 0x200114db
mov eax, 0xaec5
mov word [ecx], ax
push 0
push 0
push 2
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x70]
push edx
push 0
push 0
mov dword [esp + 0x30], 0
call edi
lea eax, [esp + 0x10]
push eax
call fcn.20014217
mov eax, dword [eax*4 + 0x20026274]
mov edx, dword [esp + 0x20]
add esp, 4
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x20011523
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.20013870
add esp, 0xc
xor eax, eax
push eax
push eax
push 8
push ebx
push 8
lea edx, [esp + 0x74]
push edx
mov dword [ebx], eax
push eax
mov dword [ebx + 4], eax
push eax
mov byte [ebx + 8], al
call edi
mov esi, dword [esp + 0x20]
push 0x47
push 0
push esi
call fcn.200132c0
add esp, 0xc
push 0
push 0
push 0x46
push esi
push 0x23
lea eax, [esp + 0x84]
push eax
push 0
push 0
call edi
mov ecx, 1
lea eax, [esi + 0x44]
sub ecx, esi
mov edx, esi
lea esp, [esp]
cmp byte [eax + 1], 0x20
jne 0x200115a4
lea esi, [eax + edx]
cmp byte [esi + ecx + 1], 0
jne 0x200115a4
mov byte [eax + 1], 0
cmp byte [eax], 0x20
jne 0x200115b2
cmp byte [eax + 1], 0
jne 0x200115b2
mov byte [eax], 0
cmp byte [eax - 1], 0x20
jne 0x200115c1
cmp byte [eax], 0
jne 0x200115c1
mov byte [eax - 1], 0
sub eax, 3
lea esi, [eax + ecx]
test esi, esi
jg 0x20011590
mov ecx, dword [esp + 0x2c]
xor eax, eax
push eax
mov dword [ecx], eax
push eax
mov dword [ecx + 4], eax
push 0x12
mov dword [ecx + 8], eax
push ecx
mov dword [ecx + 0xc], eax
mov word [ecx + 0x10], ax
push 0x12
mov byte [ecx + 0x12], al
lea ecx, [esp + 0xca]
push ecx
push eax
push eax
call edi
xor eax, eax
push eax
push eax
mov dword [ebp], eax
push 0x1e
mov dword [ebp + 4], eax
push ebp
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push 0xf
mov dword [ebp + 0x10], eax
lea edx, [esp + 0xee]
push edx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
push eax
mov word [ebp + 0x1c], ax
push eax
mov byte [ebp + 0x1e], al
call edi
mov eax, 0x1d
lea esp, [esp]
cmp byte [eax + ebp], 0x20
jne 0x20011641
cmp byte [eax + ebp + 1], 0
jne 0x20011641
mov byte [eax + ebp], 0
dec eax
test eax, eax
jg 0x20011630
mov ecx, dword [esp + 0x34]
xor eax, eax
push eax
push eax
push 8
mov dword [ecx], eax
push ecx
mov dword [ecx + 4], eax
push 8
mov byte [ecx + 8], al
lea eax, [esp + 0x10c]
push eax
push 0
push 0
call edi
mov ecx, dword [esp + 0x30]
xor eax, eax
push eax
push eax
push 8
push ecx
mov dword [ecx], eax
mov dword [ecx + 4], eax
push 8
mov byte [ecx + 8], al
lea ecx, [esp + 0x11c]
push ecx
push eax
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea edx, [esp + 0x550]
push edx
push 0x2002049c
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call ebp
lea eax, [esp + 0x54c]
push 0x5c
push eax
call fcn.20013122
mov ecx, dword [str.SavePhoto.dll]
mov dword [eax], ecx
mov edx, dword [0x20020824]
mov dword [eax + 4], edx
mov ecx, dword [0x20020828]
mov dword [eax + 8], ecx
mov dx, word [0x2002082c]
mov word [eax + 0xc], dx
mov cl, byte [0x2002082e]
add esp, 8
lea edx, [esp + 0x54c]
push edx
mov byte [eax + 0xe], cl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x200113e2
push str.1.jpg
push 0x20020500
lea eax, [esp + 0x658]
push str._s_s
push eax
call fcn.2001364c
push str.2.jpg
push 0x20020500
lea ecx, [esp + 0x76c]
push str._s_s
push ecx
call fcn.2001364c
add esp, 0x20
push 0x104
lea edx, [esp + 0x348]
push edx
push 0x2002049c
call ebx
push eax
call ebp
lea eax, [esp + 0x344]
push 0x5c
push eax
lea esi, [esp + 0x658]
call fcn.20013122
add esp, 8
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x20011770
push 0x104
lea ecx, [esp + 0x44c]
push ecx
push 0x2002049c
call ebx
push eax
call ebp
lea edx, [esp + 0x448]
push 0x5c
push edx
lea esi, [esp + 0x75c]
call fcn.20013122
add esp, 8
lea ebx, [ebx]
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x200117b0
push str.SaveCard2JPG
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x200113fc
lea ecx, [esp + 0x448]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x348]
push edx
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x864]
push edx
push ecx
lea edx, [esp + 0x50]
push edx
call eax
test eax, eax
jne 0x20011809
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
jmp 0x20011936
mov esi, dword [esp + 0x24]
test esi, esi
je 0x20011936
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20011820
sub eax, edx
je 0x20011936
push 0x103
lea eax, [esp + 0x141]
push 0
push eax
mov byte [esp + 0x148], cl
call fcn.200132c0
push 0x103
lea ecx, [esp + 0x251]
push 0
push ecx
mov byte [esp + 0x258], 0
call fcn.200132c0
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20011870
sub eax, edx
cmp byte [eax + esi], 0x5c
push str.1.jpg
jne 0x200118b4
push esi
lea edx, [esp + 0x144]
push str._s_s
push edx
call fcn.2001364c
push str.2.jpg
push esi
lea eax, [esp + 0x258]
push str._s_s
push eax
call fcn.2001364c
add esp, 0x20
jmp 0x200118ec
push 0x20020500
push esi
lea ecx, [esp + 0x148]
push str._s_s_s
push ecx
call fcn.2001364c
push str.2.jpg
push 0x20020500
push esi
lea edx, [esp + 0x260]
push str._s_s_s
push edx
call fcn.2001364c
add esp, 0x28
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [esp + 0x140]
push eax
push str.1.jpg
call esi
push 0
lea ecx, [esp + 0x244]
push ecx
push str.2.jpg
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.1.jpg
call esi
push str.2.jpg
call esi
push str.photo.jpg
call esi
push str.photo.bmp
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [esp + 0xc58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0xc4c
ret 0x28