Function at 0x44c770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dde48
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x51a500]
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 ecx, esi
cmp dword [esi + 0x14], 8
jb 0x44c7ac
mov ecx, dword [esi]
cmp dword [edi + 0x37c], 8
lea eax, [edi + 0x368]
jb 0x44c7c1
mov eax, dword [edi + 0x368]
mov edx, dword [edi + 0x378]
cmp edx, dword [esi + 0x10]
jne 0x44c7fb
test edx, edx
je 0x44c7f7
sub eax, ecx
mov dword [ebp - 0x8c], eax
nop dword [eax + eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x44c7fb
mov eax, dword [ebp - 0x8c]
add ecx, 2
sub edx, 1
jne 0x44c7e0
xor al, al
jmp 0x44c7fd
mov al, 1
test al, al
je 0x44c9b3
lea ecx, [edi + 0x368]
cmp ecx, esi
je 0x44c822
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44c819
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00402790
mov ecx, dword [edi + 0x364]
test ecx, ecx
je 0x44c83c
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.00402f80
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]
test eax, eax
jne 0x44c916
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x58]
add eax, 0x118
push eax
call fcn.00402f80
push 0x51b004
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00402f80
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004243d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0042ee30
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x44c8ef
mov ecx, eax
call fcn.00402650
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
lea ecx, [ebp - 0x70]
call fcn.00402650
lea ecx, [ebp - 0x88]
call fcn.00402650
lea ecx, [ebp - 0x40]
call fcn.00402650
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00402650
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
je 0x44c9ab
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
je 0x44c967
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 0x44c969
xor esi, esi
mov dword [edi + 0x364], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x44c9ab
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 0x44c9a4
mov dword [esi + 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00402650
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.004a6675
mov esp, ebp
pop ebp
ret 4