Function at 0x4ffed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64df43
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x8c], eax
mov esi, dword [ebp + 8]
lea edi, [eax + 0x368]
mov dword [ebp - 0x90], edi
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4fff1e
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4fff28
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
mov edi, dword [esi + 0x10]
cmp edx, edi
mov dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x90]
jne 0x4fff6c
test edx, edx
je 0x500271
sub eax, ecx
mov dword [ebp - 0x90], eax
nop
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x4fff6c
mov eax, dword [ebp - 0x90]
add ecx, 2
sub edx, 1
jne 0x4fff50
jmp 0x500271
cmp edi, esi
je 0x4fff86
cmp dword [esi + 0x14], 8
jb 0x4fff78
mov esi, dword [esi]
push dword [ebp - 0x94]
mov ecx, edi
push esi
call fcn.0044e410
mov esi, dword [ebp - 0x8c]
mov ecx, dword [esi + 0x364]
test ecx, ecx
je 0x4fffa6
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x364], 0
push edi
lea ecx, [ebp - 0x28]
call fcn.004561f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x50018c
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x88]
add eax, 0x11c
push eax
call fcn.004561f0
push 0x6dea98
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004561f0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.004cdb70
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.004cdb10
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x50005a
mov ecx, eax
call fcn.0044e3b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x500094
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50008a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50028e
push edx
push ecx
call fcn.005ff7fe
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x5000e6
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5000dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x500293
push edx
push ecx
call fcn.005ff7fe
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x500138
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50012e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x500298
push edx
push ecx
call fcn.005ff7fe
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x50018c
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x500182
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50029d
push edx
push ecx
call fcn.005ff7fe
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5001df
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x500271
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x500267
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5002a2
jmp 0x500267
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
je 0x50021a
cmp dword [ebp - 0x14], 8
lea eax, [esi + 4]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
mov dword [esi + 8], eax
jmp 0x50021c
xor esi, esi
mov dword [edi + 0x364], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x5001a2
cmp byte [edi + 0x351], al
mov esi, dword [edi + 0x364]
sete al
lea eax, [eax*2 + 1]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipImageRotateFlip]
test eax, eax
je 0x50025b
mov dword [esi + 8], eax
mov ecx, edi
call fcn.004d63e0
jmp 0x5001a2
push edx
push ecx
call fcn.005ff7fe
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 4
call fcn.0061f5be
call fcn.0061f5be
call fcn.0061f5be
call fcn.0061f5be
call fcn.0061f5be
int3