Function at 0x4491f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464353
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x47c020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ebx, [edi + 0x368]
cmp dword [esi + 0x14], 8
jb 0x449233
mov eax, dword [esi]
jmp 0x449235
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.0040e990
test eax, eax
je 0x449453
cmp ebx, esi
je 0x44925c
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.0040f820
mov ecx, dword [edi + 0x364]
test ecx, ecx
je 0x449276
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x364], 0
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0040f820
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x4493b7
mov ecx, dword [edi + 0x20]
lea eax, [ebp - 0x8c]
push eax
call fcn.004093c0
mov esi, eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004124b0
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00411b70
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.0041fcb0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x449331
cmp dword [ebp - 0x18], 8
jb 0x449314
push dword [ebp - 0x2c]
call fcn.0044da7e
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00412020
cmp dword [ebp - 0x60], 8
jb 0x449342
push dword [ebp - 0x74]
call fcn.0044da7e
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
jb 0x449367
push dword [ebp - 0x44]
call fcn.0044da7e
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x44938c
push dword [ebp - 0x5c]
call fcn.0044da7e
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x4493b7
push dword [ebp - 0x8c]
call fcn.0044da7e
add esp, 4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
je 0x449442
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x4493fe
cmp dword [ebp - 0x18], 8
lea eax, [esi + 4]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
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 0x449400
xor esi, esi
mov dword [edi + 0x364], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x449442
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 0x44943b
mov dword [esi + 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
cmp dword [ebp - 0x18], 8
jb 0x449453
push dword [ebp - 0x2c]
call fcn.0044da7e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044e224
mov esp, ebp
pop ebp
ret 4