Function at 0x44be20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbb08
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x516180]
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 0x44be5c
mov ecx, dword [esi]
cmp dword [edi + 0x37c], 8
lea eax, [edi + 0x368]
jb 0x44be71
mov eax, dword [edi + 0x368]
mov edx, dword [edi + 0x378]
cmp edx, dword [esi + 0x10]
jne 0x44beab
test edx, edx
je 0x44bea7
sub eax, ecx
mov dword [ebp - 0x8c], eax
nop dword [eax + eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x44beab
mov eax, dword [ebp - 0x8c]
add ecx, 2
sub edx, 1
jne 0x44be90
xor al, al
jmp 0x44bead
mov al, 1
test al, al
je 0x44c063
lea ecx, [edi + 0x368]
cmp ecx, esi
je 0x44bed2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44bec9
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00402b10
mov ecx, dword [edi + 0x364]
test ecx, ecx
je 0x44beec
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.004032c0
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 0x44bfc6
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x58]
add eax, 0x118
push eax
call fcn.004032c0
push 0x516cd4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004032c0
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.0042adb0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0042ad50
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x44bf9f
mov ecx, eax
call fcn.004029e0
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.004029e0
lea ecx, [ebp - 0x88]
call fcn.004029e0
lea ecx, [ebp - 0x40]
call fcn.004029e0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.004029e0
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 0x44c05b
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
je 0x44c017
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 0x44c019
xor esi, esi
mov dword [edi + 0x364], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x44c05b
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 0x44c054
mov dword [esi + 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [ebp - 0x28]
call fcn.004029e0
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.004a248b
mov esp, ebp
pop ebp
ret 4