Function at 0x44d260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4635
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x510200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44d299
mov eax, dword [esi]
cmp dword [edi + 0x37c], 8
lea ecx, [edi + 0x368]
jb 0x44d2ae
mov ecx, dword [edi + 0x368]
mov edx, dword [edi + 0x378]
cmp edx, dword [esi + 0x10]
jne 0x44d2da
test edx, edx
je 0x44d2d6
sub ecx, eax
mov dword [ebp - 0x74], ecx
mov cx, word [ecx + eax]
cmp cx, word [eax]
jne 0x44d2da
mov ecx, dword [ebp - 0x74]
add eax, 2
sub edx, 1
jne 0x44d2c2
xor al, al
jmp 0x44d2dc
mov al, 1
test al, al
je 0x44d495
lea ecx, [edi + 0x368]
cmp ecx, esi
je 0x44d301
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44d2f8
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00401ff0
mov ecx, dword [edi + 0x364]
test ecx, ecx
je 0x44d31b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x364], 0
lea eax, [edi + 0x368]
push eax
lea ecx, [ebp - 0x28]
call fcn.004029e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x44d3ff
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x58]
add eax, 0x118
push eax
call fcn.004029e0
push 0x510ce4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004029e0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.00418210
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00402860
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00401ec0
movups xmm0, xmmword [ebp - 0x88]
lea ecx, [ebp - 0x70]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [ebp - 0x18], xmm0
call fcn.00401ec0
lea ecx, [ebp - 0x40]
call fcn.00401ec0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00401ec0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x44d48d
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x74], esi
test esi, esi
je 0x44d449
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 0x44d44b
xor esi, esi
mov dword [edi + 0x364], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x44d48d
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 0x44d486
mov dword [esi + 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00401ec0
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.0049da3c
mov esp, ebp
pop ebp
ret 4