Function at 0x5028f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x650df3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6e1c7c]
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 0x50293e
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x502948
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 0x50298c
test edx, edx
je 0x502c91
sub eax, ecx
mov dword [ebp - 0x90], eax
nop
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x50298c
mov eax, dword [ebp - 0x90]
add ecx, 2
sub edx, 1
jne 0x502970
jmp 0x502c91
cmp edi, esi
je 0x5029a6
cmp dword [esi + 0x14], 8
jb 0x502998
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 0x5029c6
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x364], 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00456990
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 0x502bac
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x88]
add eax, 0x11c
push eax
call fcn.00456990
push 0x6e2a98
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00456990
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.004d0580
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.004d0520
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x502a7a
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 0x502ab4
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x502aaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502cae
push edx
push ecx
call fcn.0060223e
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 0x502b06
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x502afc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502cb3
push edx
push ecx
call fcn.0060223e
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 0x502b58
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x502b4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502cb8
push edx
push ecx
call fcn.0060223e
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 0x502bac
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x502ba2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502cbd
push edx
push ecx
call fcn.0060223e
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 0x502bff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x502c91
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x502c87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x502cc2
jmp 0x502c87
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
je 0x502c3a
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 0x502c3c
xor esi, esi
mov dword [edi + 0x364], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x502bc2
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 0x502c7b
mov dword [esi + 8], eax
mov ecx, edi
call fcn.004d8e00
jmp 0x502bc2
push edx
push ecx
call fcn.0060223e
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.006021fd
mov esp, ebp
pop ebp
ret 4
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
int3