Function at 0x40e1e0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518b24
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x55fa68]
test eax, eax
jne 0x40e248
push 0x114
call fcn.004974ac
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40e23a
mov ecx, eax
call fcn.00411bd0
jmp 0x40e23c
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x55fa68], eax
mov ecx, eax
call fcn.004196f2
mov edx, eax
mov dword [ebp - 0x5c], 7
xor eax, eax
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
cmp word [edx], ax
jne 0x40e26e
xor ecx, ecx
jmp 0x40e282
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e273
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00407fd0
cmp dword [ebp - 0x60], 0
mov dword [ebp - 4], 1
je 0x40e4e2
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], 0
push eax
call fcn.00407eb0
push 0xc
push 0x5211f4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040a6a0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x28]
xor esi, esi
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
mov ecx, 1
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x70]
cmovne esi, ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00407eb0
push 0xf
push str.SwiftImgUtl.exe
lea ecx, [ebp - 0x28]
call fcn.0040a6a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x40e32b
mov esi, 1
jmp 0x40e32f
test esi, esi
je 0x40e384
call fcn.00407390
mov ecx, eax
call fcn.004196fe
push eax
lea ecx, [ebp - 0x40]
call fcn.00409cb0
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
je 0x40e36b
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00409cb0
mov ecx, ebx
call fcn.0040ec00
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x40e384
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0047f630
cmp dword [ebp + 8], 0
je 0x40e3f1
call fcn.00407390
mov ecx, eax
call fcn.00419628
push eax
lea ecx, [ebp - 0x40]
call fcn.00409cb0
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 4
je 0x40e3d8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
je 0x40e3d8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00409cb0
mov ecx, ebx
call fcn.0040ec00
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x40e3f1
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0047f630
mov eax, dword [0x55fa68]
test eax, eax
jne 0x40e426
push 0x114
call fcn.004974ac
add esp, 4
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x40e41b
mov ecx, eax
call fcn.00411bd0
jmp 0x40e41d
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x55fa68], eax
mov ecx, eax
call fcn.004196fe
push eax
lea ecx, [ebp - 0x58]
call fcn.00409cb0
cmp dword [ebp - 0x48], 0
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
je 0x40e47a
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e47a
push 0
push 0x5207b0
lea ecx, [ebp - 0x58]
call fcn.0040efb0
cmp eax, 0xffffffff
je 0x40e47a
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call edi
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call edi
test esi, esi
je 0x40e490
mov byte [ebx + 0x10], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40e4a5
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0047f630
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x40e4ce
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0047f630
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40e4f7
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0047f630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004974f6
mov esp, ebp
pop ebp
ret 4